iOS makefile tweaks to build more .app bundles.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4523 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
fc9a081250
commit
11929e8c68
22
Makefile
22
Makefile
@ -519,6 +519,9 @@ all: $(BUILD_TYPES)
|
|||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
all: out/TildeFriends-debug.apk out/TildeFriends-release.apk
|
all: out/TildeFriends-debug.apk out/TildeFriends-release.apk
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
all: out/tildefriends-iosdebug.app/tildefriends out/tildefriends-iosrelease.app/tildefriends out/tildefriends-iossimdebug.app/tildefriends out/tildefriends-iossimrelease.app/tildefriends
|
||||||
|
endif
|
||||||
.PHONY: all win unix
|
.PHONY: all win unix
|
||||||
|
|
||||||
ALL_APP_OBJS := \
|
ALL_APP_OBJS := \
|
||||||
@ -645,20 +648,25 @@ apkgo: out/TildeFriends-release.apk
|
|||||||
|
|
||||||
# iOS Support
|
# iOS Support
|
||||||
out/%.app/Info.plist: src/ios/Info.plist
|
out/%.app/Info.plist: src/ios/Info.plist
|
||||||
mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
cp -v $< $@
|
@cp -v $< $@
|
||||||
|
|
||||||
out/%.app/data.zip: $(RAW_FILES)
|
out/%/data.zip: $(RAW_FILES)
|
||||||
@zip -u $@ -q -9 -x '*.map' -r $(PACKAGE_DIRS) $(RAW_FILES)
|
@zip -u $@ -q -9 -x '*.map' -r $(PACKAGE_DIRS) $(RAW_FILES)
|
||||||
|
|
||||||
out/tildefriends-iossimdebug.app/tildefriends: out/iossimdebug/tildefriends out/tildefriends-iossimdebug.app/Info.plist out/tildefriends-iossimdebug.app/data.zip
|
out/tildefriends-%.app/tildefriends: out/%/tildefriends out/tildefriends-%.app/Info.plist out/tildefriends-%.app/data.zip
|
||||||
mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
cp out/iossimdebug/tildefriends $@
|
@cp -v $< $@
|
||||||
|
.SECONDARY:
|
||||||
|
|
||||||
|
iossimdebug-app: out/tildefriends-iossimdebug.app/tildefriends
|
||||||
|
iossimrelease-app: out/tildefriends-iossimrelease.app/tildefriends
|
||||||
|
.PHONY: iossimdebug-app iossimrelease-app
|
||||||
|
|
||||||
iossimdebuggo: out/tildefriends-iossimdebug.app/tildefriends
|
iossimdebuggo: out/tildefriends-iossimdebug.app/tildefriends
|
||||||
xcrun simctl install booted out/tildefriends-iossimdebug.app/
|
xcrun simctl install booted out/tildefriends-iossimdebug.app/
|
||||||
xcrun simctl launch booted com.unprompted.tildefriends
|
xcrun simctl launch booted com.unprompted.tildefriends
|
||||||
.PHONEY: iossimdebuggo
|
.PHONY: iossimdebuggo
|
||||||
|
|
||||||
apklog:
|
apklog:
|
||||||
@adb logcat *:S tildefriends
|
@adb logcat *:S tildefriends
|
||||||
|
Loading…
Reference in New Issue
Block a user