~tatokis/unity/gcc-72-errors

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bileto Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2017-09-25 16:03:42 UTC
  • mfrom: (4253.2.2 ingore-warnings-in-some-archs)
  • Revision ID: ci-train-bot@canonical.com-20170925160342-s9wa1pl2tedcxjzn
debian/rules: ignore warnings in armhf and ppc64el
      
And cleanup a bit

Approved by: Andrea Azzarone

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
7
7
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8
8
gles2_architectures := armel armhf
 
9
ignore_warnings_archs := armhf ppc64el s390x
9
10
 
10
11
DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
11
12
 
12
 
# avoid template instance removal (lp:1286284)
13
 
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), ppc64el))
14
 
  export DEB_CXXFLAGS_MAINT_STRIP=-O3
15
 
  export DEB_CXXFLAGS_MAINT_APPEND=-O2
16
 
endif
17
 
 
18
13
# http://ccache.samba.org/manual.html#_precompiled_headers
19
14
CCACHE_SLOPPINESS=time_macros
20
15
 
23
18
LIBUNITY_PRIVATE := $(shell pkg-config --libs-only-L unity-protocol-private | sed -e 's/-L\(.*\)/\1/' )
24
19
SCOPES_RECOMMENDS := $(shell perl debian/scopes-recommends-generator /usr/share/unity/client-scopes.json)
25
20
 
26
 
cmake_base_options := -DUSE_GSETTINGS=TRUE -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_PLUGIN_INSTALL_TYPE=package
 
21
cmake_options := -DCOMPIZ_BUILD_WITH_RPATH=FALSE \
 
22
                 -DCOMPIZ_PACKAGING_ENABLED=TRUE \
 
23
                 -DCOMPIZ_PLUGIN_INSTALL_TYPE=package
 
24
 
27
25
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
28
 
  cmake_gl_options := -DBUILD_GLES=TRUE -DDISABLE_MAINTAINER_CFLAGS=ON
 
26
  cmake_options += -DBUILD_GLES=TRUE -DDISABLE_MAINTAINER_CXXFLAGS=ON
 
27
endif
 
28
 
 
29
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(ignore_warnings_archs)))
 
30
  cmake_options += -DDISABLE_MAINTAINER_CXXFLAGS=ON
29
31
endif
30
32
 
31
33
override_dh_auto_configure:
32
 
        dh_auto_configure -- $(cmake_base_options) $(cmake_gl_options) $(cmake_pch_options)
 
34
        dh_auto_configure -- $(cmake_options)
33
35
 
34
36
override_dh_install:
35
37
        # install autopilot tests