From: Jerome St-Louis Date: Thu, 4 Aug 2016 06:05:49 +0000 (-0400) Subject: documentor: Added an embedded icon for Windows X-Git-Tag: 0.44.15~30 X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=ebdfd2adbc1a1fe27d547d28246f2a08827bde6b documentor: Added an embedded icon for Windows --- diff --git a/documentor/Makefile b/documentor/Makefile index 98e9a10..927df5f 100644 --- a/documentor/Makefile +++ b/documentor/Makefile @@ -217,6 +217,12 @@ $(OBJ)Documentor.o: $(OBJ)Documentor.c $(OBJ)SettingsDialog.o: $(OBJ)SettingsDialog.c $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c $(OBJ)SettingsDialog.c -o $(OBJ)SettingsDialog.o +ifdef WINDOWS_TARGET + +$(OBJ)resources$(O): resources.rc + $(WINDRES) $(WINDRES_FLAGS) $< "$(call escspace,$(call quote_path,$@))" +endif + $(OBJ)$(MODULE).main$(O): $(OBJ)$(MODULE).main.c $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c $(OBJ)$(MODULE).main.c -o $(OBJ)$(MODULE).main$(O) @@ -236,6 +242,9 @@ endif clean: cleantarget $(call rm,$(_OBJECTS)) +ifdef WINDOWS_TARGET + $(call rm,$(_RCOBJECTS)) +endif $(call rm,$(ECOBJECTS)) $(call rm,$(COBJECTS)) $(call rm,$(BOWLS)) diff --git a/documentor/documentor.epj b/documentor/documentor.epj index 006bff6..22c4ca0 100644 --- a/documentor/documentor.epj +++ b/documentor/documentor.epj @@ -85,7 +85,8 @@ "Documentor.ec", "SettingsDialog.ec" ] - } + }, + "resources.rc" ], "ResourcesPath" : "", "Resources" : [ diff --git a/documentor/documentorIcon.ico b/documentor/documentorIcon.ico new file mode 100644 index 0000000..d650b5d Binary files /dev/null and b/documentor/documentorIcon.ico differ diff --git a/documentor/resources.rc b/documentor/resources.rc new file mode 100644 index 0000000..b926301 --- /dev/null +++ b/documentor/resources.rc @@ -0,0 +1 @@ +IDI_ICON ICON DISCARDABLE "documentorIcon.ico"