-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
44 lines (33 loc) · 1.04 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
HAXE=haxe
ADL=adl
ADT=adt
SWF=bin/Swivel.swf
CERT_PASS=ngswivel!430
PACKAGE_FILES=application.xml $(SWF) ffmpeg/mac64 ffmpeg/licenses assets/icons README.md LICENSE.md
ADTFLAGS=-package -storetype pkcs12 -keystore bat/Swivel.p12 -storepass $(CERT_PASS) -target bundle bin/Swivel
HXML_FILE=Swivel.hxml
APP_PATH=bin/Swivel.app
DMG_PATH=bin/Swivel.dmg
.PHONY: clean package debug run
all: package
run: $(SWF)
$(ADL) application.xml .
debug:
# Force rebuild with debug parameters.
$(HAXE) $(HXML_FILE) -debug -D fdb
$(ADL) application.xml .
package: $(DMG_PATH)
clean:
rm -rf bin
$(SWF): $(HXML_FILE)
$(HAXE) $(HXML_FILE) $(HXML_FLAGS)
$(DMG_PATH): $(APP_PATH) mac-installer.json
# Use appdmg to build the DMG image.
rm -rf $(DMG_PATH)
appdmg mac-installer.json $(DMG_PATH)
$(APP_PATH): $(SWF) $(PACKAGE_FILES)
# Package app using ADT.
$(ADT) $(ADTFLAGS) $(PACKAGE_FILES)
# Create debug file to force AIR app into Debug mode.
# This is necessary to use the System.pause methods in AS3.
touch bin/Swivel.app/Contents/Resources/META-INF/debug