1
Index: inline-gles-quilt/debian/control
2
===================================================================
3
--- inline-gles-quilt.orig/debian/control
4
+++ inline-gles-quilt/debian/control
10
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
11
@@ -16,7 +16,13 @@ Build-Depends: cmake,
12
libmirserver-dev (>= 0.19.0),
17
+ libqt5quickparticles5-gles,
19
+ libqt5quickwidgets5-gles,
22
libqtdbusmock1-dev (>= 0.2),
23
libqtdbustest1-dev (>= 0.2),
24
libubuntu-app-launch2-dev,
25
@@ -31,8 +37,8 @@ Build-Depends: cmake,
26
# lttng-gen-ts needs python3, but doesn't depend on it itself: bug 1359147
30
- qtbase5-private-dev,
32
+ qtbase5-private-gles-dev,
34
qtdeclarative5-private-dev,
36
@@ -45,7 +51,7 @@ Vcs-Bzr: lp:qtmir
37
Vcs-Browser: http://bazaar.launchpad.net/~mir-team/qtmir/trunk/files
39
Package: qtmir-android
41
+Architecture: amd64 i386
45
@@ -56,65 +62,10 @@ Replaces: libqtmir,
47
Depends: ${misc:Depends},
49
-Description: Qt platform abstraction (QPA) plugin for a Mir server (mobile)
50
+Description: Qt platform abstraction (QPA) plugin for a Mir server (mobile) - OpenGLES
51
QtMir is a set of Qt5 components to enable one to write a Mir server with Qt.
52
It contains a QPA (Qt Platform Abstraction) plugin which creates and manages
53
a Mir server. It also exposes some internal Mir functionality.
55
- This variant of the package is for Android-based phones and tablets.
57
-Package: qtmir-desktop
60
-Conflicts: qtmir-android,
66
-Depends: ${misc:Depends},
68
-Description: Qt platform abstraction (QPA) plugin for a Mir server (desktop)
69
- QtMir is a set of Qt5 components to enable one to write a Mir server with Qt.
70
- It contains a QPA (Qt Platform Abstraction) plugin which creates and manages
71
- a Mir server. It also exposes some internal Mir functionality.
73
- This variant of the package is for GNU-based desktops.
75
-Package: qtdeclarative5-qtmir-plugin
78
-Pre-Depends: ${misc:Pre-Depends},
79
-Depends: qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}),
86
-Provides: unity-application-impl,
87
- unity-application-impl-16,
88
-Description: Qt plugin for Unity specific Mir APIs
89
- QtMir provides Qt/QML bindings for Mir features that are exposed through the
90
- qtmir-desktop or qtmir-android QPA plugin such as Application management
91
- (start/stop/suspend/resume) and surface management.
96
-Pre-Depends: ${misc:Pre-Depends},
97
-Depends: autopilot-qt5,
102
- python3-babeltrace,
104
- python3-mir-perf-framework,
105
- qtdeclarative5-qtmir-plugin,
106
- qtmir-desktop (= ${source:Version}) | qtmir-android (= ${source:Version}),
109
-Description: QtMir tests and demos
110
- This package provides benchmark tests and a simple shell and client using the
112
+ This variant of the package is for Android-based phones and tablets (built
113
+ against the OpenGLES variant of qtbase).
114
Index: inline-gles-quilt/debian/rules
115
===================================================================
116
--- inline-gles-quilt.orig/debian/rules
117
+++ inline-gles-quilt/debian/rules
120
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
122
-include /usr/share/dpkg/default.mk
124
ANDROID_DIR = build-android
125
-DESKTOP_DIR = build-desktop
126
TMP1_DIR = $(CURDIR)/debian/tmp1
127
-TMP2_DIR = $(CURDIR)/debian/tmp2
129
-# We only want to build qtmir-android on arches using Qt built with OpenGL ES2.0
130
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
131
-gles2_architectures = armhf
133
-USES_GLES2 = $(findstring $(DEB_HOST_ARCH), $(gles2_architectures))
136
dh $@ --parallel --fail-missing
139
-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
145
override_dh_auto_configure:
146
-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
147
mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1
148
-# See comment in CMakeLists.txt
149
- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGL_BUT_LINK_AGAINST_OPENGLES=1
151
- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- $(FLAGS) $(CURDIR) -DUSE_OPENGLES=1
154
override_dh_auto_build:
155
-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
156
dh_auto_build -B$(ANDROID_DIR)
158
- dh_auto_build -B$(DESKTOP_DIR)
160
override_dh_auto_test:
161
-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
162
dh_auto_test -B$(ANDROID_DIR)
164
- dh_auto_test -B$(DESKTOP_DIR)
166
override_dh_auto_install:
167
-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
168
dh_auto_install -B$(ANDROID_DIR) --destdir=$(TMP1_DIR)
170
- dh_auto_install -B$(DESKTOP_DIR) --destdir=$(TMP2_DIR)
173
-ifeq ($(DEB_HOST_ARCH),$(USES_GLES2))
174
+ cat $(CURDIR)/debian/qtmir-tests.install $(CURDIR)/debian/qtdeclarative5-qtmir-plugin.install | xargs -I% sh -c "rm -rf $(TMP1_DIR)/%"
175
dh_install --sourcedir=$(TMP1_DIR) -pqtmir-android
177
- dh_install --sourcedir=$(TMP2_DIR) -pqtmir-desktop
178
- dh_install --sourcedir=$(TMP2_DIR) -pqtdeclarative5-qtmir-plugin
179
- dh_install --sourcedir=$(TMP2_DIR) -pqtmir-tests