forked from GerbilSoft/rom-properties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·44 lines (37 loc) · 1.06 KB
/
rules
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
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
TMP := $(CURDIR)/debian/tmp
%:
dh $@ --parallel -Bbuild
# NOTE: gcc-6.1 or later is required for LTO.
# Disable LTO on Ubuntu 16.04 "Xenial" Xerus and earlier.
# Enable LTO on Ubuntu 18.04 "Bionic" Beaver and later.
CMAKE_OPTIONS := \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_JPEG=ON \
-DSPLIT_DEBUG=OFF \
-DINSTALL_DEBUG=OFF \
-DINSTALL_APPARMOR=ON \
-DUSE_SECCOMP=ON \
-DBUILD_KDE4=ON \
-DBUILD_KF5=ON \
-DBUILD_XFCE=ON \
-DBUILD_GTK3=ON \
-DBUILD_GTK4=OFF \
-DBUILD_CLI=ON \
-DTRACKER_INSTALL_API_VERSION=1 \
-DENABLE_PVRTC=ON \
-DENABLE_OPENMP=ON \
-DENABLE_LTO=OFF \
-DENABLE_PCH=ON \
-DUSE_SECCOMP=ON \
-DENABLE_SECCOMP_DEBUG=OFF
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTIONS += -DBUILD_TESTING=ON
endif
override_dh_auto_configure:
dh_auto_configure -- $(CMAKE_OPTIONS)
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
cd build && CTEST_OUTPUT_ON_FAILURE=1 LD_LIBRARY_PATH=$(shell pwd)/build/lib:$(shell pwd)/lib ctest -V
endif