File: rules

package info (click to toggle)
libjsoncpp 1.9.6-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,852 kB
  • sloc: cpp: 9,483; python: 1,118; ansic: 215; makefile: 44; sh: 30; perl: 5
file content (26 lines) | stat: -rwxr-xr-x 592 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=cmake

ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CONFIGURE_FLAGS += -DJSONCPP_WITH_TESTS=OFF
endif

override_dh_auto_configure:
	dh_auto_configure -- \
			-DBUILD_STATIC_LIBS=ON \
			-DBUILD_OBJECT_LIBS=OFF \
			-DCMAKE_INSTALL_INCLUDEDIR=include/jsoncpp \
			$(CONFIGURE_FLAGS)

override_dh_auto_test:
	dh_auto_test --buildsystem=cmake --max-parallel=1

execute_after_dh_auto_build-indep:
	ln -s obj-*/version .
	python3 doxybuild.py --doxygen=/usr/bin/doxygen
	rm version