documentor: Added an embedded icon for Windows
authorJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 06:05:49 +0000 (02:05 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 06:05:49 +0000 (02:05 -0400)
documentor/Makefile
documentor/documentor.epj
documentor/documentorIcon.ico [new file with mode: 0644]
documentor/resources.rc [new file with mode: 0644]

index 98e9a10..927df5f 100644 (file)
@@ -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))
index 006bff6..22c4ca0 100644 (file)
@@ -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 (file)
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 (file)
index 0000000..b926301
--- /dev/null
@@ -0,0 +1 @@
+IDI_ICON               ICON    DISCARDABLE     "documentorIcon.ico"