File: rules

package info (click to toggle)
azure-uamqp-python 1.2.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,424 kB
  • sloc: ansic: 178,630; cpp: 7,577; python: 6,732; cs: 5,728; sh: 685; xml: 298; makefile: 34
file content (20 lines) | stat: -rwxr-xr-x 631 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

# __FILE__ used in logging macros, so -fdebug-prefix-map is not enough,
# to make the build reproducible we need -ffile-prefix-map
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath

# CMake is used to build the vendored uamqp library, which ignores CPPFLAGS
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)
# For the CMake build
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
export VERBOSE=1
endif

export PYBUILD_AFTER_CLEAN=rm -rf uamqp.egg-info uamqp/c_uamqp.c uamqp/c_uamqp.pyx

%:
	dh $@ --with python3 --buildsystem=pybuild