-
Notifications
You must be signed in to change notification settings - Fork 369
Expand file tree
/
Copy pathrules
More file actions
executable file
·64 lines (52 loc) · 1.88 KB
/
Copy pathrules
File metadata and controls
executable file
·64 lines (52 loc) · 1.88 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DOPACKAGES = $(shell dh_listpackages)
CONFIGURE_ARGS = --disable-static
# For Debian jessie, stretch, and buster, and Ubuntu bionic and focal, build
# Python 2 bindings. This is controlled by the build profile being used.
ifneq (,$(filter python-swsscommon,$(DOPACKAGES)))
CONFIGURE_ARGS += --enable-python2
else
CONFIGURE_ARGS += --disable-python2
endif
# Skip compiling classes that depend on libyang
ifneq (,$(filter noyangmod,$(DEB_BUILD_PROFILES)))
CONFIGURE_ARGS += --disable-yangmodules
else
CONFIGURE_ARGS += --enable-yangmodules
endif
# Build the OTLP sink only when the 'otlp' build profile is active. The
# OTLP sink depends on opentelemetry-cpp, which is not yet packaged in
# every distribution; the default build keeps OTLP off so behaviour is
# unchanged.
ifneq (,$(filter otlp,$(DEB_BUILD_PROFILES)))
CONFIGURE_ARGS += --enable-otlp
else
CONFIGURE_ARGS += --disable-otlp
endif
# main packaging script
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS)
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
override_dh_auto_build:
dh_auto_build
SWSS_COMMON_REPO=$(CURDIR) cargo build --release --all
override_dh_auto_clean:
dh_auto_clean
cargo clean --release