-
Notifications
You must be signed in to change notification settings - Fork 0
/
include.xml
186 lines (139 loc) · 6.59 KB
/
include.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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?xml version="1.0" encoding="utf-8"?>
<extension>
<log warn="OpenFL expects Haxe 3.4.3 or greater, but version ${haxe} is being used" if="${${haxe} < 3.4.3}" />
<set name="expect-lime-version" value="7.7.*" />
<set name="expect-lime-version" value="${lime-version}" if="lime-version" />
<!-- <set name="lime-version" value="${expect-lime-version}" if="setup" unless="lime-version" /> -->
<haxedef name="native" if="cpp || neko" />
<set name="native" if="cpp || neko" />
<window stencil-buffer="true" depth-buffer="true" color-depth="32" />
<unset name="custom-backend" />
<section if="${target}-backend" unless="no-custom-backend">
<set name="target-backend" value="${target}-backend" />
<set name="custom-backend" value="$${target-backend}" />
</section>
<section unless="lime || custom-backend">
<section if="lime-version">
<haxelib name="lime" version="${lime-version}" unless="create" />
<haxelib name="lime" version="${lime-version}" if="display || rebuild" />
</section>
<section unless="lime-version">
<haxelib name="lime" unless="create" />
<haxelib name="lime" if="display || rebuild" />
</section>
</section>
<section if="${lime < 7.6.0} || ${lime >= 7.9.0}" unless="setup || create || disable-version-check">
<log warn="Lime version ${lime} may not be compatible with OpenFL ${openfl} (expected version ${expect-lime-version})" />
<log info='Use <lime version="" /> before <haxelib name="openfl" /> to include a specific version' />
</section>
<template path="assets/templates" />
<source path="packages/application/src" />
<source path="packages/assets/src" />
<source path="packages/bitmapdata/src" />
<source path="packages/displayobject/src" />
<source path="packages/errors/src" />
<source path="packages/eventdispatcher/src" />
<source path="packages/externalinterface/src" />
<source path="packages/filereference/src" />
<source path="packages/filters/src" />
<source path="packages/geom/src" />
<source path="packages/graphics/src" />
<source path="packages/input/src" />
<source path="packages/loader/src" />
<source path="packages/movieclip/src" />
<source path="packages/printing/src" />
<source path="packages/renderer-cairo/src" />
<source path="packages/renderer-canvas/src" />
<source path="packages/renderer-core/src" />
<source path="packages/renderer-dom/src" />
<source path="packages/renderer-flash/src" />
<source path="packages/renderer-stage3d/src" />
<source path="packages/security/src" />
<source path="packages/sensors/src" />
<source path="packages/shader/src" />
<source path="packages/sharedobject/src" />
<source path="packages/socket/src" />
<source path="packages/sound/src" />
<source path="packages/stage/src" />
<source path="packages/stage3d/src" />
<source path="packages/system/src" />
<source path="packages/telemetry/src" />
<source path="packages/textfield/src" />
<source path="packages/tilemap/src" />
<source path="packages/urlloader/src" />
<source path="packages/urlrequest/src" />
<source path="packages/urlstream/src" />
<source path="packages/utils/src" />
<source path="packages/video/src" />
<source path="externs/flash" if="flash" />
<!-- <source path="src-draft" if="draft" /> -->
<source path="packages/draft/src" if="draft" />
<include haxelib="${custom-backend}" if="display custom-backend" />
<haxelib name="${custom-backend}" if="custom-backend" unless="display" />
<section unless="custom-backend">
<define name="openfl-disable-handle-error" unless="openfl-enable-handle-error" if="debug" />
<section if="native">
<set name="openfl-native" />
<haxedef name="openfl-native" />
<set name="openfl" />
<haxeflag name="--remap" value="flash:openfl" />
<section if="telemetry || advanced-telemetry || openfl-telemetry">
<haxelib name="hxtelemetry" unless="flash" />
<config:hxtelemetry allocations="true" host="localhost" unless="flash" />
<haxedef name="advanced-telemetry" if="flash" />
</section>
<haxedef name="openfl-debug" if="openfl-telemetry" />
<haxedef name="lime-debug" if="openfl-telemetry" />
</section>
<section if="flash">
<set name="openfl-flash" />
<haxedef name="openfl-flash" />
<haxedef name="advanced-telemetry" if="telemetry" />
</section>
<section if="html5">
<set name="openfl-html5" />
<haxedef name="openfl-html5" />
<haxeflag name="--remap" value="flash:openfl" />
<module name="openfl" if="html5 lime-modular">
<source path="src" package="openfl" exclude="openfl._internal.renderer.console.*|*.Context3DGraphics|*.SWFLibrary" />
<!-- @:expose on enums do not work in Haxe 3.4.2 -->
<class remove="lime.graphics.opengl.GLContextType" />
<class remove="lime.graphics.ImageChannel" />
<class remove="lime.graphics.ImageType" />
<class remove="lime.graphics.RendererType" />
<class remove="lime.ui.FileDialogType" />
<class remove="lime.ui.MouseCursor" />
<class remove="lime.system.Endian" />
<class remove="lime.system.SensorType" />
<include type="openfl.display3D._Program3D.Uniform" />
<include type="openfl.display3D._Program3D.UniformMap" />
<include type="openfl.display.DefaultPreloader" />
<include type="openfl.events._EventDispatcher.Listener" />
<include type="openfl.utils.ByteArrayData" />
<include type="openfl._Vector.IVector" />
<include type="openfl._Vector.BoolVector" />
<include type="openfl._Vector.FloatVector" />
<include type="openfl._Vector.FunctionVector" />
<include type="openfl._Vector.IntVector" />
<include type="openfl._Vector.ObjectVector" />
<include type="openfl._internal.renderer.console.ConsoleRenderer" />
<include type="openfl._internal.stage3D._AGALConverter.DestRegister" />
<include type="openfl._internal.stage3D.RegisterMap" />
<include type="openfl._internal.stage3D._AGALConverter.RegisterMapEntry" />
<include type="openfl._internal.stage3D._AGALConverter.SamplerRegister" />
<include type="openfl._internal.stage3D._AGALConverter.SourceRegister" />
</module>
</section>
<set name="openfl-has-default-fonts" if="windows || mac || linux || ios || android || flash || html5 || emscripten || tvos" />
<assets path="assets/fonts" unless="openfl-has-default-fonts || openfl-no-default-fonts" />
</section>
<library handler="swf" type="swf" />
<library handler="swf" type="swflite" />
<library handler="swf" type="swf_lite" />
<section if="setup">
<haxelib name="lime" version="${lime-version}" if="lime-version" />
<haxelib name="lime" unless="lime-version" />
<haxelib name="openfl-samples" />
</section>
<include haxelib="openfl-samples" if="create" />
</extension>