| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
include /usr/share/dpkg/buildflags.mk |
| 8 |
|
| 9 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 10 |
|
| 11 |
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) |
| 12 |
DH_ADDONS := --with apport |
| 13 |
CMAKE_FLAGS := \ |
| 14 |
-DREPOWERD_ENABLE_HYBRIS=ON \ |
| 15 |
-DREPOWERD_ENABLE_BINDER=ON \ |
| 16 |
-DENABLE_WERROR=ON |
| 17 |
else |
| 18 |
CMAKE_FLAGS := \ |
| 19 |
-DREPOWERD_ENABLE_HYBRIS=OFF \ |
| 20 |
-DREPOWERD_ENABLE_BINDER=OFF \ |
| 21 |
-DREPOWERD_ENABLE_LSC=OFF |
| 22 |
endif |
| 23 |
|
| 24 |
%: |
| 25 |
dh $@ $(DH_ADDONS) |
| 26 |
|
| 27 |
override_dh_auto_configure: |
| 28 |
dh_auto_configure -- \ |
| 29 |
$(CMAKE_FLAGS) \ |
| 30 |
-DREPOWERD_DISABLE_TIME_SENSITIVE_TESTS=ON |
| 31 |
|
| 32 |
get-orig-source: |
| 33 |
uscan --noconf --force-download --rename --download-current-version --destdir=.. |