~muktupavels/compiz/cmp0005

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Alberts Muktupāvels
  • Date: 2018-07-23 11:50:58 UTC
  • mto: This revision was merged to the branch mainline in revision 4172.
  • Revision ID: alberts.muktupavels@gmail.com-20180723115058-sg2p0klccv3bbayr
Don't build tests with DEB_BUILD_OPTIONS=nocheck.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
python2_version := $(shell pyversions --requested --version debian/control)
9
9
gles2_architectures := armel armhf
 
10
build_testing := OFF
 
11
 
 
12
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 
13
        build_testing := ON
 
14
endif
10
15
 
11
16
# currently, segfault if CMAKE_BUILD_TYPE=Release
12
17
export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions
20
25
override_dh_auto_configure:
21
26
        # right now, xorg-gtest won't compile on arm.
22
27
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
23
 
        dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DCOMPIZ_DISABLE_PLUGIN_KDE=ON -DCOMPIZ_BUILD_TESTING=ON -DUSE_KDE4=OFF -DBUILD_GLES=ON -DBUILD_XORG_GTEST=OFF
 
28
        dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DCOMPIZ_DISABLE_PLUGIN_KDE=ON -DCOMPIZ_BUILD_TESTING=$(build_testing) -DUSE_KDE4=OFF -DBUILD_GLES=ON -DBUILD_XORG_GTEST=OFF
24
29
else
25
 
        dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DCOMPIZ_DISABLE_PLUGIN_KDE=ON -DCOMPIZ_BUILD_TESTING=ON -DUSE_KDE4=OFF
 
30
        dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DCOMPIZ_DISABLE_PLUGIN_KDE=ON -DCOMPIZ_BUILD_TESTING=$(build_testing) -DUSE_KDE4=OFF
26
31
endif
27
32
 
28
33
override_dh_install: