forked from openfl/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinclude.xml
111 lines (70 loc) · 2.92 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
<?xml version="1.0" encoding="utf-8"?>
<extension>
<haxedef name="native" if="cpp || neko" />
<set name="native" if="cpp || neko" />
<set name="lime-hybrid" value="1" if="hybrid || lime_hybrid" unless="web || display" />
<set name="openfl-legacy" value="1" if="legacy || openfl_legacy || lime-legacy || lime_legacy || v2 || lime-hybrid" unless="web || display" />
<section if="web || display">
<unset name="openfl-legacy" />
<unset name="lime-legacy" />
<unset name="lime-hybrid" />
<unset name="legacy" />
<unset name="hybrid" />
</section>
<set name="lime-legacy" value="1" if="openfl-legacy" unless="lime-hybrid" />
<set name="openfl-next" value="1" unless="openfl-legacy" />
<haxedef name="disable-legacy-sound" if="ios lime-hybrid" />
<haxedef name="openfl-legacy" if="openfl-legacy" unless="display" />
<haxedef name="lime-legacy" if="lime-legacy" unless="display" />
<haxedef name="lime-hybrid" if="lime-hybrid" unless="display" />
<haxedef name="openfl-next" if="openfl-next" />
<window stencil-buffer="true" unless="lime-legacy" />
<window hardware="false" if="html5" unless="webgl" />
<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">
<haxelib name="lime" unless="create || native lime-legacy" />
<haxelib name="lime" if="display || rebuild" />
<template path="templates" />
</section>
<source path="extern" if="display || flash" />
<include haxelib="${custom-backend}" if="display custom-backend" />
<haxelib name="${custom-backend}" if="custom-backend" unless="display" />
<section unless="custom-backend">
<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">
<haxelib name="hxtelemetry" />
<config:hxtelemetry allocations="true" host="localhost" />
</section>
<section if="openfl-legacy">
<include haxelib="lime" if="lime-legacy" />
<template path="templates/legacy" />
</section>
</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" />
<haxedef name="canvas" unless="webgl || dom" />
<haxeflag name="--remap" value="flash:openfl" />
<dependency path="dependencies/soundjs.min.js" />
</section>
</section>
<section if="setup">
<haxelib name="lime" />
<haxelib name="openfl-samples" />
<haxelib name="swf" />
</section>
<include haxelib="openfl-samples" if="create" />
</extension>