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:
Cory McWilliams 2023-10-15 18:06:31 +00:00
parent fc9a081250
commit 11929e8c68

View File

@ -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