-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.iOS
30 lines (23 loc) · 1015 Bytes
/
Makefile.iOS
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
PROJECT=NLua.iOS.sln
MDTOOL=/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool
MTOUCH=/Developer/MonoTouch/usr/bin/mtouch
TOUCH_SERVER=./Touch.Server/bin/Debug/Touch.Server.exe
all: build-simulator build-device
run run-test: run-device
touch-server:
cd Touch.Server && xbuild
build-simulator:
$(MDTOOL) -v build -t:Build "-c:Release|iPhoneSimulator" $(PROJECT)
run-simulator: build-simulator touch-server
rm -f sim-results.log
mono --debug $(TOUCH_SERVER) --launchsim ios/NLuaTestsiOS/bin/iPhoneSimulator/Release/NLuaTest.app -autoexit -logfile=sim-results.log
cat sim-results.log
build-device:
$(MDTOOL) -v build -t:Build "-c:Release|iPhone" $(PROJECT)
run-device: build-device touch-server
$(MTOUCH) --installdev ios/NLuaTestsiOS/bin/iPhone/Release/NLuaTest.app
# kill an existing instance (based on the bundle id)
$(MTOUCH) --killdev org.nlua.nluatest
rm -f dev-results.log
mono --debug $(TOUCH_SERVER) --launchdev org.nlua.nluatest -autoexit -logfile=dev-results.log
cat dev-results.log