| 1 |
|
| 2 |
|
| 3 |
export QT_SELECT=6 |
| 4 |
|
| 5 |
|
| 6 |
ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf mips mipsel sh4 hppa)) |
| 7 |
DEB_CFLAGS_MAINT_STRIP = -g1 |
| 8 |
DEB_CXXFLAGS_MAINT_STRIP = -g1 |
| 9 |
DEB_CFLAGS_MAINT_APPEND = -g0 |
| 10 |
DEB_CXXFLAGS_MAINT_APPEND = -g0 |
| 11 |
DEB_CPPFLAGS_MAINT_APPEND = --param ggc-min-expand=10 |
| 12 |
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) |
| 13 |
DEB_CFLAGS_MAINT_STRIP += -O2 |
| 14 |
DEB_CXXFLAGS_MAINT_STRIP += -O2 |
| 15 |
DEB_CFLAGS_MAINT_APPEND += -Os |
| 16 |
DEB_CXXFLAGS_MAINT_APPEND += -Os |
| 17 |
endif |
| 18 |
endif |
| 19 |
|
| 20 |
%: |
| 21 |
dh $@ --buildsystem=cmake --builddirectory=build |
| 22 |
|
| 23 |
|
| 24 |
override_dh_auto_configure: |
| 25 |
|
| 26 |
override_dh_auto_build: |
| 27 |
dh_auto_configure --sourcedirectory=coeurl --builddirectory=.deps/coeurl |
| 28 |
dh_auto_build --sourcedirectory=coeurl --builddirectory=.deps/coeurl |
| 29 |
dh_auto_configure --sourcedirectory=mtxclient --builddirectory=.deps/mtxclient -- -DBUILD_LIB_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_LIB_EXAMPLES=OFF -Dcoeurl_DIR=$(CURDIR)/.deps/coeurl |
| 30 |
dh_auto_build --sourcedirectory=mtxclient --builddirectory=.deps/mtxclient |
| 31 |
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_LIB_EXAMPLES=OFF -DUSE_BUNDLED_CPPHTTPLIB=OFF -DLMDBXX_INCLUDE_DIR=$(CURDIR)/lmdbxx -Dcoeurl_DIR=$(CURDIR)/.deps/coeurl -DMatrixClient_DIR=$(CURDIR)/.deps/mtxclient |
| 32 |
dh_auto_build |
| 33 |
|
| 34 |
override_dh_auto_test: |
| 35 |
dh_auto_test --sourcedirectory=coeurl --builddirectory=.deps/coeurl |
| 36 |
dh_auto_test --sourcedirectory=mtxclient --builddirectory=.deps/mtxclient |
| 37 |
dh_auto_test |