121 lines
5.3 KiB
XML
121 lines
5.3 KiB
XML
|
<xml>
|
||
|
|
||
|
<set name="DBG" value="-debug" if="debug" unless="DEBUGSUFFIX" />
|
||
|
<set name="DBG" value="${DEBUGSUFFIX}" if="debug" unless="DBG" />
|
||
|
|
||
|
<set name="M64" value="64" if="HXCPP_M64"/>
|
||
|
<set name="M64" value="arm64" if="HXCPP_ARM64"/>
|
||
|
<set name="F32" value="-f32" if="HXCPP_FLOAT32"/>
|
||
|
<set name="NEEDS_NC" value="-nc" if="windows"/>
|
||
|
<set name="NOCONSOLE" value="${NEEDS_NC}" if="no_console"/>
|
||
|
<set name="RPI" value="-rpi" if="rpi"/>
|
||
|
<set name="APIFP" value="-hfp" if="hardfp"/>
|
||
|
|
||
|
<set name="STD_MODULE_LINK" value="dll"/>
|
||
|
|
||
|
<set name="static_link" value="1" if="iphoneos" unless="dll_import||exe_link" />
|
||
|
<set name="static_link" value="1" if="iphonesim" unless="dll_import||exe_link" />
|
||
|
<set name="static_link" value="1" if="appletvos" unless="dll_import||exe_link" />
|
||
|
<set name="static_link" value="1" if="appletvsim" unless="dll_import||exe_link" />
|
||
|
|
||
|
<set name="LIBPREFIX" value="lib" if="static_link" unless="STATICLIBPREFIX" />
|
||
|
<set name="LIBPREFIX" value="${STATICLIBPREFIX}" if="static_link" unless="LIBPREFIX" />
|
||
|
|
||
|
<unset name="HXCPP_JS_PRIME" if="static_link" />
|
||
|
<set name="STAT" value="-stat" if="static_link" />
|
||
|
<set name="PRIME" value="" />
|
||
|
<set name="PRIME" value="-p" if="HXCPP_JS_PRIME" />
|
||
|
|
||
|
|
||
|
<set name="OBJDBG" value="-debug" if="debug" />
|
||
|
<set name="OBJOPT" value="-fast" if="HXCPP_FAST_LINK" />
|
||
|
<set name="HXCPP_OPTIMIZE_LINK_INCREMENTAL" value="1" if="HXCPP_FAST_LINK HXCPP_OPTIMIZE_LINK" unless="debug" />
|
||
|
<set name="OBJOPT" value="-opt" if="HXCPP_OPTIMIZE_LINK" unless="debug" />
|
||
|
<set name="OBJOPT" value="-optinc" if="HXCPP_OPTIMIZE_LINK_INCREMENTAL" unless="debug" />
|
||
|
<set name="OBJEXT" value="${M64}${F32}${STAT}${OBJDBG}${OBJOPT}${NOCONSOLE}${RPI}${APIFP}${PRIME}" />
|
||
|
|
||
|
<set name="STD_MODULE_LINK" value="static_link" if="static_link"/>
|
||
|
<set name="STD_MODULE_LINK" value="exe" if="HXCPP_JS_PRIME"/>
|
||
|
|
||
|
|
||
|
|
||
|
<set name="LIBEXTRA" value=".iphonesim-64" if="iphonesim"/>
|
||
|
<set name="LIBEXTRA" value=".iphonesim" if="iphonesim" unless="HXCPP_M64"/>
|
||
|
<section if="iphoneos">
|
||
|
<set name="LIBEXTRA" value=".iphoneos-v7" if="HXCPP_ARMV7"/>
|
||
|
<set name="LIBEXTRA" value=".iphoneos-v7s" if="HXCPP_ARMV7S"/>
|
||
|
<set name="LIBEXTRA" value=".iphoneos-64" if="HXCPP_ARM64"/>
|
||
|
<set name="HXCPP_ARMV6" value="1" unless="LIBEXTRA"/>
|
||
|
<set name="LIBEXTRA" value=".iphoneos" if = "HXCPP_ARMV6"/>
|
||
|
</section>
|
||
|
<set name="LIBEXTRA" value=".appletvsim-64" if="appletvsim"/>
|
||
|
<set name="LIBEXTRA" value=".appletvsim" if="appletvsim" unless="HXCPP_M64"/>
|
||
|
<set name="LIBEXTRA" value=".watchos" if="watchos" />
|
||
|
<set name="LIBEXTRA" value=".watchsimulator" if="watchsimulator" />
|
||
|
<section if="appletvos">
|
||
|
<set name="LIBEXTRA" value=".appletvos-64" if="HXCPP_ARM64"/>
|
||
|
</section>
|
||
|
<set name="LIBEXTRA" value="-x86" if="blackberry"/>
|
||
|
<set name="LIBEXTRA" value="" if="blackberry" unless="simulator" />
|
||
|
<set name="LIBEXTRA" value="-x86" if="HXCPP_X86" />
|
||
|
<set name="LIBEXTRA" value="-x86_64" if="HXCPP_X86_64" />
|
||
|
<set name="LIBEXTRA" value="-v7" if="HXCPP_ARMV7" unless="LIBEXTRA||linux" />
|
||
|
<set name="LIBEXTRA" value="-64" if="HXCPP_ARM64" unless="LIBEXTRA||linux||isMsvc" />
|
||
|
<set name="LIBEXTRA" value="-x86" if="tizen"/>
|
||
|
<set name="LIBEXTRA" value="" if="tizen" unless="simulator" />
|
||
|
<set name="LIBEXT" value=".a" />
|
||
|
<set name="LIBEXT" value=".lib" if="windows" unless="mingw" />
|
||
|
|
||
|
|
||
|
|
||
|
<set name="haxelink" value="exe" unless="static_link"/>
|
||
|
<set name="haxelink" value="static_link" if="static_link"/>
|
||
|
<set name="haxelink" value="dll" if="android" unless="static_link" />
|
||
|
<set name="haxelink" value="exe" if="exe_link"/>
|
||
|
<set name="haxelink" value="dll" if="dll_import"/>
|
||
|
<set name="haxelink" value="dll" if="dll_link"/>
|
||
|
|
||
|
<set name="HXCPP_IOS_STDCPP" value="1" unless="HXCPP_CPP11" if="iphoneos"/>
|
||
|
<set name="HXCPP_IOS_STDCPP" value="1" unless="HXCPP_CPP11" if="iphonesim"/>
|
||
|
<set name="HXCPP_IOS_STDCPP" value="1" unless="HXCPP_CPP11" if="appletvos"/>
|
||
|
<set name="HXCPP_IOS_STDCPP" value="1" unless="HXCPP_CPP11" if="appletvsim"/>
|
||
|
|
||
|
<set name="DESTDIR" value="bin" />
|
||
|
<set name="DESTDIR" value="lib" if="static_link" unless="HXCPP_IOS_STDCPP"/>
|
||
|
<set name="NDLLDIR" value="ndll" />
|
||
|
<set name="NDLLDIR" value="lib" if="static_link" />
|
||
|
|
||
|
|
||
|
<!-- <set name="IPHONE_VER" value="4.2" unless="IPHONE_VER" /> -->
|
||
|
|
||
|
<set name="HXCPP_DEBUG_LINK" value="1" if="debug" unless="HXCPP_NO_DEBUG_LINK" />
|
||
|
<set name="HXCPP_DEBUG_LINK" value="1" if="HXCPP_DEBUG_LINK_AND_STRIP" />
|
||
|
|
||
|
<set name="HX_LINK_SUFFIX" value="${LIBEXTRA}" />
|
||
|
<set name="HX_TARGET_SUFFIX" value="${LIBEXTRA}" />
|
||
|
<set name="HX_TARGET_PREFIX" value="${LIBPREFIX}" />
|
||
|
|
||
|
<section if="isMsvc">
|
||
|
<setup name="msvc"/>
|
||
|
|
||
|
<section if="static_link" >
|
||
|
<set name="MSVC_LIB_VERSION" value="-${MSVC_VER}" />
|
||
|
</section>
|
||
|
|
||
|
<set name="LIBEXTRA" value="-19" if="MSVC19" />
|
||
|
<set name="LIBEXTRA" value="-arm64" if="HXCPP_ARM64" />
|
||
|
<set name="HXCPP_M64" value="1" if="HXCPP_ARM64" />
|
||
|
<set name="HX_LINK_SUFFIX" value="-19" if="MSVC19" />
|
||
|
<set name="HX_TARGET_SUFFIX" value="-19" if="MSVC19 static_link" />
|
||
|
|
||
|
<section if="HXCPP_OPTIMIZE_LINK_INCREMENTAL" unless="debug || MSVC19">
|
||
|
<echo value="Warning: INCREMENTAL requies Visual Studio 2015+"/>
|
||
|
<!-- without INCREMENTAL -->
|
||
|
<unset name="HXCPP_OPTIMIZE_LINK_INCREMENTAL"/>
|
||
|
<set name="HXCPP_OPTIMIZE_LINK" value="1"/>
|
||
|
<set name="OBJOPT" value="-opt" if="HXCPP_OPTIMIZE_LINK || HXCPP_OPTIMIZE_LINK_INCREMENTAL" unless="debug" />
|
||
|
<set name="OBJEXT" value="${M64}${F32}${STAT}${OBJDBG}${OBJOPT}${NOCONSOLE}${RPI}${APIFP}${PRIME}" />
|
||
|
</section>
|
||
|
</section>
|
||
|
</xml>
|