Improved generation of the Manifest.
This commit is contained in:
parent
c9f6f428ef
commit
39a158bd4f
205
Makefile
205
Makefile
@ -14,11 +14,15 @@
|
||||
MACHINE := $(patsubst %-w64-mingw32,[%],$(shell $(CXX) -dumpmachine))
|
||||
BUILDNO := $(shell git rev-list --count HEAD 2>&- || echo 0)
|
||||
|
||||
VERSION_MAJOR := $(shell grep -Po '#define[[:space:]]+L5J_VERSION_MAJOR[[:space:]]+\K[[:digit:]]+' src/resource.h)
|
||||
VERSION_MINOR := $(shell grep -Po '#define[[:space:]]+L5J_VERSION_MINOR[[:space:]]+\K[[:digit:]]+' src/resource.h)
|
||||
VERSION_PATCH := $(shell grep -Po '#define[[:space:]]+L5J_VERSION_PATCH[[:space:]]+\K[[:digit:]]+' src/resource.h)
|
||||
|
||||
ifeq ($(MACHINE),[i686])
|
||||
CPU_ARCH := x86
|
||||
MARCH ?= i586
|
||||
else ifeq ($(MACHINE),[x86_64])
|
||||
CPU_ARCH := x64
|
||||
CPU_ARCH := amd64
|
||||
MARCH ?= x86-64
|
||||
else
|
||||
$(error Unknown target machine "$(MACHINE)" encountered!)
|
||||
@ -52,9 +56,10 @@ init:
|
||||
|
||||
.PHONY: resources
|
||||
resources: init
|
||||
windres -DL5J_BUILDNO=$(BUILDNO) -o obj/common.$(CPU_ARCH).o res/common.rc
|
||||
windres -DL5J_BUILDNO=$(BUILDNO) -o obj/splash_screen.$(CPU_ARCH).o res/splash_screen.rc
|
||||
windres -DL5J_BUILDNO=$(BUILDNO) -o obj/registry.$(CPU_ARCH).o res/registry.rc
|
||||
sed -e 's/$${{version}}/$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH).$(BUILDNO)/g' -e 's/$${{processorArchitecture}}/$(CPU_ARCH)/g' res/assets/manifest.xml > res/assets/manifest.$(CPU_ARCH).xml
|
||||
windres -DL5J_CPU_ARCH=$(CPU_ARCH) -DL5J_BUILDNO=$(BUILDNO) -o obj/common.$(CPU_ARCH).o res/common.rc
|
||||
windres -DL5J_CPU_ARCH=$(CPU_ARCH) -DL5J_BUILDNO=$(BUILDNO) -o obj/splash_screen.$(CPU_ARCH).o res/splash_screen.rc
|
||||
windres -DL5J_CPU_ARCH=$(CPU_ARCH) -DL5J_BUILDNO=$(BUILDNO) -o obj/registry.$(CPU_ARCH).o res/registry.rc
|
||||
|
||||
.PHONY: clean
|
||||
clean: init
|
||||
@ -65,225 +70,225 @@ clean: init
|
||||
# Binaries
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.PHONY: l5j_F9F9A1F5
|
||||
l5j_F9F9A1F5: resources
|
||||
.PHONY: l5j_9F20B84D
|
||||
l5j_9F20B84D: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH).exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH).exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_387BDF25
|
||||
l5j_387BDF25: resources
|
||||
.PHONY: l5j_6EB7DACE
|
||||
l5j_6EB7DACE: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_31F684B4
|
||||
l5j_31F684B4: resources
|
||||
.PHONY: l5j_F5B13FCD
|
||||
l5j_F5B13FCD: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_6A985F3B
|
||||
l5j_6A985F3B: resources
|
||||
.PHONY: l5j_4739563B
|
||||
l5j_4739563B: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_nosplash_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_A813D876
|
||||
l5j_A813D876: resources
|
||||
.PHONY: l5j_6E959748
|
||||
l5j_6E959748: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_nowait.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_F8EC1E57
|
||||
l5j_F8EC1E57: resources
|
||||
.PHONY: l5j_2E20373E
|
||||
l5j_2E20373E: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_nowait_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_5E261357
|
||||
l5j_5E261357: resources
|
||||
.PHONY: l5j_9FDC0678
|
||||
l5j_9FDC0678: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_nowait_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_07A9F8CB
|
||||
l5j_07A9F8CB: resources
|
||||
.PHONY: l5j_4CA6A4DC
|
||||
l5j_4CA6A4DC: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_nowait_nosplash_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_43E42BBF
|
||||
l5j_43E42BBF: resources
|
||||
.PHONY: l5j_F2F69A4A
|
||||
l5j_F2F69A4A: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_0A5615A8
|
||||
l5j_0A5615A8: resources
|
||||
.PHONY: l5j_D4F4011F
|
||||
l5j_D4F4011F: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_6BF2F1D5
|
||||
l5j_6BF2F1D5: resources
|
||||
.PHONY: l5j_11C4FEF5
|
||||
l5j_11C4FEF5: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_42DD17AD
|
||||
l5j_42DD17AD: resources
|
||||
.PHONY: l5j_6BE922C9
|
||||
l5j_6BE922C9: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry_nosplash_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_7C2731CC
|
||||
l5j_7C2731CC: resources
|
||||
.PHONY: l5j_25501419
|
||||
l5j_25501419: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry_nowait.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_A101EF16
|
||||
l5j_A101EF16: resources
|
||||
.PHONY: l5j_11BE9EC8
|
||||
l5j_11BE9EC8: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry_nowait_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_7ADBDAB1
|
||||
l5j_7ADBDAB1: resources
|
||||
.PHONY: l5j_02A2A05C
|
||||
l5j_02A2A05C: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_37115C1A
|
||||
l5j_37115C1A: resources
|
||||
.PHONY: l5j_78CABE2B
|
||||
l5j_78CABE2B: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_44D8B4F3
|
||||
l5j_44D8B4F3: resources
|
||||
.PHONY: l5j_ED85B0DE
|
||||
l5j_ED85B0DE: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_61D7AF7F
|
||||
l5j_61D7AF7F: resources
|
||||
.PHONY: l5j_853C1537
|
||||
l5j_853C1537: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_043C058B
|
||||
l5j_043C058B: resources
|
||||
.PHONY: l5j_F5506AE6
|
||||
l5j_F5506AE6: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_614431D9
|
||||
l5j_614431D9: resources
|
||||
.PHONY: l5j_5C448B7B
|
||||
l5j_5C448B7B: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_nosplash_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_DD3611A9
|
||||
l5j_DD3611A9: resources
|
||||
.PHONY: l5j_895ED50D
|
||||
l5j_895ED50D: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_C267A006
|
||||
l5j_C267A006: resources
|
||||
.PHONY: l5j_39ABD48C
|
||||
l5j_39ABD48C: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_C15BE671
|
||||
l5j_C15BE671: resources
|
||||
.PHONY: l5j_38B963DC
|
||||
l5j_38B963DC: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_E8DDCABF
|
||||
l5j_E8DDCABF: resources
|
||||
.PHONY: l5j_092D167A
|
||||
l5j_092D167A: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_3645B652
|
||||
l5j_3645B652: resources
|
||||
.PHONY: l5j_07C35DAB
|
||||
l5j_07C35DAB: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_45BDFACE
|
||||
l5j_45BDFACE: resources
|
||||
.PHONY: l5j_D7AE1B5C
|
||||
l5j_D7AE1B5C: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_C1FDBA19
|
||||
l5j_C1FDBA19: resources
|
||||
.PHONY: l5j_61E6D532
|
||||
l5j_61E6D532: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_0DD7490D
|
||||
l5j_0DD7490D: resources
|
||||
.PHONY: l5j_2BD26F88
|
||||
l5j_2BD26F88: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_25375FF3
|
||||
l5j_25375FF3: resources
|
||||
.PHONY: l5j_36418169
|
||||
l5j_36418169: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_988AA638
|
||||
l5j_988AA638: resources
|
||||
.PHONY: l5j_80723D82
|
||||
l5j_80723D82: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_noenc.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_939A7B9C
|
||||
l5j_939A7B9C: resources
|
||||
.PHONY: l5j_2CD367E0
|
||||
l5j_2CD367E0: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash.exe
|
||||
endif
|
||||
|
||||
.PHONY: l5j_F2A93271
|
||||
l5j_F2A93271: resources
|
||||
.PHONY: l5j_B63A975C
|
||||
l5j_B63A975C: resources
|
||||
$(CC) $(CFLAGS) -DL5J_BUILDNO=$(BUILDNO) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
||||
ifeq ($(DEBUG),0)
|
||||
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash_noenc.exe
|
||||
@ -295,36 +300,36 @@ endif
|
||||
|
||||
.PHONY: all
|
||||
all: \
|
||||
l5j_F9F9A1F5 \
|
||||
l5j_387BDF25 \
|
||||
l5j_31F684B4 \
|
||||
l5j_6A985F3B \
|
||||
l5j_A813D876 \
|
||||
l5j_F8EC1E57 \
|
||||
l5j_5E261357 \
|
||||
l5j_07A9F8CB \
|
||||
l5j_43E42BBF \
|
||||
l5j_0A5615A8 \
|
||||
l5j_6BF2F1D5 \
|
||||
l5j_42DD17AD \
|
||||
l5j_7C2731CC \
|
||||
l5j_A101EF16 \
|
||||
l5j_7ADBDAB1 \
|
||||
l5j_37115C1A \
|
||||
l5j_44D8B4F3 \
|
||||
l5j_61D7AF7F \
|
||||
l5j_043C058B \
|
||||
l5j_614431D9 \
|
||||
l5j_DD3611A9 \
|
||||
l5j_C267A006 \
|
||||
l5j_C15BE671 \
|
||||
l5j_E8DDCABF \
|
||||
l5j_3645B652 \
|
||||
l5j_45BDFACE \
|
||||
l5j_C1FDBA19 \
|
||||
l5j_0DD7490D \
|
||||
l5j_25375FF3 \
|
||||
l5j_988AA638 \
|
||||
l5j_939A7B9C \
|
||||
l5j_F2A93271
|
||||
l5j_9F20B84D \
|
||||
l5j_6EB7DACE \
|
||||
l5j_F5B13FCD \
|
||||
l5j_4739563B \
|
||||
l5j_6E959748 \
|
||||
l5j_2E20373E \
|
||||
l5j_9FDC0678 \
|
||||
l5j_4CA6A4DC \
|
||||
l5j_F2F69A4A \
|
||||
l5j_D4F4011F \
|
||||
l5j_11C4FEF5 \
|
||||
l5j_6BE922C9 \
|
||||
l5j_25501419 \
|
||||
l5j_11BE9EC8 \
|
||||
l5j_02A2A05C \
|
||||
l5j_78CABE2B \
|
||||
l5j_ED85B0DE \
|
||||
l5j_853C1537 \
|
||||
l5j_F5506AE6 \
|
||||
l5j_5C448B7B \
|
||||
l5j_895ED50D \
|
||||
l5j_39ABD48C \
|
||||
l5j_38B963DC \
|
||||
l5j_092D167A \
|
||||
l5j_07C35DAB \
|
||||
l5j_D7AE1B5C \
|
||||
l5j_61E6D532 \
|
||||
l5j_2BD26F88 \
|
||||
l5j_36418169 \
|
||||
l5j_80723D82 \
|
||||
l5j_2CD367E0 \
|
||||
l5j_B63A975C
|
||||
|
||||
|
@ -69,9 +69,9 @@ mkdir "%PACK_PATH%\example"
|
||||
copy /Y "%~dp0.\*.txt" "%PACK_PATH%"
|
||||
copy /Y "%~dp0.\*.html" "%PACK_PATH%"
|
||||
copy /Y "%~dp0.\bin\launch5j_x86*.exe" "%PACK_PATH%"
|
||||
copy /Y "%~dp0.\bin\launch5j_x64*.exe" "%PACK_PATH%\x64"
|
||||
copy /Y "%~dp0.\etc\img\*.png" "%PACK_PATH%\etc\img"
|
||||
copy /Y "%~dp0.\bin\launch5j_amd64*.exe" "%PACK_PATH%\x64"
|
||||
copy /Y "%~dp0.\etc\style\*.css" "%PACK_PATH%\etc\style"
|
||||
copy /Y "%~dp0.\etc\img\*.png" "%PACK_PATH%\etc\img"
|
||||
|
||||
copy /Y /B "%~dp0.\bin\launch5j_x86_wrapped_registry.exe" + "%~dp0.\src\example\dist\example.jar" "%PACK_PATH%\example\example.exe"
|
||||
copy /Y "%~dp0.\src\example\src\com\muldersoft\l5j\example\Main.java" "%PACK_PATH%\example\example.java"
|
||||
|
1
res/assets/.gitignore
vendored
Normal file
1
res/assets/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/manifest.*.xml
|
@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity type="win32" name="com.muldersoft.launch5j" version="${{version}}" processorArchitecture="${{processorArchitecture}}"/>
|
||||
<description>Launch5j</description>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
@ -23,7 +25,12 @@
|
||||
</compatibility>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
|
||||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="${{processorArchitecture}}" publicKeyToken="6595b64144ccf1df" language="*"/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
<asmv3:application>
|
||||
<asmv3:windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
|
||||
<ws2:longPathAware>true</ws2:longPathAware>
|
||||
</asmv3:windowsSettings>
|
||||
</asmv3:application>
|
||||
</assembly>
|
||||
|
@ -17,6 +17,10 @@
|
||||
|
||||
#include "../src/resource.h"
|
||||
|
||||
#ifndef L5J_CPU_ARCH
|
||||
#error L5J_CPU_ARCH is not defined!
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Neutral resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -91,4 +95,8 @@ END
|
||||
// Manifest
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
1 RT_MANIFEST "assets/manifest.xml"
|
||||
#define L5J_MANIFEST_GLUE1(X,Y,Z) #X #Y #Z
|
||||
#define L5J_MANIFEST_GLUE2(X,Y,Z) L5J_MANIFEST_GLUE1(X,Y,Z)
|
||||
#define L5J_MANIFEST_STR L5J_MANIFEST_GLUE2(assets/manifest.,L5J_CPU_ARCH,.xml)
|
||||
|
||||
1 RT_MANIFEST L5J_MANIFEST_STR
|
||||
|
@ -14,11 +14,15 @@
|
||||
MACHINE := $(patsubst %-w64-mingw32,[%],$(shell $(CXX) -dumpmachine))
|
||||
BUILDNO := $(shell git rev-list --count HEAD 2>&- || echo 0)
|
||||
|
||||
VERSION_MAJOR := $(shell grep -Po '#define[[:space:]]+L5J_VERSION_MAJOR[[:space:]]+\K[[:digit:]]+' src/resource.h)
|
||||
VERSION_MINOR := $(shell grep -Po '#define[[:space:]]+L5J_VERSION_MINOR[[:space:]]+\K[[:digit:]]+' src/resource.h)
|
||||
VERSION_PATCH := $(shell grep -Po '#define[[:space:]]+L5J_VERSION_PATCH[[:space:]]+\K[[:digit:]]+' src/resource.h)
|
||||
|
||||
ifeq ($(MACHINE),[i686])
|
||||
CPU_ARCH := x86
|
||||
MARCH ?= i586
|
||||
else ifeq ($(MACHINE),[x86_64])
|
||||
CPU_ARCH := x64
|
||||
CPU_ARCH := amd64
|
||||
MARCH ?= x86-64
|
||||
else
|
||||
$(error Unknown target machine "$(MACHINE)" encountered!)
|
||||
@ -52,9 +56,10 @@ init:
|
||||
|
||||
.PHONY: resources
|
||||
resources: init
|
||||
windres -DL5J_BUILDNO=$(BUILDNO) -o obj/common.$(CPU_ARCH).o res/common.rc
|
||||
windres -DL5J_BUILDNO=$(BUILDNO) -o obj/splash_screen.$(CPU_ARCH).o res/splash_screen.rc
|
||||
windres -DL5J_BUILDNO=$(BUILDNO) -o obj/registry.$(CPU_ARCH).o res/registry.rc
|
||||
sed -e 's/$${{version}}/$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH).$(BUILDNO)/g' -e 's/$${{processorArchitecture}}/$(CPU_ARCH)/g' res/assets/manifest.xml > res/assets/manifest.$(CPU_ARCH).xml
|
||||
windres -DL5J_CPU_ARCH=$(CPU_ARCH) -DL5J_BUILDNO=$(BUILDNO) -o obj/common.$(CPU_ARCH).o res/common.rc
|
||||
windres -DL5J_CPU_ARCH=$(CPU_ARCH) -DL5J_BUILDNO=$(BUILDNO) -o obj/splash_screen.$(CPU_ARCH).o res/splash_screen.rc
|
||||
windres -DL5J_CPU_ARCH=$(CPU_ARCH) -DL5J_BUILDNO=$(BUILDNO) -o obj/registry.$(CPU_ARCH).o res/registry.rc
|
||||
|
||||
.PHONY: clean
|
||||
clean: init
|
||||
|
Loading…
Reference in New Issue
Block a user