tibia/templates/ios-make/Makefile

37 lines
783 B
Makefile
Raw Normal View History

2024-02-02 15:58:51 +00:00
include vars.mk
COMMON_DIR := $(or $(COMMON_DIR),.)
DATA_DIR := $(or $(DATA_DIR),.)
PLUGIN_DIR := $(or $(PLUGIN_DIR),src)
SOURCES := \
${DATA_DIR}/src/data.h \
${DATA_DIR}/src/index.html \
${COMMON_DIR}/src/app.swift \
${COMMON_DIR}/src/native.mm \
${COMMON_DIR}/src/app-Bridging-Header.h \
${PLUGIN_DIR}/plugin.h \
${C_SRCS_EXTRA} \
${CXX_SRCS_EXTRA}
SOURCES_OUT = $(addprefix build/gen/src/, $(notdir $(SOURCES)))
all: build/gen/${BUNDLE_NAME}.xcodeproj
build/gen/${BUNDLE_NAME}.xcodeproj: ${SOURCES_OUT}
2024-02-05 15:33:06 +00:00
xcodegen generate --spec project.yml -r build/gen -p build/gen
2024-02-02 15:58:51 +00:00
build/gen/src:
2024-02-02 15:58:51 +00:00
mkdir -p $@
clean:
rm -fr build
.PHONY: all clean
.SECONDEXPANSION:
PERCENT := %
2024-02-02 15:58:51 +00:00
$(SOURCES_OUT): build/gen/src/%: $$(filter $$(PERCENT)/%,$$(SOURCES)) | build/gen/src
cp $^ $@