1
Index: arm64/debian/control
1
Index: cross-build-support/debian/control
2
2
===================================================================
3
--- arm64.orig/debian/control
4
+++ arm64/debian/control
3
--- cross-build-support.orig/debian/control
4
+++ cross-build-support/debian/control
7
7
+Source: qtubuntu-gles
9
9
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
10
10
Build-Depends: debhelper (>= 9),
11
@@ -11,12 +11,20 @@ Build-Depends: debhelper (>= 9),
11
@@ -11,11 +11,20 @@ Build-Depends: debhelper (>= 9),
13
13
libmirclient-dev (>= 0.13.0),
26
- qtbase5-private-dev,
27
26
+ qtbase5-gles-dev,
28
27
+ qtbase5-private-gles-dev,
29
28
+ qtdeclarative5-dev,
31
30
# if you don't have have commit access to this branch but would like to upload
32
31
# directly to Ubuntu, don't worry: your changes will be merged back into the
33
@@ -26,7 +34,7 @@ Standards-Version: 3.9.6
32
@@ -25,7 +34,7 @@ Standards-Version: 3.9.6
36
35
Package: qtubuntu-android
40
39
Conflicts: qtubuntu-desktop,
41
40
Replaces: qtubuntu (<< 0.52),
42
@@ -37,31 +45,12 @@ Provides: qtubuntu,
41
@@ -36,31 +45,12 @@ Provides: qtubuntu,
43
42
Depends: ubuntu-application-api3-touch,
74
73
- This variant of the package is for GNU-based desktops.
75
74
+ This variant of the package is for Android-based phones and tablets (built
76
75
+ against the OpenGLES variant of qtbase).
77
Index: arm64/debian/rules
76
Index: cross-build-support/debian/rules
78
77
===================================================================
79
--- arm64.orig/debian/rules
80
+++ arm64/debian/rules
82
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
78
--- cross-build-support.orig/debian/rules
79
+++ cross-build-support/debian/rules
80
@@ -5,60 +5,35 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=4
84
83
ANDROID_DIR = build-android
85
84
-DESKTOP_DIR = build-desktop
86
85
TMP1_DIR = $(CURDIR)/debian/tmp1
87
86
-TMP2_DIR = $(CURDIR)/debian/tmp2
89
88
-# We only want to build qtubuntu-android on arches using Qt built with OpenGL ES2.0
90
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
89
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
90
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
91
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
93
export PKG_CONFIG_PATH=/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
91
95
-gles2_architectures = arm64 armhf
96
100
override_dh_clean:
97
101
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
102
- rm -rf $(TMP1_DIR) $(DESKTOP_DIR)
104
- rm -rf $(TMP2_DIR) $(ANDROID_DIR)
105
+ rm -rf $(TMP1_DIR) $(ANDROID_DIR)
103
108
override_dh_auto_configure:
104
109
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
105
mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- "QMAKE_CXXFLAGS=-DPLATFORM_API_TOUCH" $(CURDIR)
107
- mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- "QMAKE_CXXFLAGS=-DQTUBUNTU_USE_OPENGL" $(CURDIR)
110
mkdir -p $(ANDROID_DIR)
111
ifneq "$(DEB_HOST_ARCH)" "$(DEB_BUILD_ARCH)"
112
cd $(ANDROID_DIR) && qt5-qmake-$(DEB_HOST_MULTIARCH) "QMAKE_CXXFLAGS=-DPLATFORM_API_TOUCH" $(CURDIR)
114
dh_auto_configure -B$(ANDROID_DIR) -- "QMAKE_CXXFLAGS=-DPLATFORM_API_TOUCH" $(CURDIR)
117
- mkdir -p $(DESKTOP_DIR)
118
-ifneq "$(DEB_HOST_ARCH)" "$(DEB_BUILD_ARCH)"
119
- cd $(DESKTOP_DIR) && qt5-qmake-$(DEB_HOST_MULTIARCH) "QMAKE_CXXFLAGS=-DQTUBUNTU_USE_OPENGL" $(CURDIR)
121
- dh_auto_configure -B$(DESKTOP_DIR) -- "QMAKE_CXXFLAGS=-DQTUBUNTU_USE_OPENGL" $(CURDIR)
109
124
override_dh_auto_build:
110
125
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
116
131
rm -f debian/*/usr/lib/*/qt5/examples/qtubuntu/qmlscene-ubuntu
117
132
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
118
133
mkdir -p $(TMP1_DIR) && cd $(ANDROID_DIR) && INSTALL_ROOT=$(TMP1_DIR) make install
121
135
- mkdir -p $(TMP2_DIR) && cd $(DESKTOP_DIR) && INSTALL_ROOT=$(TMP2_DIR) make install
124
137
override_dh_install:
125
138
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))