-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 1.1 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
.PHONY: all init build install clean heaps-world
all: build
init:
brew install haxe gnu-sed ios-deploy
brew bundle install --file deps/hashlink/Brewfile --no-lock
make -C deps/hashlink
make install -C deps/hashlink
haxelib setup /usr/local/lib/haxe/lib
gsed -i "s/PRODUCT_NAME=.*/PRODUCT_NAME=$(PRODUCT_NAME)/" -i Configuration/Config.xcconfig
gsed -i "s/DEVELOPMENT_TEAM=.*/DEVELOPMENT_TEAM=$(DEVELOPMENT_TEAM)/" Configuration/Config.xcconfig
gsed -i "s/PRODUCT_BUNDLE_IDENTIFIER=.*/PRODUCT_BUNDLE_IDENTIFIER=$(PRODUCT_BUNDLE_IDENTIFIER)/" Configuration/Config.xcconfig
git update-index --assume-unchanged Configuration/Config.xcconfig
build:
xcodebuild -project App.xcodeproj -target App build
install:
ios-deploy -b build/Release-iphoneos/*.app -d
clean:
rm -rf build
heaps-world: heaps-world-hl heaps-world-pak
heaps-world-hl:
cd deps/heaps/samples && haxelib install --always ../../../base.hxml && haxe -hl ../../../out/main.c ../../../base.hxml
heaps-world-pak:
cd deps/heaps/samples && haxe -hl hxd.fmt.pak.Build.hl -lib heaps -main hxd.fmt.pak.Build && hl hxd.fmt.pak.Build.hl -out ../../../out/res