-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.xml
More file actions
168 lines (138 loc) · 7.36 KB
/
include.xml
File metadata and controls
168 lines (138 loc) · 7.36 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0" encoding="utf-8"?>
<extension>
<set name="lime" />
<log error="Lime ${lime} is not compatible with Haxe ${haxe} (version 4.2.5 or higher is required)" if="${haxe < 4.2.5}" />
<define name="native" if="cpp || hl" />
<define name="lime-shadow" />
<define name="lime-cairo" if="native" />
<define name="lime-canvas" if="html5" />
<define name="lime-cffi" if="native" />
<define name="lime-curl" unless="html5" />
<define name="lime-dom" if="html5" />
<define name="lime-harfbuzz" if="native" />
<define name="lime-howlerjs" if="html5" />
<define name="lime-html5" if="html5" />
<define name="lime-native" if="native" />
<define name="lime-openal" if="windows || linux || mac || android || ios || tvos" />
<define name="lime-opengles" if="native" />
<define name="lime-vorbis" if="native" />
<define name="lime-webgl" if="html5" />
<haxedef name="no-compilation" />
<templatePath name="templates" />
<sample path="samples" unless="openfl" />
<section if="hxp" unless="lime-tools">
<target name="android" path="tools/platforms/AndroidPlatform.hx" />
<target name="html5" path="tools/platforms/HTML5Platform.hx" />
<target name="ios" path="tools/platforms/IOSPlatform.hx" />
<target name="linux" path="tools/platforms/LinuxPlatform.hx" />
<target name="mac" path="tools/platforms/MacPlatform.hx" />
<target name="tvos" path="tools/platforms/TVOSPlatform.hx" />
<target name="windows" path="tools/platforms/WindowsPlatform.hx" />
</section>
<section unless="display">
<section unless="force-synchronous || force_synchronous">
<haxedef name="lime-threads" if="native || html5" />
<haxedef name="lime-threads-deque" if="native" />
</section>
<ndll name="lime" if="native" unless="static_link" />
<section if="android">
<dependency name="extension-api" path="dependencies/extension-api" if="android" />
<dependency name="androidtools" path="dependencies/androidtools" if="android" />
<config:android>
<manifest>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
</manifest>
</config:android>
</section>
<section if="html5">
<dependency path="dependencies/howler.js" embed="true" />
<dependency path="dependencies/pako.min.js" embed="true" allow-web-workers="true" />
<dependency path="dependencies/lzma_worker-min.js" embed="true" />
<dependency path="dependencies/FileSaver.min.js" embed="true" />
<dependency path="dependencies/webgl-debug.js" if="webgl-debug" embed="true" />
<dependency path="dependencies/stats.min.js" if="stats" embed="true" />
</section>
<section if="ios">
<dependency name="AudioToolbox.framework" />
<dependency name="AVFoundation.framework" />
<dependency name="CoreAudio.framework" />
<dependency name="CoreBluetooth.framework" />
<dependency name="CoreGraphics.framework" />
<dependency name="CoreHaptics.framework" />
<dependency name="CoreMedia.framework" />
<dependency name="CoreMotion.framework" />
<dependency name="CoreText.framework" />
<dependency name="CoreVideo.framework" />
<dependency name="Foundation.framework" />
<dependency name="GameController.framework" />
<dependency name="MediaPlayer.framework" />
<dependency name="Metal.framework" />
<dependency name="QuartzCore.framework" />
<dependency name="Security.framework" />
<dependency name="UIKit.framework" />
</section>
<section if="tvos">
<dependency name="AudioToolbox.framework" />
<dependency name="AVFoundation.framework" />
<dependency name="CoreAudio.framework" />
<dependency name="CoreBluetooth.framework" />
<dependency name="CoreGraphics.framework" />
<dependency name="Foundation.framework" />
<dependency name="GameController.framework" />
<dependency name="MediaPlayer.framework" />
<dependency name="OpenGLES.framework" />
<dependency name="QuartzCore.framework" />
<dependency name="Security.framework" />
<dependency name="UIKit.framework" />
</section>
<section if="windows">
<dependency path="dependencies/angle" name="d3dcompiler_47" />
<dependency path="dependencies/angle" name="vk_swiftshader" />
<dependency path="dependencies/angle" name="vk_swiftshader_icd.json" type="json" />
</section>
<section if="linux">
<dependency path="dependencies/angle" name="libvk_swiftshader" />
<dependency path="dependencies/angle" name="vk_swiftshader_icd.json" type="json" />
</section>
<dependency path="dependencies/angle" name="libVkICD_mock_icd" if="mac" />
<dependency path="dependencies/angle" name="libEGL" unless="android || ios || iphonesim" />
<dependency path="dependencies/angle" name="libGLESv2" unless="android || ios || iphonesim" />
<ndll name="EGL" dir="dependencies/angle" if="android" />
<ndll name="GLESv2" dir="dependencies/angle" if="android" />
<ndll name="c++_shared" dir="dependencies/angle" if="android" />
<dependency path="dependencies/angle/iPhone/device/arm64/libEGL.framework" embed="true" if="ios" unless="iphonesim" />
<dependency path="dependencies/angle/iPhone/device/arm64/libGLESv2.framework" embed="true" if="ios" unless="iphonesim" />
<section if="iphonesim">
<dependency path="dependencies/angle/iPhone/simulator/arm64/libEGL.framework" embed="true" if="HXCPP_ARM64" />
<dependency path="dependencies/angle/iPhone/simulator/x64/libEGL.framework" embed="true" if="HXCPP_M64 || HXCPP_X86_64" unless="HXCPP_ARM64" />
<dependency path="dependencies/angle/iPhone/simulator/arm64/libGLESv2.framework" embed="true" if="HXCPP_ARM64" />
<dependency path="dependencies/angle/iPhone/simulator/x64/libGLESv2.framework" embed="true" if="HXCPP_M64 || HXCPP_X86_64" unless="HXCPP_ARM64" />
</section>
<section if="mac">
<define name="MACOSX_DEPLOYMENT_TARGET" value="11.0" unless="MACOSX_DEPLOYMENT_TARGET" />
<setenv name="MACOSX_DEPLOYMENT_TARGET" value="${MACOSX_DEPLOYMENT_TARGET}" />
</section>
</section>
<include haxelib="lime-samples" if="create" />
<section if="rebuild">
<config:project>
<rebuild fulldebug="true" />
</config:project>
</section>
<haxeflag name="--macro" value="addMetadata('@:build(lime._internal.macros.TimerMacro.build())', 'haxe.Timer')" />
<haxeflag name="--macro" value="addMetadata('@:build(lime._internal.macros.AssetsMacro.embedBytes())', 'haxe.io.Bytes')" />
</extension>