瀏覽代碼

Add icon to Windows executables

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41469 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 年之前
父節點
當前提交
06099bce18
共有 3 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      include/Make/Compile.make
  2. 2 0
      mswindows/generic.manifest.rc
  3. 二進制
      mswindows/grass.ico

+ 1 - 1
include/Make/Compile.make

@@ -48,7 +48,7 @@ depend: $(C_SOURCES) $(CC_SOURCES) $(CPP_SOURCES)
 	-$(CC) -E -MM -MG $(ALL_CFLAGS) $^ | sed 's!^[0-9a-zA-Z_.-]*\.o:!$$(OBJDIR)/&!' > $(DEPFILE)
 
 %.manifest.res: %.manifest.rc %.exe.manifest
-	$(WINDRES) --input=$< --input-format=rc --output=$@ --output-format=coff
+	$(WINDRES) --input=$< --input-format=rc --output=$@ --output-format=coff -I$(MODULE_TOPDIR)/mswindows
 
 %.manifest.rc: $(MODULE_TOPDIR)/mswindows/generic.manifest.rc
 	sed	-e 's/@CMD@/$(notdir $*)/' \

+ 2 - 0
mswindows/generic.manifest.rc

@@ -3,6 +3,8 @@
 
 1 RT_MANIFEST "@CMD@.exe.manifest"
 
+1 ICON "grass.ico"
+
 #define VER_FILEVERSION             @VER_MAJOR@,@VER_MINOR@,0,0
 #define VER_FILEVERSION_STR         "@VER_MAJOR@.@VER_MINOR@.@VER_RELEASE@\0"
 

二進制
mswindows/grass.ico