[dolphin-emu] 01/01: Updates to d/rules

James Cowgill jcowgill-guest at moszumanska.debian.org
Fri Sep 11 07:39:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

jcowgill-guest pushed a commit to branch experimental
in repository dolphin-emu.

commit fc14b925a2eb3c30fb533f1a81a21aa356e18ea0
Author: James Cowgill <james410 at cowgill.org.uk>
Date:   Fri Sep 11 08:38:58 2015 +0100

    Updates to d/rules
    
    Enable shared gtest.
    Enable shared libenet.
    Run unittests after building (requires special rule).
---
 debian/rules | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 6e2e1f2..63feb9f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,4 @@
 #!/usr/bin/make -f
-#export DH_VERBOSE=1
 
 # dolphin does not work with -fPIE
 export DEB_BUILD_MAINT_OPTIONS := hardening=+all,-pie
@@ -9,17 +8,24 @@ VER := $(shell dpkg-parsechangelog --show-field Version)
 UPSTREAM_VER := $(shell echo $(VER) | sed 's/+dfsg.*//')
 
 %:
-	dh $@ --parallel
+	dh $@ --parallel -Bbuild
 
 CMAKE_OPTIONS := \
 	-Dbindir=/usr/games \
 	-Ddatadir=/usr/share/games/dolphin-emu \
 	-DDOLPHIN_WC_DESCRIBE=$(UPSTREAM_VER) \
 	-DDOLPHIN_WC_REVISION=$(VER) \
-	-DDOLPHIN_WC_BRANCH=debian
+	-DDOLPHIN_WC_BRANCH=debian \
+	-DUSE_SHARED_ENET=ON \
+	-DGTEST_DIR=/usr/src/gtest
 
 override_dh_auto_configure:
 	dh_auto_configure -- $(CMAKE_OPTIONS)
 
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) -C build unittests
+endif
+
 get-orig-source:
 	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --repack --compression=xz --download-current-version

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/dolphin-emu.git



More information about the Pkg-games-commits mailing list