File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ STRIP ?= strip
1212CODESIGN ?= codesign
1313# Configurable paths
1414NDK_TOOLCHAIN_BIN ?=
15+ ZIP_URL ?=
16+ ZIP_URL_DOWNLOAD_OUTPUT ?= /tmp/godot-lua-pluginscript-unzip-to-build.zip
1517
1618CFLAGS += -std=c11 "-I$(CURDIR ) /lib/godot-headers" "-I$(CURDIR ) /lib/high-level-gdnative" "-I$(CURDIR ) /lib/luajit/src"
1719ifeq ($(DEBUG ) , 1)
@@ -173,7 +175,7 @@ build/project.godot: src/tools/project.godot | build
173175 cp $< $@
174176
175177# Phony targets
176- .PHONY : clean dist docs test plugin
178+ .PHONY : clean dist docs test unzip-to-build
177179clean :
178180 $(RM ) -r build/* / plugin/luasrcdiet/*
179181
@@ -185,6 +187,15 @@ docs:
185187test : $(DIST_DEST ) build/project.godot
186188 $(GODOT_BIN ) --path build --no-window --quit --script " $( CURDIR) /src/test/init.lua"
187189
190+ unzip-to-build :
191+ ifneq (,$(filter http ://% https://% ,$(ZIP_URL ) ))
192+ curl -L $(ZIP_URL ) -o $(ZIP_URL_DOWNLOAD_OUTPUT )
193+ cd build && unzip -u $(ZIP_URL_DOWNLOAD_OUTPUT )
194+ else
195+ cd build && unzip -u $(ZIP_URL)
196+ endif
197+
198+ # Miscelaneous targets
188199plugin : $(LUASRCDIET_DEST )
189200
190201native-luajit : MACOSX_DEPLOYMENT_TARGET ?= 11.0
You can’t perform that action at this time.
0 commit comments