90 lines
2.5 KiB
XML
90 lines
2.5 KiB
XML
|
<xml>
|
||
|
|
||
|
|
||
|
<set name="HXCPP_X86" value="1" if="simulator" />
|
||
|
|
||
|
<section if="HXCPP_X86">
|
||
|
<set name="ARCH" value="-x86" />
|
||
|
<set name="PLATFORM_ARCH" value="x86" />
|
||
|
<set name="EXEPREFIX" value="ntox86" />
|
||
|
<set name="QCC_TARGET" value="gcc_ntox86" />
|
||
|
</section>
|
||
|
|
||
|
<section unless="HXCPP_X86">
|
||
|
<set name="ARCH" value="-v7" />
|
||
|
<set name="PLATFORM_ARCH" value="armle-v7" />
|
||
|
<set name="EXEPREFIX" value="ntoarmv7" />
|
||
|
<set name="QCC_TARGET" value="gcc_ntoarmv7le" />
|
||
|
</section>
|
||
|
|
||
|
<setup name="blackberry" />
|
||
|
|
||
|
<path name="${QNX_HOST}/usr/bin/" />
|
||
|
<include name="toolchain/gcc-toolchain.xml"/>
|
||
|
|
||
|
|
||
|
<!-- BLACKBERRY TOOLS -------------------------------------------------->
|
||
|
|
||
|
<compiler id="blackberry" exe="qcc" if="blackberry">
|
||
|
<flag value="-V${QCC_TARGET}" />
|
||
|
<flag value="-c"/>
|
||
|
<flag value="-g" if="debug"/>
|
||
|
<flag value="-O2" unless="debug"/>
|
||
|
<flag value="-I${HXCPP}/include"/>
|
||
|
<flag value="-I${QNX_TARGET}/usr/include"/>
|
||
|
<flag value="-DBLACKBERRY=BLACKBERRY"/>
|
||
|
<flag value="-fvisibility=hidden"/>
|
||
|
<flag value="-fdollars-in-identifiers"/>
|
||
|
<!--<flag value="-fpermissive"/>-->
|
||
|
<cppflag value="-lang-c++"/>
|
||
|
<include name="toolchain/common-defines.xml" />
|
||
|
<flag value="-DHXCPP_LOAD_DEBUG" if="HXCPP_LOAD_DEBUG"/>
|
||
|
<flag value="-DHXCPP_MULTI_THREADED" if="HXCPP_MULTI_THREADED"/>
|
||
|
<flag value="-fpic"/>
|
||
|
<flag value="-fPIC"/>
|
||
|
<cppflag value="-frtti"/>
|
||
|
<outflag value="-o"/>
|
||
|
<objdir value="./obj/bb${OBJEXT}${ARCH}"/>
|
||
|
</compiler>
|
||
|
|
||
|
|
||
|
<linker id="exe" exe="qcc" if="blackberry">
|
||
|
<!-- <fromfile value="-filelist " /> -->
|
||
|
<flag value="-V${QCC_TARGET}" />
|
||
|
<flag value="-g" if="debug"/>
|
||
|
<flag value="-O2" unless="debug"/>
|
||
|
<flag value="-s" unless="debug"/>
|
||
|
<flag value="-lang-c++"/>
|
||
|
<flag value="-Wl,-z,relro,-z,now"/>
|
||
|
<!-- <flag value="-rdynamic"/> -->
|
||
|
<flag value="-L${QNX_TARGET}/${PLATFORM_ARCH}/lib"/>
|
||
|
<ext value=""/>
|
||
|
<outflag value="-o"/>
|
||
|
<lib name="-lm"/>
|
||
|
<!-- <lib name="-lpthread"/> -->
|
||
|
<!-- <lib name="-ldl"/> -->
|
||
|
</linker>
|
||
|
|
||
|
<linker id="dll" exe="qcc" if="blackberry">
|
||
|
<!-- <fromfile value="-filelist " /> -->
|
||
|
<flag value="-V${QCC_TARGET}" />
|
||
|
<flag value="-shared"/>
|
||
|
<flag value="-g" if="debug"/>
|
||
|
<flag value="-O2" unless="debug"/>
|
||
|
<flag value="-s" unless="debug"/>
|
||
|
<flag value="-L${QNX_TARGET}/${PLATFORM_ARCH}/lib"/>
|
||
|
<flag value="-lang-c++"/>
|
||
|
<flag value="-Wl,-z,relro,-z,now"/>
|
||
|
<cppflag value="-frtti"/>
|
||
|
<!-- <lib name="-lpthread"/> -->
|
||
|
<flag value="-fpic"/>
|
||
|
<flag value="-fPIC"/>
|
||
|
<!-- <flag value="-Wl,-z,defs"/> -->
|
||
|
<ext value=".so"/>
|
||
|
<outflag value="-o"/>
|
||
|
</linker>
|
||
|
|
||
|
|
||
|
|
||
|
</xml>
|