]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add RT_MANIFEST arguments to dependencies for Windows resource objects.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Thu, 24 Feb 2005 22:45:50 +0000 (22:45 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Thu, 24 Feb 2005 22:45:50 +0000 (22:45 +0000)
[originally from svn r5393]

mkfiles.pl

index f78f67f5e47a9ed27469ecade9da82159a0ccc3c..5483d4128f0b33f6d59ffebe81801a37850334f4 100755 (executable)
@@ -152,9 +152,11 @@ foreach $i (@prognames) {
 # added back on to @scanlist to be scanned in turn (if not already
 # done).
 #
-# Resource scripts (.rc) can also include a file by means of a line
-# ending `ICON "filename"'. Files included by this method are not
-# added to @scanlist because they can never include further files.
+# Resource scripts (.rc) can also include a file by means of:
+#  - a line # ending `ICON "filename"';
+#  - a line ending `RT_MANIFEST "filename"'.
+# Files included by this method are not added to @scanlist because
+# they can never include further files.
 #
 # In this pass we write out a hash %further which maps a source
 # file name into a listref containing further source file names.
@@ -174,8 +176,8 @@ while (scalar @scanlist > 0) {
       push @scanlist, $1;
       next;
     };
-    /ICON\s+\"([^\"]+)\"\s*$/ and do {
-      push @{$further{$file}}, $1;
+    /(RT_MANIFEST|ICON)\s+\"([^\"]+)\"\s*$/ and do {
+      push @{$further{$file}}, $2;
       next;
     }
   }