-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
80 lines (71 loc) · 2.92 KB
/
Makefile
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
# Simple makefile to allow command line compilation.
#
# Only tested on OSX but the principle should work everywhere.
# Set these to your paths.
MXMLC="/Applications/Adobe Flash Builder 4.7/sdks/4.6.0/bin/mxmlc"
COMPC="/Applications/Adobe Flash Builder 4.7/sdks/4.6.0/bin/compc"
flexlib="/Applications/Adobe Flash Builder 4.7/sdks/4.6.0/"
DEBUG_FLAG=true
OPTIMIZE_FLAG=false
# First time, run make disabled all
# Then only need to run disable if you change OSMF or OSMFUtils
all: TestPlayer/html-template/TestPlayer.swf KalturaHLSPlugin/KalturaHLSPlugin.swf
TestPlayer/html-template/TestPlayer.swf: $(shell find TestPlayer -name \*.as) $(shell find TestPlayer -name \*.mxml) HLSPlugin/hlsPlugin.swc
@echo ============ TestPlayer ========================
cd TestPlayer && ${MXMLC} \
-static-link-runtime-shared-libraries=true \
-library-path+=../OSMF/osmf.swc \
-library-path+=../OSMFUTils/osmfutils.swc \
-library-path+=../hlsPlugin/hlsPlugin.swc \
-swf-version 20 \
-use-network=true \
-debug=${DEBUG_FLAG} \
-optimize=${OPTIMIZE_FLAG} \
-output html-template/TestPlayer.swf -source-path+=src src/DashTest.mxml
KalturaHLSPlugin/KalturaHLSPlugin.swf: $(shell find KalturaHLSPlugin -name \*.as) HLSPlugin/hlsPlugin.swc
@echo ============ KalturaHLSPlugin ========================
cd KalturaHLSPlugin && ${MXMLC} \
-static-link-runtime-shared-libraries=true \
-library-path+=../OSMF/osmf.swc \
-library-path+=../OSMFUTils/osmfutils.swc \
-library-path+=../hlsPlugin/hlsPlugin.swc \
-library-path+=lib/lightKdp3Lib.swc \
-swf-version 20 \
-use-network=true \
-debug=${DEBUG_FLAG} \
-optimize=${OPTIMIZE_FLAG} \
-output KalturaHLSPlugin.swf -source-path+=src src/KalturaHLSPlugin.as
HLSPlugin/hlsPlugin.swc: $(shell find HLSPlugin/ -name \*.as) OSMFUtils/osmfutils.swc
@echo ============= HLSPlugin ========================
cd HLSPlugin && ${COMPC} \
-load-config+=HLS-build-config.xml \
-library-path+=../OSMF/osmf.swc \
-swf-version 20 \
-use-network=true \
-debug=${DEBUG_FLAG} \
-optimize=${OPTIMIZE_FLAG} \
-output hlsPlugin.swc -include-sources src
OSMFUtils/osmfutils.swc: $(shell find OSMFUtils/ -name \*.as) OSMF/osmf.swc
@echo ============= OSMFUtils ========================
cd OSMFUtils && ${COMPC} \
-load-config+=OSMFUtils-build-config.xml \
-swf-version 20 \
-debug=${DEBUG_FLAG} \
-optimize=${OPTIMIZE_FLAG} \
-library-path+=../OSMF/osmf.swc \
-output osmfutils.swc -include-sources src
OSMF/osmf.swc: $(shell find OSMF/ -name \*.as) Makefile
@echo ============= OSMF ========================
cd OSMF && ${COMPC} \
-load-config+=OSMF-build-config.xml \
-swf-version 20 \
-debug=${DEBUG_FLAG} \
-optimize=${OPTIMIZE_FLAG} \
-output osmf.swc -include-sources .
clean:
@echo ============= Cleaning ========================
rm OSMF/osmf.swc
rm OSMFUtils/osmfutils.swc
rm HLSPlugin/hlsPlugin.swc
rm KalturaHLSPlugin/KalturaHLSPlugin.swf
rm TestPlayer/html-template/TestPlayer.swf