From 11929e8c68b68352f215069759c3e8ade4f23da5 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 15 Oct 2023 18:06:31 +0000 Subject: [PATCH] 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 --- Makefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7e80122e..6e0e5b04 100644 --- a/Makefile +++ b/Makefile @@ -519,6 +519,9 @@ all: $(BUILD_TYPES) ifeq ($(UNAME_S),Linux) all: out/TildeFriends-debug.apk out/TildeFriends-release.apk 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 ALL_APP_OBJS := \ @@ -645,20 +648,25 @@ apkgo: out/TildeFriends-release.apk # iOS Support out/%.app/Info.plist: src/ios/Info.plist - mkdir -p $(dir $@) - cp -v $< $@ + @mkdir -p $(dir $@) + @cp -v $< $@ -out/%.app/data.zip: $(RAW_FILES) +out/%/data.zip: $(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 - mkdir -p $(dir $@) - cp out/iossimdebug/tildefriends $@ +out/tildefriends-%.app/tildefriends: out/%/tildefriends out/tildefriends-%.app/Info.plist out/tildefriends-%.app/data.zip + @mkdir -p $(dir $@) + @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 xcrun simctl install booted out/tildefriends-iossimdebug.app/ xcrun simctl launch booted com.unprompted.tildefriends -.PHONEY: iossimdebuggo +.PHONY: iossimdebuggo apklog: @adb logcat *:S tildefriends