[ion/simulator/windows] Add an icon

This commit is contained in:
Romain Goyet
2020-09-11 16:02:35 -04:00
committed by Léa Saviot
parent a69fc679a9
commit 11f2b92e5d
2 changed files with 7 additions and 4 deletions

View File

@@ -22,11 +22,14 @@ endif
# RC file dependencies
$(call object_for,ion/src/simulator/windows/resources.rc): WRFLAGS += -I $(BUILD_DIR)
$(call object_for,ion/src/simulator/windows/resources.rc): $(addprefix $(BUILD_DIR)/,logo.ico)
# The header of images is refered to as <ion/src/simulator/windows/resources.h> so make sure it's findable this way
SFLAGS += -I$(BUILD_DIR)
$(addprefix $(BUILD_DIR)/,logo.ico): ion/src/simulator/assets/logo.svg | $$(@D)/.
$(call rule_label,CONVERT)
$(Q) convert -background "#FFB734" -resize 256x256 $< $@
LDFLAGS += -lgdiplus
# Linker flags
LDFLAGS += -lgdiplus -lcomdlg32
$(eval $(call rule_for, \
RESGEN, \
@@ -38,4 +41,3 @@ $(eval $(call rule_for, \
$(call object_for,ion/src/simulator/windows/platform_images.cpp): $(BUILD_DIR)/ion/src/simulator/windows/images.h
$(call object_for,ion/src/simulator/windows/resources.rc): $(BUILD_DIR)/ion/src/simulator/windows/resources_gen.rc

View File

@@ -1,4 +1,5 @@
#include <ion/src/simulator/windows/resources_gen.rc>
400 ICON "logo.ico"
1 VERSIONINFO
FILEVERSION 1,0,0,0