Fix for Icon In dumb msys DIR (#111)

This commit is contained in:
mjcox244 2022-05-22 05:08:54 +01:00 committed by GitHub
parent 7bae2cbfe3
commit 730af8c267
1 changed files with 7 additions and 5 deletions

View File

@ -904,15 +904,17 @@ endif
#icon #icon
ifeq ($(WINDOWS_BUILD),1) ifeq ($(WINDOWS_BUILD),1)
ifeq ($(ICON),1) ifeq ($(ICON),1)
Command := mkdir $(BUILD_DIR)/res Command := mkdir -p "$(BUILD_DIR)/res"
Resp := $(shell $(call Command)) Resp := $(shell $(call Command))
Command := windres -o "$(BUILD_DIR)/res/icon.o" -i res/icon.rc Command := windres -o "$(BUILD_DIR)/res/icon.o" -i "res/icon.rc"
Resp := $(shell $(call Command)) Resp := $(shell $(call Command))
ifeq ($(.SHELLSTATUS),0)
LDFLAGS += $(BUILD_DIR)/res/icon.o LDFLAGS += $(BUILD_DIR)/res/icon.o
endif endif
endif endif
endif
# Coop specific libraries # Coop specific libraries