summaryrefslogtreecommitdiff
path: root/config.nmake
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2010-09-24 23:50:38 +0000
committerStephen Fisher <steve@stephen-fisher.com>2010-09-24 23:50:38 +0000
commitd0244ffa9a8eb7126e2f72beac1df1f998084bc3 (patch)
tree2888f74cf06e2fe1de404f323fe695ee8524d86d /config.nmake
parent4bb182799a9ee9e4f35ce1d48f56bc277357c271 (diff)
downloadwireshark-d0244ffa9a8eb7126e2f72beac1df1f998084bc3.tar.gz
Allow up to Python 2.7 now (was 2.6) and move Python build statements into same part of nmake file for ease of use.
svn path=/trunk/; revision=34246
Diffstat (limited to 'config.nmake')
-rw-r--r--config.nmake72
1 files changed, 33 insertions, 39 deletions
diff --git a/config.nmake b/config.nmake
index e73db4c337..c24979bcf6 100644
--- a/config.nmake
+++ b/config.nmake
@@ -163,17 +163,42 @@ NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
#
# Optional: the Python interpreter is used as part of the buildsystem
#
-# If you have the Python interpreter, set this to the directory in which
-# the Python package is stored
-#
-# If you don't have the Python interpreter, comment this line out, so that
-# PYTHON_DIR isn't defined.
+# This will override the automatic detection below.
+#PYTHON_VER=27
+#PYTHON_DIR=C:\Python$(PYTHON_VER)
+
#
-# V2.4 to V2.6 should work
+# If you don't have the native Python package installed, you can use
+# the Cygwin version (not recommended)
#
-#PYTHON_VER=26
-#PYTHON_DIR=C:\Python$(PYTHON_VER)
+#PYTHON=env python
+
+# Find native Python automatically if PYTHON(_DIR) wasn't defined
+!IF !DEFINED(PYTHON) && !DEFINED(PYTHON_DIR)
+!IF EXIST(c:\Python27\python.exe)
+PYTHON_VER=27
+!ELSE IF EXIST(c:\Python26\python.exe)
+PYTHON_VER=26
+!ELSE IF EXIST(c:\Python25\python.exe)
+PYTHON_VER=25
+!ELSE IF EXIST(c:\Python24\python.exe)
+PYTHON_VER=24
+!ENDIF
+!ENDIF
+
+# Santity check: native vs Cygwin Python options
+!IF DEFINED(PYTHON) && DEFINED(PYTHON_DIR)
+!ERROR PYTHON and PYTHON_DIR cannot be specified at the same time
+!ENDIF
+!IF DEFINED(PYTHON_VER)
+PYTHON_DIR=C:\Python$(PYTHON_VER)
+!ENDIF
+
+!IF DEFINED(PYTHON_DIR)
+PYTHON="$(PYTHON_DIR)\python.exe"
+PATH=$(PYTHON_DIR);$(PATH)
+!ENDIF
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
##### Win32 Libraries #####
@@ -616,12 +641,6 @@ PERL=perl
POD2MAN=$(SH) pod2man
POD2HTML=$(SH) pod2html
-#
-# If you don't have the native Python package installed, you can use
-# the Cygwin version (not recommended)
-#
-#PYTHON=env python
-
# command for lex/flexx (cygwin's flex recommended)
LEX=flex
@@ -690,31 +709,6 @@ UPX=$(WIRESHARK_LIBS)\upx303w\upx.exe
##### Flags, PATHs and Miscellaneous #####
-# Santity check: native vs Cygwin Python options
-!IF DEFINED(PYTHON) && DEFINED(PYTHON_DIR)
-!ERROR PYTHON and PYTHON_DIR cannot be specified at the same time
-!ENDIF
-
-# Find native Python automatically if PYTHON(_DIR) wasn't defined
-!IF !DEFINED(PYTHON) && !DEFINED(PYTHON_DIR)
-!IF EXIST(c:\Python26\python.exe)
-PYTHON_VER=26
-!ELSE IF EXIST(c:\Python25\python.exe)
-PYTHON_VER=25
-!ELSE IF EXIST(c:\Python24\python.exe)
-PYTHON_VER=24
-!ENDIF
-
-!IF DEFINED(PYTHON_VER)
-PYTHON_DIR=C:\Python$(PYTHON_VER)
-!ENDIF
-!ENDIF
-
-!IF DEFINED(PYTHON_DIR)
-PYTHON="$(PYTHON_DIR)\python.exe"
-PATH=$(PYTHON_DIR);$(PATH)
-!ENDIF
-
# Santity check: Python embedding requires a valid PYTHON_DIR
!IF DEFINED(PYTHON_EMBED) && !DEFINED(PYTHON_DIR)
!ERROR PYTHON_EMBED requires that PYTHON_DIR is defined