forked from openfl/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
include.xml
158 lines (108 loc) · 5.61 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
<?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}" unless="display" />
<set name="expect-lime-version" value="7.7.0+" />
<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="${haxe_ver >= 4.3} ${lime < 8.0.2} flash" unless="setup || create || disable-version-check || display">
<!-- Haxe 4.3 made Flash externs more strict -->
<log error="Lime version ${lime} is not compatible with OpenFL ${openfl} when targeting flash or air with Haxe 4.3+ (expected Lime version 8.0.2+)" />
</section>
<section if="${lime < 7.6.0} || ${lime >= 8.1.0}" unless="setup || create || disable-version-check || display">
<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" />
<dependency path="dist/openfl.min.js" if="html5 openfl-html5-extern" unless="debug" embed="true" />
<dependency path="dist/openfl.js" if="html5 openfl-html5-extern debug" embed="true" />
<source path="lib/flash-externs/src" if="flash" />
<!-- <source path="src-draft" if="draft" /> -->
<source path="lib/draft-api/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" />
<library handler="swf" type="swc" />
<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>