~mir-team/qtmir/trunk

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bileto Bot
  • Author(s): Albert Astals Cid, Gerry Boland
  • Date: 2017-03-20 21:15:13 UTC
  • mfrom: (606.4.12 make_sure_surface_not_null)
  • Revision ID: ci-train-bot@canonical.com-20170320211513-z7v3z0ldes3gtcc0
Check for find() result not being null before using it

We do it in onWindowReady, onWindowMoved, onWindowFocusChanged, etc so no reason to not do it in onWindowRemoved

Approved by: Lukáš Tinkl, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
# We only want to build qtmir-android on arches using Qt built with OpenGL ES2.0
14
14
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
15
 
gles2_architectures = armhf
 
15
gles2_architectures = armhf arm64
16
16
 
17
17
USES_GLES2 = $(findstring $(DEB_HOST_ARCH), $(gles2_architectures))
18
18
 
55
55
 
56
56
override_dh_install:
57
57
ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
 
58
        #clean gmock/gtest if it built in our build dir
 
59
        -rm -f $(TMP1_DIR)/usr/lib/libgmock*.a $(TMP1_DIR)/usr/lib/libgtest*.a
 
60
        -rm -rf $(TMP1_DIR)/usr/include/gmock $(TMP1_DIR)/usr/include/gtest
58
61
        dh_install --sourcedir=$(TMP1_DIR) -pqtmir-android
59
62
endif
 
63
        #clean gmock/gtest if it built in our build dir
 
64
        -rm -f $(TMP2_DIR)/usr/lib/libgmock*.a $(TMP2_DIR)/usr/lib/libgtest*.a
 
65
        -rm -rf $(TMP2_DIR)/usr/include/gmock $(TMP2_DIR)/usr/include/gtest
60
66
        dh_install --sourcedir=$(TMP2_DIR) -pqtmir-desktop
61
67
        dh_install --sourcedir=$(TMP2_DIR) -pqtdeclarative5-qtmir-plugin
62
68
        dh_install --sourcedir=$(TMP2_DIR) -pqtmir-tests