mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Add an icon on windows (#48)
This commit is contained in:
parent
a9c1c9b4e4
commit
be4919ce24
3 changed files with 18 additions and 0 deletions
17
Makefile
17
Makefile
|
@ -58,6 +58,9 @@ DISCORD_SDK ?= 1
|
|||
# Enable docker build workarounds
|
||||
DOCKERBUILD ?= 0
|
||||
|
||||
# Should It compile with windows Icon
|
||||
ICON ?= 1
|
||||
|
||||
# Various workarounds for weird toolchains
|
||||
|
||||
NO_BZERO_BCOPY ?= 0
|
||||
|
@ -829,6 +832,20 @@ else
|
|||
# endif
|
||||
endif
|
||||
|
||||
#icon
|
||||
ifeq ($(WINDOWS_BUILD),1)
|
||||
ifeq ($(ICON),1)
|
||||
|
||||
Command := mkdir $(BUILD_DIR)/res
|
||||
Reponce := $(shell $(call Command))
|
||||
|
||||
Command := windres -o $(BUILD_DIR)/res/icon.o -i res/icon.rc
|
||||
Reponce := $(shell $(call Command))
|
||||
|
||||
LDFLAGS += $(BUILD_DIR)/res/icon.o
|
||||
endif
|
||||
endif
|
||||
|
||||
# Coop specific libraries
|
||||
|
||||
# Lua
|
||||
|
|
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