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 d39e93ba1d
commit 3cd6ece3d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -904,13 +904,15 @@ endif
#icon
ifeq ($(WINDOWS_BUILD),1)
ifeq ($(ICON),1)
Command := mkdir $(BUILD_DIR)/res
Resp := $(shell $(call Command))
Command := mkdir -p "$(BUILD_DIR)/res"
Resp := $(shell $(call Command))
Command := windres -o "$(BUILD_DIR)/res/icon.o" -i res/icon.rc
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
ifeq ($(.SHELLSTATUS),0)
LDFLAGS += $(BUILD_DIR)/res/icon.o
endif
endif
endif