User forums > Using Code::Blocks
Sharing compiler search directories between 3 projects
16BitBilly:
I currently have about 10 projects in my workspace. Some projects have a lot of paths added in "Compiler search paths". I wanted to know if there was a way i could tell another project to use the same compiler search directories a specific project is using. That way I will not have to type in all the header search paths again for that project. I know I could do this globall in settings >> xompiler search directories tab but then I dont want those paths available to all the projects that I wouldnt even mind if there was a way for me to copy paste search paths (even if I have to do that in an xml file).
Chun Jiu:
I usually use a text editor to open the *.cbp files, copy these options.
--- Code: ---<Target title="Debug">
<Option output="bin/Debug/TestBitmapButton" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="0" />
<Option compiler="gcc" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="-g" />
<Add option="-D__WXDEBUG__" />
<Add directory="$(#wx)/lib/gcc_lib/mswud" />
</Compiler>
<ResourceCompiler>
<Add directory="$(#wx)/lib/gcc_lib/mswud" />
</ResourceCompiler>
<Linker>
<Add library="libwxmsw30ud.a" />
<Add library="libwxpngd.a" />
<Add library="libwxjpegd.a" />
<Add library="libwxtiffd.a" />
<Add library="libwxzlibd.a" />
<Add directory="$(#wx)/lib/gcc_lib" />
</Linker>
</Target>
--- End code ---
Note - For example: <Add directory="$(#wx)/lib/gcc_lib" /> Copy to another .cbp file.
MortenMacFly:
Way easier: create a copy of the compiler you are using. Then add all path and settings as needed for ask of your projects to the compiler settings. Then reference this compiler in your project.
MortenMacFly:
Project files are not meant to be edited by hand. If you do so, very bad things including crashes can happen. Don't do this. For all operations we have ui, scripting or similar support trough plugins.
To mass manipulate project settings you could also use the project options manipulator plugin.
16BitBilly:
Thanks for the post could you tell me a little about the project options manipulator plugin.
Any links ?
Navigation
[0] Message Index
[#] Next page
Go to full version