Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
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 # The test suite has some tests that fail in all the architectures. See
31 # debian/patches/disable-tests.patch. However, builds in architectures such as
32 # armhf and i386 end up with even more failing tests.
33 #
34 # Some curl-related tests fail when running on multiple CPU cores.
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