Skip to content

Commit

Permalink
Backport some Windows build fixes from release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Jun 11, 2017
1 parent b4e1dae commit 4725c98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mswin32/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MAKENSIS="/cygdrive/c/Program Files/NSIS/makensis.exe"
# VCExpress.exe is devenv.com with the commercial Visual Studio suite instead of VC++ Express
VCEXPRESS := $(shell reg query "HKEY_CLASSES_ROOT\\Applications\\devenv.exe\\shell\\edit\\command" | egrep -i '[A-Z]:\\' | cut -d\" -f2 | sed 's%\\%/%g' | tr -d '\n')
SIGNTOOL := $(shell reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v8.1" /v "InstallationFolder" | egrep InstallationFolder | cut -d ' ' -f13- | sed 's%\\%/%g' | tr -d '\n' | sed 's%$$%bin/x86/signtool.exe%')
VCEXPRESS := $(shell reg query "HKEY_CLASSES_ROOT\\Applications\\devenv.exe\\shell\\edit\\command" | egrep -i '[A-Z]:\\' | cut -d\" -f2 | sed 's%\\%/%g' | tr -d '\r\n')
SIGNTOOL := $(shell reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v8.1" /v "InstallationFolder" | egrep InstallationFolder | cut -d ' ' -f13- | sed 's%\\%/%g' | tr -d '\r\n' | sed 's%$$%bin/x86/signtool.exe%')
export NMAP_VERSION := $(shell grep '^\#[ \t]*define[ \t]\+NMAP_VERSION' ../nmap.h | sed -e 's/.*"\(.*\)".*/\1/' -e 'q')
export NMAP_NUM_VERSION := $(shell grep '^\#[ \t]*define[ \t]\+NMAP_NUM_VERSION' ../nmap.h | sed -e 's/.*"\(.*\)".*/\1/' -e 'q')
export NPCAP_VERSION := $(shell ls npcap-*.exe | sed -e 's/npcap-\([-r0-9.]*\)\.exe/\1/' -e 'q')
Expand Down
4 changes: 3 additions & 1 deletion mswin32/nmap.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
<ClCompile Include="..\scan_engine.cc" />
<ClCompile Include="..\scan_engine_connect.cc" />
<ClCompile Include="..\scan_engine_raw.cc" />
<ClCompile Include="..\scan_lists.cc" />
<ClCompile Include="..\service_scan.cc" />
<ClCompile Include="..\services.cc" />
<ClCompile Include="..\Target.cc" />
Expand Down Expand Up @@ -221,6 +222,7 @@
<ClInclude Include="..\scan_engine.h" />
<ClInclude Include="..\scan_engine_connect.h" />
<ClInclude Include="..\scan_engine_raw.h" />
<ClInclude Include="..\scan_lists.h" />
<ClInclude Include="..\service_scan.h" />
<ClInclude Include="..\services.h" />
<ClInclude Include="..\targets.h" />
Expand Down Expand Up @@ -340,4 +342,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>

0 comments on commit 4725c98

Please sign in to comment.