From 5030bf772a04386b13e8734d1f8cc95f5b05937d Mon Sep 17 00:00:00 2001 From: Paul Sladen Date: Sun, 5 Apr 2009 15:17:03 +0300 Subject: [PATCH] * debian/rules: tweak to allow easy building of Debug or Release target --- debian/changelog | 1 + debian/rules | 8 +++++--- openBVE/OpenBve/OpenBve.csproj | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index e3a865a..c87e62f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ openbve (1.0.2.0-0buntu1) unreleased; urgency=low * New upstream version (bugfix release) + * debian/rules: tweak to allow easy building of Debug or Release target -- Paul Sladen Sun, 05 Apr 2009 12:33:10 +0000 diff --git a/debian/rules b/debian/rules index 90e4332..d600710 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,8 @@ export DH_VERBOSE=15 BUILDDIRS = openBVE/OpenBve TARGET = $(CURDIR)/debian/openbve +DEBUG_CONFIGURATION=Debug +#DEBUG_CONFIGURATION=Release configure: configure-stamp configure-stamp: @@ -12,7 +14,7 @@ build: build-stamp build-stamp: configure-stamp dh_testdir for builddir in $(BUILDDIRS); do \ - (cd $$builddir && xbuild /p:Configuration=Release) || exit 1; \ + (cd $$builddir && xbuild /p:Configuration=$(DEBUG_CONFIGURATION) ) || exit 1; \ done touch build-stamp @@ -33,8 +35,8 @@ install: build dh_testroot dh_clean -k dh_installdirs - install -m 755 $(CURDIR)/openBVE/OpenBve/bin/Release/OpenBve.exe $(TARGET)/usr/lib/openbve/ - install -m 644 $(CURDIR)/openBVE/OpenBve/bin/Release/OpenBve.exe.mdb $(TARGET)/usr/lib/openbve/ + install -m 755 $(CURDIR)/openBVE/OpenBve/bin/$(DEBUG_CONFIGURATION)/OpenBve.exe $(TARGET)/usr/lib/openbve/ + install -m 644 $(CURDIR)/openBVE/OpenBve/bin/$(DEBUG_CONFIGURATION)/OpenBve.exe.mdb $(TARGET)/usr/lib/openbve/ install -m 755 -T $(CURDIR)/debian/openbve.wrapper $(TARGET)/usr/games/openbve binary-arch: diff --git a/openBVE/OpenBve/OpenBve.csproj b/openBVE/OpenBve/OpenBve.csproj index ca30ab8..03bec29 100644 --- a/openBVE/OpenBve/OpenBve.csproj +++ b/openBVE/OpenBve/OpenBve.csproj @@ -26,7 +26,7 @@ false - None + pdbonly true x86 bin\Release\ @@ -34,7 +34,7 @@ prompt 4 false - false + True False -- 1.6.0.4