-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules
More file actions
executable file
·35 lines (27 loc) · 1.25 KB
/
rules
File metadata and controls
executable file
·35 lines (27 loc) · 1.25 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
#!/usr/bin/make -f
export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
include /usr/share/cdbs/1/class/python-distutils.mk
DEB_PYTHON_DISTUTILS_SRCDIR = python
DEB_PYTHON3_MODULE_PACKAGES = python3-dccl5
# Add here any variable or target overrides you need.
DEB_MAKE_ENVVARS = CTEST_OUTPUT_ON_FAILURE=ON
DEB_BUILD_PARALLEL = true
# only run unit tests and build documentation on x86_64 and i386
ifeq ($(shell (dpkg-architecture -qDEB_BUILD_ARCH | egrep -q "amd64|i386") && echo "yes"),yes)
DEB_CMAKE_EXTRA_FLAGS = -Denable_testing=ON -Dbuild_doc=ON
DEB_MAKE_CHECK_TARGET = test
endif
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_TARGET_ARCH ?= $(shell dpkg-architecture -qDEB_TARGET_ARCH)
DEB_TARGET_GNU_CPU ?= $(shell dpkg-architecture -qDEB_TARGET_GNU_CPU)
# cross compiling
ifneq ($(DEB_BUILD_ARCH),$(DEB_TARGET_ARCH))
DEB_CMAKE_EXTRA_FLAGS += -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=$(DEB_TARGET_GNU_CPU)
endif
$(info $$DEB_BUILD_ARCH is [${DEB_BUILD_ARCH}])
$(info $$DEB_TARGET_ARCH is [${DEB_TARGET_ARCH}])
$(info $$DEB_CMAKE_EXTRA_FLAGS is [${DEB_CMAKE_EXTRA_FLAGS}])
CC=$(DEB_HOST_GNU_TYPE)-gcc
CXX=$(DEB_HOST_GNU_TYPE)-g++