73 lines
2.3 KiB
XML
73 lines
2.3 KiB
XML
<xml>
|
|
|
|
<!-- GPH (Caanoo) TOOLS -------------------------------------------------->
|
|
|
|
<error value="Please define GPH_ROOT" unless="GPH_ROOT"/>
|
|
|
|
<set name="GPH_TOOL" value="${GPH_ROOT}/" if="windows_host"/>
|
|
<set name="GPH_TOOL" value="${GPH_ROOT}/tools/" unless="windows_host"/>
|
|
|
|
<include name="toolchain/gcc-toolchain.xml"/>
|
|
|
|
<path name="${GPH_TOOL}/gcc-4.2.4-glibc-2.7-eabi/bin/"/>
|
|
<path name="${GPH_TOOL}/gcc-4.2.4-glibc-2.7-eabi/libexec/gcc/arm-gph-linux-gnueabi/4.2.4/"/>
|
|
<path name="${GPH_TOOL}/libexec/gcc/arm-gph-linux-gnueabi/4.2.4"/>
|
|
<path name="${GPH_TOOL}/gcc-4.2.4-glibc-2.7-eabi/arm-gph-linux-gnueabi/bin"/>
|
|
<setenv name="CYGWIN" value="nodosfilewarning"/>
|
|
<set name="GPH_SYS" value="${GPH_TOOL}/gcc-4.2.4-glibc-2.7-eabi/arm-gph-linux-gnueabi/sys-root"/>
|
|
|
|
<compiler id="gph" exe="arm-gph-linux-gnueabi-g++">
|
|
<flag value="-c"/>
|
|
<flag value="-g" if="debug"/>
|
|
<flag value="-Os" unless="debug"/>
|
|
<flag value="-I${HXCPP}/include"/>
|
|
<flag value="--sysroot=${GPH_SYS}"/>
|
|
<flag value="-I${GPH_TOOL}/gcc-4.2.4-glibc-2.7-eabi/arm-gph-linux-gnueabi/include/c++/4.2.4/"/>
|
|
<flag value="-I${GPH_TOOL}/gcc-4.2.4-glibc-2.7-eabi/arm-gph-linux-gnueabi/include/c++/4.2.4/arm-gph-linux-gnueabi"/>
|
|
<flag value="-DGPH"/>
|
|
<flag value="-fvisibility=hidden"/>
|
|
<flag value="-fdollars-in-identifiers"/>
|
|
<flag value="-fno-common"/>
|
|
<flag value="-march=armv5te"/>
|
|
<flag value="-mtune=arm9tdmi"/>
|
|
<flag value="-mapcs"/>
|
|
<flag value="-msoft-float"/>
|
|
<flag value="-mfloat-abi=soft"/>
|
|
<cppflag value="-frtti"/>
|
|
<flag value="-fpic"/>
|
|
<flag value="-fPIC"/>
|
|
<outflag value="-o"/>
|
|
<objdir value="./obj/gph/Debug" if="debug"/>
|
|
<objdir value="./obj/gph/Release" unless="debug"/>
|
|
</compiler>
|
|
|
|
<linker id="exe" exe="arm-gph-linux-gnueabi-g++">
|
|
<ext value=".gpe"/>
|
|
<flag value="--sysroot=${GPH_SYS}"/>
|
|
<flag value="-mfloat-abi=soft"/>
|
|
<outflag value="-o"/>
|
|
<lib name="-ldl"/>
|
|
<lib name="-lc"/>
|
|
<lib name="-lpthread"/>
|
|
<lib name="-lm"/>
|
|
</linker>
|
|
|
|
<linker id="dll" exe="arm-gph-linux-gnueabi-g++">
|
|
<flag value="-Wl,--no-undefined"/>
|
|
<flag value="--sysroot=${GPH_SYS}"/>
|
|
<flag value="-msoft-float"/>
|
|
<flag value="-fpic"/>
|
|
<flag value="-fPIC"/>
|
|
<flag value="-shared"/>
|
|
<ext value=".so"/>
|
|
<outflag value="-o"/>
|
|
<lib name="-ldl"/>
|
|
<lib name="-lc"/>
|
|
<lib name="-lpthread"/>
|
|
<lib name="-lm"/>
|
|
</linker>
|
|
|
|
|
|
|
|
</xml>
|