80 lines
2.5 KiB
XML
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
<xml>
<set name="GCW0_SDK" value="/opt/gcw0-toolchain" unless="GCW0_SDK" if="linux_host" />
<set name="GCW0_SDK" value="${SDK_ROOT}/gcw0-toolchain" unless="GCW0_SDK" if="windows_host SDK_ROOT" />
<error value="Please set GCW0_SDK" unless="GCW0_SDK" />
<echo value="Using sdk ${GCW0_SDK}" if="HXCPP_VERBOSE" />
<set name="GCW0_PLATFORM" value="${GCW0_SDK}/usr/mipsel-gcw0-linux-uclibc/sysroot" />
<path name="${GCW0_SDK}/usr/bin/" />
<include name="gcc-toolchain.xml"/>
<!-- GCW-Zero TOOLS -->
<compiler id="gcw0" exe="mipsel-linux-g++" if="gcw0">
<exe name="mipsel-gcw0-linux-uclibc-g++.exe" if="windows_host" />
<flag value="-c"/>
<flag value="-g" if="debug"/>
<flag value="-O2" unless="debug"/>
<flag value="-I${HXCPP}/include"/>
<flag value="-I${GCW0_PLATFORM}/usr/include"/>
<flag value="-DGCW0"/>
<flag value="-D_APP_LOG"/>
<flag value="-march=mips32r2" />
<include name="common-defines.xml" />
<flag value="-fvisibility=hidden"/>
<flag value="-fdollars-in-identifiers"/>
<flag value="-fpic"/>
<flag value="-fPIC"/>
<cppflag value="-frtti"/>
<cppflag value="-std=c++11" />
<cppflag value="-Wno-invalid-offsetof" />
<flag value="-g" if="HXCPP_DEBUG_LINK"/>
<!-- <flag value="-fPIE" /> -->
<flag value="--sysroot=${GCW0_PLATFORM}" />
<outflag value="-o"/>
<objdir value="./obj/gcw0${OBJEXT}" />
</compiler>
<linker id="exe" exe="mipsel-linux-g++" if="gcw0">
<exe name="mipsel-gcw0-linux-uclibc-g++" if="windows_host" />
<flag value="-g" if="debug||HXCPP_DEBUG_LINK"/>
<flag value="-O2" unless="debug||HXCPP_DEBUG_LINK"/>
<flag value="-s" unless="debug||HXCPP_DEBUG_LINK"/>
<flag value="-pie" />
<lib name="-lpthread" />
<flag value="-march=mips32r2" />
<flag value="--sysroot=${GCW0_PLATFORM}" />
<flag value="-L${GCW0_PLATFORM}/usr/lib" />
<!-- <flag value="-fpic"/>
<flag value="-fPIC"/> -->
<ext value=""/>
<outflag value="-o"/>
<lib name="-ldl"/>
</linker>
<linker id="dll" exe="mipsel-linux-g++" if="gcw0">
<exe name="mipsel-gcw0-linux-uclibc-g++" if="windows_host" />
<flag value="-shared"/>
<flag value="-g" if="debug"/>
<flag value="-O2" unless="debug"/>
<flag value="-s" unless="debug"/>
<!-- <flag value="-pie" /> -->
<lib name="-lpthread" />
<flag value="-march=mips32r2" />
<flag value="--sysroot=${GCW0_PLATFORM}" />
<flag value="-L${GCW0_PLATFORM}/usr/lib" />
<cppflag value="-frtti"/>
<!-- <flag value="-fpic"/>
<flag value="-fPIC"/> -->
<!-- <flag value="-pie" /> -->
<lib name="-ldl"/>
<ext value=".dso"/>
<outflag value="-o"/>
</linker>
</xml>