mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Add Icon to windows build (#96)
This commit is contained in:
parent
a1ac136258
commit
f63bffc64c
3 changed files with 19 additions and 1 deletions
17
Makefile
17
Makefile
|
@ -64,6 +64,8 @@ DOCKERBUILD ?= 0
|
|||
DEBUG_INFO_LEVEL ?= 2
|
||||
# Enable profiling
|
||||
PROFILE ?= 0
|
||||
# Enable Game ICON
|
||||
ICON ?= 1
|
||||
|
||||
# Various workarounds for weird toolchains
|
||||
|
||||
|
@ -891,6 +893,19 @@ else
|
|||
# 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
|
||||
|
||||
# Lua
|
||||
|
@ -1093,6 +1108,8 @@ endef
|
|||
# Main Targets #
|
||||
#==============================================================================#
|
||||
|
||||
|
||||
|
||||
ifeq ($(EXTERNAL_DATA),1)
|
||||
|
||||
BASEPACK_PATH := $(BUILD_DIR)/$(BASEDIR)/$(BASEPACK)
|
||||
|
|
BIN
res/icon.ico
Normal file
BIN
res/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 401 KiB |
1
res/icon.rc
Normal file
1
res/icon.rc
Normal file
|
@ -0,0 +1 @@
|
|||
id ICON res/icon.ico
|
Loading…
Reference in a new issue