File: rules

package info (click to toggle)
googletest 1.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,796 kB
  • sloc: cpp: 54,098; python: 4,249; sh: 152; makefile: 21
file content (31 lines) | stat: -rwxr-xr-x 726 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_CXXFLAGS_MAINT_APPEND = -fPIC -ffloat-store

ifeq ($(DEB_HOST_ARCH), armel)
DEB_CXXFLAGS_MAINT_APPEND += -O1
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake -- -Dgmock_build_tests=ON -Dgtest_build_tests=ON

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	unset SOURCE_DIR; cd obj-* && ctest || (cat Testing/Temporary/LastTest.log; exit 1)
endif

override_dh_prep:
	dh_prep
	find googletest -iname __pycache__ -type d | xargs rm -rf

override_dh_install-indep:
	dh_install
	find debian -iname '*.py' -print0 | xargs -0 chmod -x

override_dh_clean:
	dh_clean
	find googletest -iname __pycache__ -type d | xargs rm -rf