diff --git a/Makefile b/Makefile index af9c14b4..8b4a43dc 100644 --- a/Makefile +++ b/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 diff --git a/res/icon.ico b/res/icon.ico new file mode 100644 index 00000000..a147df06 Binary files /dev/null and b/res/icon.ico differ diff --git a/res/icon.rc b/res/icon.rc new file mode 100644 index 00000000..7e84e50b --- /dev/null +++ b/res/icon.rc @@ -0,0 +1 @@ +id ICON res/icon.ico \ No newline at end of file