diff options
| author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2017-09-25 16:03:42 +0000 | 
|---|---|---|
| committer | Bileto Bot <ci-train-bot@canonical.com> | 2017-09-25 16:03:42 +0000 | 
| commit | cf5de5533aacee5e3c3d15106058e97a7fce35e1 (patch) | |
| tree | e33313ac4e8cd68a491aca6817319f7727a49322 | |
| parent | 294d975a32132d153aba0d6b33018d33cb4b27f6 (diff) | |
| parent | 1fe542ba07fb124d9da31c460d3b87c1f7b07ebe (diff) | |
debian/rules: ignore warnings in armhf and ppc64el
 And cleanup a bit Approved by: Andrea Azzarone (bzr r4256)
| -rwxr-xr-x | debian/rules | 20 | 
1 files changed, 11 insertions, 9 deletions
| diff --git a/debian/rules b/debian/rules index 5f4d89837..fea379dda 100755 --- a/debian/rules +++ b/debian/rules @@ -6,15 +6,10 @@  DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)  DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)  gles2_architectures := armel armhf +ignore_warnings_archs := armhf ppc64el s390x  DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') -# avoid template instance removal (lp:1286284) -ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), ppc64el)) - export DEB_CXXFLAGS_MAINT_STRIP=-O3 - export DEB_CXXFLAGS_MAINT_APPEND=-O2 -endif -  # http://ccache.samba.org/manual.html#_precompiled_headers  CCACHE_SLOPPINESS=time_macros @@ -23,13 +18,20 @@ NUX_ABIVERSION := $(shell sed -rn 's/^\#define[[:space:]]+NUX_ABIVERSION[[:space  LIBUNITY_PRIVATE := $(shell pkg-config --libs-only-L unity-protocol-private | sed -e 's/-L\(.*\)/\1/' )  SCOPES_RECOMMENDS := $(shell perl debian/scopes-recommends-generator /usr/share/unity/client-scopes.json) -cmake_base_options := -DUSE_GSETTINGS=TRUE -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_PLUGIN_INSTALL_TYPE=package +cmake_options := -DCOMPIZ_BUILD_WITH_RPATH=FALSE \ + -DCOMPIZ_PACKAGING_ENABLED=TRUE \ + -DCOMPIZ_PLUGIN_INSTALL_TYPE=package +  ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures))) - cmake_gl_options := -DBUILD_GLES=TRUE -DDISABLE_MAINTAINER_CFLAGS=ON + cmake_options += -DBUILD_GLES=TRUE -DDISABLE_MAINTAINER_CXXFLAGS=ON +endif + +ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(ignore_warnings_archs))) + cmake_options += -DDISABLE_MAINTAINER_CXXFLAGS=ON  endif  override_dh_auto_configure: -	dh_auto_configure -- $(cmake_base_options) $(cmake_gl_options) $(cmake_pch_options) +	dh_auto_configure -- $(cmake_options)  override_dh_install: 	# install autopilot tests | 
