forked from unifiedstreaming/mse-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.hxml
47 lines (41 loc) · 1.81 KB
/
build.hxml
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
-cp src
-cp lib
-cp ../macro
-js bin/uapi.js
-main Main
-lib argan
-resource res/logo.svg@logo
-resource res/templates/player_page_template.html@template
-resource res/templates/controls_template.html@controls_template
#-macro Macros.GetPlayersCDNJS("dashjs")
-resource res/players/dashjs.json@dashjs-src
--macro Macros.getPlayerCode("res/players/DashJs.hx@dashjs", true, ["-D", "ARGAN_SMARTCAST"])
-resource res/players/shaka.json@shaka-src
--macro Macros.getPlayerCode("res/players/Shaka.hx@shaka", true, ["-D", "ARGAN_SMARTCAST"])
-resource res/players/hlsjs.json@hlsjs-src
--macro Macros.getPlayerCode("res/players/HlsJs.hx@hlsjs", true, ["-D", "ARGAN_SMARTCAST"])
-resource res/players/hasplayer.json@hasplayer-src
--macro Macros.getPlayerCode("res/players/HasPlayer.hx@hasplayer", true, ["-D", "ARGAN_SMARTCAST"])
# explicitly expose Hooks library
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.Hooks", '@:keep')
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.Hooks", '@:expose("uapi.hooks")')
# explicitly expose uuid function
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.Utils.GenerateUUID", '@:keep', false, false, true)
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.Utils.GenerateUUID", '@:expose("uapi.uuid")',false, false, true)
# explicitly expose ui function
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.ui.Timeline", '@:keep')
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.ui.Timeline", '@:expose("uapi.timeline")')
# explicitly expose ui function
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.ui.Tree", '@:keep')
--macro haxe.macro.Compiler.addGlobalMetadata("uapi.ui.Tree", '@:expose("uapi.tree")')
-D ARGAN_SMARTCAST
-dce full
#-debug
#--times
#-D documentwrite
#-D check-macro
#-D source-map
#-D EXPERIMENTAL
--next
-cp ../macro
--macro Macros.PrependVersion("uapi.js 📺 ", "bin/uapi.js")