File: rules

package info (click to toggle)
easyloggingpp 9.97.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,840 kB
  • sloc: cpp: 11,415; python: 2,336; sh: 337; makefile: 29
file content (22 lines) | stat: -rwxr-xr-x 653 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -L$(shell pwd)/gtest-build

%:
	dh $@

override_dh_auto_configure:
# We need to build googletest first
	mkdir gtest-build
	cp -a /usr/src/googletest/googletest gtest-source
	dh_auto_configure -Dgtest-source -Bgtest-build -Scmake
	dh_auto_build -Dgtest-source -Bgtest-build
	dh_auto_configure -- -Dtest=on -DGTEST_LIBRARY=$(top_dir)/gtest-build/libgtest.a -DGTEST_MAIN_LIBRARY=$(top_dir)/gtest-build/libgtest_main.a

override_dh_installexamples:
	find samples -name .gitignore -delete
	dh_installexamples

override_dh_compress:
	dh_compress -Xexamples