~alan-griffiths/miral/fix-1645284

« back to all changes in this revision

Viewing changes to miral-qt/debian/rules

  • Committer: Alan Griffiths
  • Date: 2016-11-07 17:59:19 UTC
  • mfrom: (436.1.1 miral2)
  • Revision ID: alan@octopull.co.uk-20161107175919-stbb64i7j1htgog2
[miral-qt] delete all as qtmir work on MirAL has shifted to lp:~unity-team/qtmir/miral-qt-integration and this is a needless distration

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
 
4
 
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
5
 
 
6
 
include /usr/share/dpkg/default.mk
7
 
 
8
 
ANDROID_DIR = build-android
9
 
DESKTOP_DIR = build-desktop
10
 
TMP1_DIR = $(CURDIR)/debian/tmp1
11
 
TMP2_DIR = $(CURDIR)/debian/tmp2
12
 
 
13
 
# We only want to build qtmir-android on arches using Qt built with OpenGL ES2.0
14
 
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
15
 
gles2_architectures = armhf
16
 
 
17
 
USES_GLES2 = $(findstring $(DEB_HOST_ARCH), $(gles2_architectures))
18
 
 
19
 
%:
20
 
        dh $@ --parallel --fail-missing
21
 
 
22
 
override_dh_clean:
23
 
ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
24
 
        rm -rf $(TMP1_DIR)
25
 
endif
26
 
        rm -rf $(TMP2_DIR)
27
 
        dh_clean
28
 
 
29
 
override_dh_auto_configure:
30
 
ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
31
 
        mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1
32
 
# See comment in CMakeLists.txt
33
 
        mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGL_BUT_LINK_AGAINST_OPENGLES=1
34
 
else
35
 
        mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1
36
 
endif
37
 
 
38
 
override_dh_auto_build:
39
 
ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
40
 
        dh_auto_build -B$(ANDROID_DIR)
41
 
endif
42
 
        dh_auto_build -B$(DESKTOP_DIR)
43
 
 
44
 
override_dh_auto_test:
45
 
ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
46
 
        dh_auto_test -B$(ANDROID_DIR)
47
 
endif
48
 
        dh_auto_test -B$(DESKTOP_DIR)
49
 
 
50
 
override_dh_auto_install:
51
 
ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
52
 
        dh_auto_install -B$(ANDROID_DIR) --destdir=$(TMP1_DIR)
53
 
endif
54
 
        dh_auto_install -B$(DESKTOP_DIR) --destdir=$(TMP2_DIR)
55
 
 
56
 
override_dh_install:
57
 
ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
58
 
        dh_install --sourcedir=$(TMP1_DIR) -pqtmir-android
59
 
endif
60
 
        dh_install --sourcedir=$(TMP2_DIR) -pqtmir-desktop
61
 
        dh_install --sourcedir=$(TMP2_DIR) -pqtdeclarative5-qtmir-plugin
62
 
        dh_install --sourcedir=$(TMP2_DIR) -pqtmir-tests