Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6 export QT_SELECT=qt5
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 include /usr/share/dpkg/buildflags.mk
11
12 export BUILDHOME=$(CURDIR)/debian/build
13
14 ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
15 CONFIGURE_FLAGS += -DENABLE_UBUNTU_ACCOUNTSSERVICE=ON
16 CONFIGURE_FLAGS += -DDISTRIBUTOR_LOGO="/usr/share/pixmaps/ubuntu-logo-text.svg"
17 CONFIGURE_FLAGS += -DDARK_MODE_DISTRIBUTOR_LOGO="/usr/share/pixmaps/ubuntu-logo-text-dark.svg"
18 else
19 CONFIGURE_FLAGS += -DENABLE_UBUNTU_ACCOUNTSSERVICE=OFF
20 CONFIGURE_FLAGS += -DDISTRIBUTOR_LOGO="/usr/share/icons/vendor/scalable/emblems/emblem-vendor.svg"
21 CONFIGURE_FLAGS += -DDARK_MODE_DISTRIBUTOR_LOGO="/usr/share/icons/vendor/scalable/emblems/emblem-vendor.svg"
22 endif
23
24 override_dh_auto_configure:
25 dh_auto_configure -- \
26 -DENABLE_LIBDEVICEINFO=ON \
27 -DENABLE_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \
28 -DLOMIRI_KEYBOARD_PLUGIN_PATH="/usr/lib/lomiri-keyboard/plugins" \
29 -DMODERN_PYTHON_DBUSMOCK=ON \
30 $(CONFIGURE_FLAGS)
31
32 execute_after_dh_auto_clean:
33 rm -rf $(BUILDHOME)
34
35 override_dh_auto_test:
36 mkdir -p $(BUILDHOME)
37 export HOME=$(BUILDHOME) && dh_auto_test
38
39 override_dh_install:
40 # cd tests/autopilot; \
41 # set -ex; for python in $(shell py3versions -r); do \
42 # $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
43 # done; \
44 # cd $(CURDIR)
45 dh_install -X'*.pyc'
46
47 override_dh_makeshlibs:
48 dh_makeshlibs -Xusr/lib/$(DEB_HOST_MULTIARCH)/lomiri-system-settings
49
50 %:
51 dh $@
52
53 get-orig-source:
54 uscan --noconf --force-download --rename --download-current-version --destdir=..