Add Icon to windows build (#96)
This commit is contained in:
parent
a1ac136258
commit
f63bffc64c
17
Makefile
17
Makefile
|
@ -64,6 +64,8 @@ DOCKERBUILD ?= 0
|
||||||
DEBUG_INFO_LEVEL ?= 2
|
DEBUG_INFO_LEVEL ?= 2
|
||||||
# Enable profiling
|
# Enable profiling
|
||||||
PROFILE ?= 0
|
PROFILE ?= 0
|
||||||
|
# Enable Game ICON
|
||||||
|
ICON ?= 1
|
||||||
|
|
||||||
# Various workarounds for weird toolchains
|
# Various workarounds for weird toolchains
|
||||||
|
|
||||||
|
@ -891,6 +893,19 @@ else
|
||||||
# endif
|
# endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#icon
|
||||||
|
ifeq ($(WINDOWS_BUILD),1)
|
||||||
|
ifeq ($(ICON),1)
|
||||||
|
Command := mkdir $(BUILD_DIR)/res
|
||||||
|
Resp := $(shell $(call Command))
|
||||||
|
|
||||||
|
Command := windres -o "$(BUILD_DIR)/res/icon.o" -i res/icon.rc
|
||||||
|
Resp := $(shell $(call Command))
|
||||||
|
|
||||||
|
LDFLAGS += $(BUILD_DIR)/res/icon.o
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Coop specific libraries
|
# Coop specific libraries
|
||||||
|
|
||||||
# Lua
|
# Lua
|
||||||
|
@ -1093,6 +1108,8 @@ endef
|
||||||
# Main Targets #
|
# Main Targets #
|
||||||
#==============================================================================#
|
#==============================================================================#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(EXTERNAL_DATA),1)
|
ifeq ($(EXTERNAL_DATA),1)
|
||||||
|
|
||||||
BASEPACK_PATH := $(BUILD_DIR)/$(BASEDIR)/$(BASEPACK)
|
BASEPACK_PATH := $(BUILD_DIR)/$(BASEDIR)/$(BASEPACK)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 401 KiB |
|
@ -0,0 +1 @@
|
||||||
|
id ICON res/icon.ico
|
Loading…
Reference in New Issue