User forums > Using Code::Blocks
how to force a dependency ?
Elena:
Hi all I am new to cb! I have just set up a working cb+mingw setup for writing modules for Synthedit, being exhausted by VS and by microsoft's invasive policy.
In my usual projects (they are DLLs) I have some resource files to be compiled and linked. In particular I have a .rc file which internally references an .xml.file. So when I modify the .xml I need the project to be updated. Unfortunately CB cannot automatically detect such dependency of the .rc file from the .xml file. Is there a clean way to force this dependency without having to manually edit the .depend database ? Thanks in advance
oBFusCATed:
Try with this: http://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_system
Elena:
Thanks, the link is interesting but despite my efforts I still can't figure out how to set up the advanced compiler options properly to suit my needs...
I try to explain my situation better.
First of all I am using the last cb+mingw. I need to write modules for Synthedit, they are pretty DLLs.
They contain regular .cpp and .h files plus three special files: one .rc, one resource.h and one .xml. The .rc includes resource.h (here cb can still create a dependency) but it also refers to the xml file with some strange macros I am not very familiar with:
IDR_GMPXML1 GMPXML "test.xml"
Everything compiles fine and works even if I ignore the inner workings of that .rc source.
Anyway the object (resource ?) Test.res generated by the three files must depend by the .xml file aswell,.so that everytime I have to modify the xml (a frequent task) only the test.rc object will be compiled, while now I have to rebuild the whole project! Can you help me ?
oBFusCATed:
--- Quote from: Elena on March 08, 2021, 07:22:00 pm ---Can you help me ?
--- End quote ---
Personally I don't have the time. Someone should investigate the compiler plugin to see how it calculates dependencies for .rc files.
Elena:
I am not demanding that you help me. I am asking rather if somebody can. Thanks.the same
Navigation
[0] Message Index
[#] Next page
Go to full version