80 lines
2.4 KiB
XML
80 lines
2.4 KiB
XML
|
<xml>
|
||
|
|
||
|
<echo value="Using WatchOS SDK ${WATCHOS_VER}" if="VERBOSE"/>
|
||
|
|
||
|
<set name="HXCPP_USE_LIBTOOL" value="1" />
|
||
|
<set name="HXCPP_LIBTOOL" value="xcrun --toolchain WatchOS libtool" />
|
||
|
<include name="toolchain/gcc-toolchain.xml"/>
|
||
|
<!--<path name="${DEVELOPER_DIR}/Platforms/WatchOS.platform/Developer/usr/bin" />-->
|
||
|
|
||
|
<set name="HXCPP_CPP11" value="1" />
|
||
|
<set name="OBJDBG" value="-dbg" if="debug" />
|
||
|
|
||
|
<compiler id="WatchOS" exe="clang" >
|
||
|
<exe name="xcrun --toolchain WatchOS clang++" />
|
||
|
<flag value="-c"/>
|
||
|
|
||
|
<flag value="-arch"/>
|
||
|
<flag value="${HXCPP_ARCH}" if="HXCPP_ARCH"/>
|
||
|
<section unless="HXCPP_ARCH">
|
||
|
<flag value="armv7k" unless="HXCPP_ARM64_32"/>
|
||
|
<flag value="arm64_32" if="HXCPP_ARM64_32"/>
|
||
|
</section>
|
||
|
|
||
|
|
||
|
<pchflag value="-x" />
|
||
|
<pchflag value="c++-header" />
|
||
|
|
||
|
<flag value="-stdlib=libc++" if="HXCPP_CPP11" />
|
||
|
<flag value="-std=c++11" if="HXCPP_CPP11" />
|
||
|
|
||
|
<flag value="-g" />
|
||
|
|
||
|
<flag value="-isysroot"/>
|
||
|
<flag value="${DEVELOPER_DIR}/Platforms/WatchOS.platform/Developer/SDKs/WatchOS${WATCHOS_VER}.sdk"/>
|
||
|
|
||
|
<flag value="-fapplication-extension" />
|
||
|
|
||
|
<flag value="-O2" unless="debug"/>
|
||
|
<flag value="-fmessage-length=0"/>
|
||
|
<flag value="-pipe"/>
|
||
|
<flag value="-Wno-trigraphs"/>
|
||
|
<flag value="-fno-stack-protector"/>
|
||
|
<flag value="-Wno-overflow" />
|
||
|
<cppflag value="-Wno-invalid-offsetof" />
|
||
|
<flag value="-fpascal-strings"/>
|
||
|
<flag value="-fasm-blocks"/>
|
||
|
<flag value="-Wreturn-type"/>
|
||
|
|
||
|
<mmflag value="-fobjc-abi-version=2"/>
|
||
|
<mmflag value="-fobjc-legacy-dispatch"/>
|
||
|
|
||
|
<flag value="-mwatchos-version-min=3.0"/>
|
||
|
<flag value="-DHX_APPLEWATCH"/>
|
||
|
<flag value="-DHX_WATCHOS"/>
|
||
|
<flag value="-fobjc-arc" />
|
||
|
<flag value="-DOBJC_ARC" />
|
||
|
<flag value="-DENABLE_BITCODE=YES"/>
|
||
|
<flag value="-fembed-bitcode" />
|
||
|
<flag value="-fembed-bitcode-marker" if="debug" />
|
||
|
<flag value="-Wno-parentheses" />
|
||
|
<flag value="-Wno-null-dereference" unless="HXCPP_GCC"/>
|
||
|
<flag value="-Wno-unused-value" />
|
||
|
<flag value="-Wno-bool-conversion" unless="HXCPP_GCC"/>
|
||
|
<include name="toolchain/common-defines.xml" />
|
||
|
<flag value="-I${HXCPP}/include"/>
|
||
|
|
||
|
<!-- Added for iOS8 -->
|
||
|
<flag value="-fexceptions"/>
|
||
|
<flag value="-fstrict-aliasing"/>
|
||
|
<!-- End of Added for iOS8 -->
|
||
|
|
||
|
<outflag value="-o"/>
|
||
|
<ext value=".o"/>
|
||
|
<objdir value="obj/watchos${OBJDBG}/" />
|
||
|
</compiler>
|
||
|
|
||
|
|
||
|
|
||
|
</xml>
|