tibia/templates/ios-make/Makefile

71 lines
1.6 KiB
Makefile
Raw Normal View History

2024-02-22 11:31:35 +00:00
#
# Tibia
#
# Copyright (C) 2024 Orastron Srl unipersonale
#
# Tibia is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Tibia is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Tibia. If not, see <http://www.gnu.org/licenses/>.
#
# File author: Stefano D'Angelo
#
TEMPLATE := ios
2024-02-02 15:58:51 +00:00
include vars.mk
COMMON_DIR ?= .
DATA_DIR ?= .
PLUGIN_DIR ?= src
MKINC_DIR ?= $(COMMON_DIR)
-include $(MKINC_DIR)/vars-pre.mk
SOURCES := \
2024-06-16 10:04:02 +00:00
$(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) \
$(SRCS_EXTRA)
SOURCES_OUT := $(addprefix build/gen/src/, $(notdir $(SOURCES)))
ALL = build/gen/$(BUNDLE_NAME).xcodeproj
-include $(MKINC_DIR)/vars-extra.mk
2024-06-16 10:04:02 +00:00
all: $(ALL)
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
-include $(MKINC_DIR)/rules-extra.mk
2024-06-16 10:04:02 +00:00
.PHONY: all clean
.SECONDEXPANSION:
PERCENT := %
2024-02-02 15:58:51 +00:00
$(SOURCES_OUT): build/gen/src/%: $$(filter $$(PERCENT)/%,$$(SOURCES)) | build/gen/src
2024-03-21 14:03:52 +00:00
cp -R $^ $@
2024-06-16 10:04:02 +00:00
-include $(MKINC_DIR)/rules-secondexp-extra.mk