forked from FunkinCrew/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.xml
More file actions
119 lines (75 loc) · 3.5 KB
/
include.xml
File metadata and controls
119 lines (75 loc) · 3.5 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
<?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 || hl" />
<set name="native" if="cpp || hl" />
<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>
<define name="openfl-shadow" />
<section unless="lime-shadow || setup || create || disable-version-check || display">
<log error="Lime has to be Shadow Engine's Fork to be compiling with OpenFL Shadow Engine's Fork, (got Lime ${lime})"/>
</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" 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" />
</section>
<set name="openfl-has-default-fonts" if="windows || mac || linux || ios || android || flash || html5 || 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>