Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 # SOURCE_DATE_EPOCH set by dh
6 export DEB_CPPFLAGS_MAINT_APPEND = -Wno-error=date-time -Wno-error=maybe-uninitialized -Wno-error=stringop-overflow
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 %:
11 dh $@ --with python3
12
13 override_dh_auto_configure:
14 dh_auto_configure -- -DFLATBUFFERS_BUILD_SHAREDLIB=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
15
16 override_dh_auto_build-arch:
17 dh_auto_build --arch
18
19 # Python3 build
20 override_dh_auto_build-indep:
21 dh_auto_build --indep
22 set -e; cd python && for pv in $(shell py3versions -vr); do \
23 VERSION=$(DEB_VERSION_UPSTREAM) python$$pv setup.py build; \
24 done
25
26 override_dh_auto_install-arch:
27 dh_auto_install --arch
28
29 # Python3 install.
30 override_dh_auto_install-indep:
31 dh_auto_install --indep
32 set -e; \
33 cd python && for pv in $(shell py3versions -vr); do \
34 VERSION=$(DEB_VERSION_UPSTREAM) python$$pv setup.py install \
35 --install-layout=deb --no-compile \
36 --root=$(CURDIR)/debian/python3-flatbuffers; \
37 done
38 find $(CURDIR)/debian/python3-flatbuffers -name 'flatbuffers-*-nspkg.pth' -delete
39
40 execute_after_dh_auto_clean:
41 -$(RM) -rf python/build/ python/flatbuffers.egg-info/
42