Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
BOUNTY: bakefile - Output: C::B Project Files
takeshimiya:
I think that solution is ok for now, using <Option compilerVar="CC"/> or <Option compilerVar="CPP"/> at Project/Unit/Target level when corresponding.
And for separating Compiler/Linker flags, it is currently implemented at Project/Unit/Target level (take a look at the CodeBlocks-wx2.6.0.cbp itself), for example at Target level:
<Target title="sdk">
<Option output="devel\codeblocks.dll"/>
<Option working_dir="devel"/>
<Option object_output=".objs\2.6"/>
<Option deps_output=".deps"/>
<Option external_deps="sdk\tinyxml\libtxml.a;"/>
<Option type="3"/>
<Option compiler="0"/>
<Option parameters="--debug-log --no-check-associations"/>
<Option createStaticLib="1"/>
<Option projectLinkerOptionsRelation="2"/>
<Compiler>
<Add option="-DEXPORT_LIB"/>
<Add option="-DEXPORT_EVENTS"/>
<Add option="-D_USRDLL"/>
</Compiler>
<Linker>
<Add option="-Wl,--enable-auto-image-base"/>
<Add option="-Wl,--export-all-symbols"/>
<Add option="-Wl,--add-stdcall-alias"/>
<Add library="libtxml.a"/>
<Add library="libwxscintilla.a"/>
<Add directory="devel"/>
</Linker>
</Target>
for compiler and linker flags.
Hope that helps :)
PD: What's the difference between CPP and C++ flags?
mandrav:
--- Quote ---PD: What's the difference between CPP and C++ flags?
--- End quote ---
C PreProcessor flags
vs
C++ compiler flags
although it is seldom followed (people usually put CPP flags in C++ (CXX) flags)...
ABX:
--- Quote from: takeshimiya on October 04, 2005, 01:23:36 am ---PD: What's the difference between CPP and C++ flags?
--- End quote ---
In short CPP is common to C and C++. See comments in any wxW/build/msw/config.*
Thanks for the answer!
ABX
rickg22:
Is using the name "CPP" for preprocessor a good idea? Last time I checked, CPP used to mean "C Plus Plus" (confused)
ABX:
--- Quote from: rickg22 on October 04, 2005, 09:18:44 pm ---Is using the name "CPP" for preprocessor a good idea? Last time I checked, CPP used to mean "C Plus Plus" (confused)
--- End quote ---
I'm not sure I understand your questions. Do you mean/think we (bakefile) invented it? AFAIK this is widely used split, see how many sites refer to them in http://www.google.com/search?q=cppflags+cxxflags
ABX
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version