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
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_CXXFLAGS_MAINT_APPEND = -fPIC
%:
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)))
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
|