File: rules

package info (click to toggle)
meshlab 2020.09+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 45,124 kB
  • sloc: cpp: 400,238; ansic: 31,952; javascript: 1,578; sh: 387; yacc: 238; lex: 139; python: 86; makefile: 29
file content (32 lines) | stat: -rwxr-xr-x 1,111 bytes parent folder | download
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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

# see FEATURE AREAS in dpkg-buildflags(1)
# Disabling -Werror=format-security because it stops the build: the logger indeed has this weakness.
export DEB_BUILD_MAINT_OPTIONS=hardening=-format,+bindnow reproducible=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# Reduce over-linking the easy way.
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export QT_SELECT=qt5


DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --sourcedirectory=src

# Force using system libs where possible
# and, produce a file containing the version, instead of using compile date.
override_dh_auto_configure:
	echo "static constexpr auto VERSION_STRING = \"$(DEB_VERSION_UPSTREAM)\";" > src/common/generated_version_header.h
	dh_auto_configure -- -DALLOW_BUNDLED_EIGEN=OFF \
	                     -DALLOW_BUNDLED_GLEW=OFF \
	                     -DALLOW_BUNDLED_LIB3DS=OFF \
	                     -DALLOW_BUNDLED_MUPARSER=OFF \
	                     -DALLOW_BUNDLED_OPENCTM=OFF \
	                     -DALLOW_BUNDLED_QHULL=OFF