| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 6 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 7 |
|
| 8 |
CONFIGURE_OPTS := -DBUILD_SHARED_LIBS=ON \ |
| 9 |
-DWITH_OTLP_HTTP=ON \ |
| 10 |
-DWITH_OTLP_GRPC=ON \ |
| 11 |
-DOPENTELEMETRY_INSTALL=ON \ |
| 12 |
-DOTELCPP_PROTO_PATH=/usr/include/ |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 19 |
rm -rf third_party/googletest |
| 20 |
cp -a /usr/src/googletest third_party/googletest |
| 21 |
touch third_party/googletest/.git |
| 22 |
endif |
| 23 |
|
| 24 |
dh_auto_configure -- $(CONFIGURE_OPTS) |
| 25 |
|
| 26 |
override_dh_auto_install: |
| 27 |
dh_auto_install |
| 28 |
rm -rf $(CURDIR)/debian/tmp/usr/include/opentelemetry/proto/ |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
override_dh_auto_test: |
| 36 |
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 mips64el ppc64el)) |
| 37 |
dh_auto_test --max-parallel=1 |
| 38 |
else |
| 39 |
dh_auto_test --max-parallel=1 || true |
| 40 |
endif |