2 # makenmake.pl - create a nmake file from a generic manifest file that will create the appropriate PortableApp structure
8 # DO NOT EDIT - autogenerated from makenmake.pl and ../../wireshark.manifest
11 include ../../../config.nmake
19 STAGING_DIR = $(TOPDIR)\$(INSTALL_DIR)
25 # XXX This should be defined in config.nmake.
26 !IF EXIST("$(TOPDIR)\wireshark-qt-release\qtshark.exe")
27 QT_DIR = "$(TOPDIR)\wireshark-qt-release"
29 !IF EXIST("$(TOPDIR)\wireshark-qt-release\Qt5Core.dll")
32 !IF EXIST("$(TOPDIR)\wireshark-qt-release\QtCore4.dll")
41 if($line =~ /^\#/) { # comment
43 } elsif($line =~ /^\[(\S+)/) { # new directory
44 if(defined $define) { # Clear out any leftover defines.
51 $dir =~ s/\$INSTDIR?//; # remove $INSTDIR
53 $dir =~ s/\{/\(/g; $dir =~ s/\}/\)/g; # convert curlies to round brackets
56 print "\tif not exist \$(FILES)\\\$(APP)\\\$(WIRESHARK)$dir \$(MKDIR) \$(FILES)\\\$(APP)\\\$(WIRESHARK)$dir\n";
59 } else { # this is a file
64 $file =~ s/\{/\(/g; $file =~ s/\}/\)/g; # convert curlies to round brackets
66 if($file =~ /^[^\$]/) {
67 $file = "\$(TOPDIR)\\" . $file;
70 if($line =~ /ifdef=(\w+)/) { # dependency
76 print "!IF DEFINED($define)\n";
88 print "\t\$(COPY) \"$file\" \"\$(FILES)\\\$(APP)\\\$(WIRESHARK)$dir\" \$(COPY_FLAGS)\n";
90 if($line =~ /oname=(\S+)/) { # override this filename
95 print "\t\$(MOVE) \"\$(FILES)\\\$(APP)\\\$(WIRESHARK)\\$dir\\$name\" \"\$(FILES)\\\$(APP)\\\$(WIRESHARK)\\$dir\\$oname\"\n";