summaryrefslogtreecommitdiff
path: root/config.nmake
diff options
context:
space:
mode:
authorРоман Донченко <dpb@corrigendum.ru>2014-08-03 03:21:31 +0400
committerAnders Broman <a.broman58@gmail.com>2014-08-08 05:59:13 +0000
commitb8a6cfcb2aeb5d4aafdd657bdcc329f7899d82d2 (patch)
tree08bdd51ee8930cfa7f4309ca99b351e894d6f477 /config.nmake
parent4da7570809f7ea303ca15368d2c818fafc1a70f5 (diff)
downloadwireshark-b8a6cfcb2aeb5d4aafdd657bdcc329f7899d82d2.tar.gz
Make Python mandatory to build on Windows
While nominally optional, building without it doesn't work, so just make it mandatory. The verify_tools target already passes $(PYTHON) to win-setup.sh --appverify; we just need to supply a default value for PYTHON, so that $(PYTHON) doesn't expand to an empty string. It's also convenient for the developer if Python can be automatically found on the PATH. Change-Id: I4f54695625b74c5b4c758ef1e3bc9ed4467db514 Reviewed-on: https://code.wireshark.org/review/3391 Petri-Dish: Jörg Mayer <jmayer@loplof.de> Reviewed-by: Jörg Mayer <jmayer@loplof.de> Tested-by: Jörg Mayer <jmayer@loplof.de> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'config.nmake')
-rw-r--r--config.nmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.nmake b/config.nmake
index 22dd038e8f..6e512085f1 100644
--- a/config.nmake
+++ b/config.nmake
@@ -190,7 +190,7 @@ MSVC_VARIANT=MSVC2010EE
NASM=$(WIRESHARK_LIB_DIR)\nasm-2.09.08\nasm.exe
#
-# Optional: the Python interpreter is used as part of the buildsystem
+# The Python interpreter is used as part of the buildsystem
#
# This will override the automatic detection below.
#PYTHON_VER=27
@@ -229,6 +229,11 @@ PYTHON="$(PYTHON_DIR)\python.exe"
PATH=$(PYTHON_DIR);$(PATH)
!ENDIF
+# If all else fails, try to find it on the PATH
+!IF !DEFINED(PYTHON)
+PYTHON=python
+!ENDIF
+
#### Save files as pcap-ng by default. Comment out to use pcap instead. ####
PCAP_NG_DEFAULT=^#define PCAP_NG_DEFAULT 1