forked from openfl/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
include.xml
114 lines (75 loc) · 3.47 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
<?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" />
<section if="openfl-next || webgl">
<window stencil-buffer="true" />
</section>
<unset name="custom-backend" />
<section unless="no-custom-backend">
<set name="custom-backend" value="${flash-backend}" if="flash flash-backend" />
<set name="custom-backend" value="${android-backend}" if="android android-backend" />
<set name="custom-backend" value="${blackberry-backend}" if="blackberry blackberry-backend" />
<set name="custom-backend" value="${emscripten-backend}" if="emscripten emscripten-backend" />
<set name="custom-backend" value="${ios-backend}" if="ios ios-backend" />
<set name="custom-backend" value="${linux-backend}" if="linux linux-backend" />
<set name="custom-backend" value="${mac-backend}" if="mac mac-backend" />
<set name="custom-backend" value="${tizen-backend}" if="tizen tizen-backend" />
<set name="custom-backend" value="${webos-backend}" if="webos webos-backend" />
<set name="custom-backend" value="${windows-backend}" if="windows windows-backend" />
<set name="custom-backend" value="${html5-backend}" if="html5 html5-backend" />
<set name="custom-backend" value="${firefoxos-backend}" if="firefoxos firefoxos-backend" />
</section>
<section unless="lime">
<haxelib name="lime" unless="create || native lime-legacy" />
<haxelib name="lime" if="display || rebuild" />
<template path="templates" />
</section>
<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="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" />
</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>
<sample path="${haxelib:openfl-samples}" if="create" />
</extension>