summaryrefslogtreecommitdiffstats
path: root/python/makefile.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-02-14 02:25:28 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-02-14 02:41:32 +0200
commitb7491dd511f62c5d348683cec3afa019b569b38c (patch)
treea3da294b73a101b24605278380448ea56afc7e2f /python/makefile.mk
parentClean up Python patches a bit (diff)
downloadcore-b7491dd511f62c5d348683cec3afa019b569b38c.tar.gz
core-b7491dd511f62c5d348683cec3afa019b569b38c.zip
Make debugging the Python interpreter simpler
When building (in the LibreOffice sense) for Windows with debug=t, use the Debug solution configuration, but make the Debug project configutations produce identically named executables as the Release ones, and also use the normal runtime library. Use same executables names
Diffstat (limited to 'python/makefile.mk')
-rw-r--r--python/makefile.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/python/makefile.mk b/python/makefile.mk
index edf2194f3b49..d401785892c1 100644
--- a/python/makefile.mk
+++ b/python/makefile.mk
@@ -124,13 +124,19 @@ ARCH=Win32
ARCH=x64
.ENDIF
+.IF "$(debug)"!=""
+CONF=Debug
+.ELSE
+CONF=Release
+.ENDIF
+
# Build python executable and then runs a minimal script. Running the minimal script
# ensures that certain *.pyc files are generated which would otherwise be created on
# solver during registration in insetoo_native
.IF "$(CCNUMVER)" >= "001600000000"
-BUILD_ACTION=MSBuild.exe pcbuild.sln /t:Build /p:Configuration=Release /ToolsVersion:4.0
+BUILD_ACTION=MSBuild.exe pcbuild.sln /t:Build /p:Configuration=$(CONF) /ToolsVersion:4.0
.ELSE
-BUILD_ACTION=$(COMPATH)$/vcpackages$/vcbuild.exe pcbuild.sln "Release|$(ARCH)"
+BUILD_ACTION=$(COMPATH)$/vcpackages$/vcbuild.exe pcbuild.sln "$(CONF)|$(ARCH)"
.ENDIF
.ENDIF
.ENDIF