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
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath
export PYBUILD_NAME = tinyobjloader
BUILD_TESTING = $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON)
%:
dh $@ --with python3
override_dh_auto_clean:
dh_auto_clean -Npython3-tinyobjloader -Scmake
dh_auto_clean -ppython3-tinyobjloader -Spybuild -Dpython
override_dh_auto_configure:
dh_auto_configure -Npython3-tinyobjloader -Scmake -- \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=$(BUILD_TESTING)
dh_auto_configure -ppython3-tinyobjloader -Spybuild -Dpython
override_dh_auto_build:
dh_auto_build -Npython3-tinyobjloader -Scmake
dh_auto_build -ppython3-tinyobjloader -Spybuild -Dpython
override_dh_auto_test:
dh_auto_test -Npython3-tinyobjloader -Scmake
dh_auto_test -ppython3-tinyobjloader -Spybuild -Dpython
override_dh_auto_install:
dh_auto_install -Npython3-tinyobjloader -Scmake
rm -f debian/tmp/usr/share/doc/tinyobjloader/LICENSE
dh_auto_install -ppython3-tinyobjloader -Spybuild -Dpython
|