-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.xml
executable file
·75 lines (58 loc) · 2.49 KB
/
Build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<xml>
<set name="GCC_THIN_ARCHIVE" value="1" if="iphone"/>
<include name="${HXCPP}/build-tool/BuildCommon.xml"/>
<set name="mobile" value="1" if="iphone"/>
<set name="mobile" value="1" if="android"/>
<set name="mobile" value="1" if="webos"/>
<set name="mobile" value="1" if="blackberry"/>
<set name="SLIBEXT" value=".lib" if="windows"/>
<set name="SLIBEXT" value=".a" unless="windows"/>
<set name="SLIBEXT" value=".so" if="webos"/>
<files id="iphone">
<depend name="${HXCPP}/include/hx/Macros.h"/>
<depend name="${HXCPP}/include/hx/CFFI.h"/>
<compilerflag value="-IiPhone/include"/>
<compilerflag value="-Iinclude"/>
<compilerflag value="-F../frameworks"/>
<compilerflag value="-F../templates/iphone/PROJ/Classes"/>
<file name="ios/TapdaqEx.mm"/>
</files>
<files id="android">
<depend name="${HXCPP}/include/hx/Macros.h"/>
<depend name="${HXCPP}/include/hx/CFFI.h"/>
</files>
<files id="common">
<compilerflag value="-Iinclude"/>
<file name="common/ExternalInterface.cpp"/>
</files>
<set name="tool" value="exe" unless="iphone"/>
<set name="tool" value="static_link" if="iphone"/>
<set name="IOS_ARCH" value="-v7" if="HXCPP_ARMV7"/>
<set name="IOS_ARCH" value="-64" if="HXCPP_ARM64 || HXCPP_M64"/>
<set name="ARM_ARCH" value="-v7" if="HXCPP_ARMV7"/>
<set name="ndll-tool" value="dll" unless="iphone"/>
<set name="ndll-tool" value="static_link" if="iphone"/>
<set name="name_extra" value=".iphoneos${IOS_ARCH}" if="iphoneos"/>
<set name="name_extra" value=".iphonesim${IOS_ARCH}" if="iphonesim"/>
<!--<set name="name_extra" value=".iphonesim" if="iphonesim"/>-->
<set name="name_extra" value="${ARM_ARCH}" if="android"/>
<set name="no_thirdparty_extras" value="1" if="iphone"/>
<set name="sdl_static" value="1" unless="mobile"/>
<unset name="sdl_static" if="dynamic_sdl"/>
<set name="no_thirdparty_extras" value="1" if="dynamic_sdl"/>
<set name="name_prefix" value="lib" if="iphone" />
<target id="NDLL" output="${name_prefix}tapdaq${name_extra}" tool="linker" toolid="${ndll-tool}">
<outdir name="../ndll/${BINDIR}" />
<ext value=".ndll" unless="mobile"/>
<files id="iphone" if="iphone"/>
<files id="android" if="android"/>
<files id="common"/>
</target>
<!--<section if="iphone" >
<vflag name="-framework" value="Tapdaq" />
<files id="iphone" if="iphone" />
</section>-->
<target id="default">
<target id="NDLL"/>
</target>
</xml>