Adding first APK build
This commit is contained in:
@@ -14,7 +14,7 @@ ASSETS_DIR := res/assets/ss_ee
|
||||
BUILD_DIR := build
|
||||
ARCH := $(shell uname -m)
|
||||
|
||||
.PHONY: all dist build-image engine assets package clean
|
||||
.PHONY: all dist build-image engine assets package apk clean
|
||||
|
||||
all: dist
|
||||
|
||||
@@ -107,8 +107,23 @@ package: engine
|
||||
rm -rf "$(BUILD_DIR)/package"; \
|
||||
echo "Wrote $(DIST_DIR)/$$PKG_NAME.tar.gz"
|
||||
|
||||
# Builds the Quest APK (see build-image/build-apk.sh and
|
||||
# android/engine-patches/ - engine/ itself is never modified; a patch is
|
||||
# applied to a scratch copy at build time instead). Same
|
||||
# QUESTSHOCK_BUILD_IMAGE detection as `engine`. Unlike every other target
|
||||
# here, this needs network access at build time (Gradle/AGP's own
|
||||
# dependency resolution) - see build-image/Dockerfile.
|
||||
apk:
|
||||
@if [ -n "$$QUESTSHOCK_BUILD_IMAGE" ]; then \
|
||||
bash build-image/build-apk.sh; \
|
||||
else \
|
||||
./run-image.sh bash build-image/build-apk.sh; \
|
||||
fi
|
||||
|
||||
clean:
|
||||
rm -rf "$(DIST_DIR)" "$(BUILD_DIR)" "$(ENGINE_OUT)" \
|
||||
engine/build_ext engine/CMakeCache.txt engine/CMakeFiles \
|
||||
engine/cmake_install.cmake engine/Makefile engine/systemshock \
|
||||
engine/src/Libraries/CMakeFiles
|
||||
engine/src/Libraries/CMakeFiles \
|
||||
android/engine.properties android/app/src/main/assets android/app/src/main/jniLibs \
|
||||
android/app/build android/.gradle android/app/.cxx
|
||||
|
||||
Reference in New Issue
Block a user