File: rules

package info (click to toggle)
tinyobjloader 2.0.0~rc13%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,488 kB
  • sloc: cpp: 7,029; python: 120; sh: 57; makefile: 45
file content (38 lines) | stat: -rwxr-xr-x 1,246 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
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath
export PYBUILD_NAME = tinyobjloader
export PYBUILD_DISABLE = test

BUILD_TESTING = $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON)

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_MULTIARCH)
endif

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean -Npython3-tinyobjloader --buildsystem=cmake
	dh_auto_clean -ppython3-tinyobjloader --buildsystem=pybuild

override_dh_auto_configure:
	dh_auto_configure -Npython3-tinyobjloader --buildsystem=cmake -- \
		-DBUILD_SHARED_LIBS=ON \
		-DBUILD_TESTING=$(BUILD_TESTING)
	dh_auto_configure -ppython3-tinyobjloader --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build -Npython3-tinyobjloader --buildsystem=cmake
	dh_auto_build -ppython3-tinyobjloader --buildsystem=pybuild

override_dh_auto_test:
	dh_auto_test -Npython3-tinyobjloader --buildsystem=cmake
	dh_auto_test -ppython3-tinyobjloader --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install -Npython3-tinyobjloader --buildsystem=cmake
	rm -f debian/tmp/usr/share/doc/tinyobjloader/LICENSE
	dh_auto_install -ppython3-tinyobjloader --buildsystem=pybuild