Browse Source

icon for panda3d.exe, panda3dw.exe

David Rose 16 years ago
parent
commit
84df5b52d4

+ 4 - 0
direct/src/plugin_standalone/Sources.pp

@@ -22,6 +22,7 @@
     panda3d.cxx panda3d.h panda3d.I \
     panda3dMain.cxx
 
+  #define WIN_RESOURCE_FILE panda3d.rc
   #define WIN_SYS_LIBS user32.lib gdi32.lib shell32.lib ole32.lib
 
 #end bin_target
@@ -48,6 +49,7 @@
     panda3d.cxx panda3d.h panda3d.I \
     panda3dWinMain.cxx
 
+  #define WIN_RESOURCE_FILE panda3d.rc
   #define WIN_SYS_LIBS user32.lib gdi32.lib shell32.lib ole32.lib
 
 #end bin_target
@@ -76,3 +78,5 @@
     panda3dMac.cxx panda3dMac.h panda3dMac.I
 
 #end bin_target
+
+#include $[THISDIRPREFIX]panda3d.rc.pp

BIN
direct/src/plugin_standalone/panda3d.ico


+ 53 - 0
direct/src/plugin_standalone/panda3d.rc.pp

@@ -0,0 +1,53 @@
+//
+// panda3d.rc.pp
+//
+// This file defines the script to auto-generate panda3d.rc at
+// ppremake time.  We use this to fill in the DLL version correctly.
+//
+
+#output panda3d.rc notouch
+/$[]/#### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[notdir $[THISFILENAME]].
+/$[]/################################# DO NOT EDIT ###########################
+
+#$[]define APSTUDIO_READONLY_SYMBOLS
+#$[]include "winresrc.h"
+#$[]undef APSTUDIO_READONLY_SYMBOLS
+
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION $[P3D_PLUGIN_DLL_COMMA_VERSION]
+ PRODUCTVERSION $[P3D_PLUGIN_DLL_COMMA_VERSION]
+ FILEFLAGSMASK 0x3fL
+#$[]ifdef _DEBUG
+ FILEFLAGS 0x1L
+#$[]else
+ FILEFLAGS 0x0L
+#$[]endif
+ FILEOS 0x40004L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904e4"
+        BEGIN
+            VALUE "FileDescription", "Runs 3-D games and interactive applets\0"
+            VALUE "FileVersion", "$[P3D_PLUGIN_DLL_DOT_VERSION]"
+            VALUE "LegalTrademarks", "\0"
+            VALUE "MIMEType", "application/x-panda3d\0"
+            VALUE "FileExtents", "p3d\0"
+            VALUE "FileOpenName", "Panda3D applet\0"
+            VALUE "ProductName", "Panda3D Game Engine Plug-in $[P3D_PLUGIN_VERSION_STR]\0"
+            VALUE "ProductVersion", "$[P3D_PLUGIN_DLL_DOT_VERSION]"
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1252
+    END
+END
+
+ICON_FILE       ICON    "panda3d.ico"
+
+#end panda3d.rc
+