annotate src/qtbase-1-fixes.patch @ 4310:2c34ec679fb3

qt5: update to 5.7.1 * src/qtbase-1-fixes.patch: update patch from mxe.cc * src/qtbase.mk: update version, checksum, use -no-pch * src/qtimageformats-1.patch: update patch from mxe.cc * src/qtimageformats.mk: update checksum * src/qtsvg.mk: update checksum * src/qttools.mk: update checksum
author John D
date Sun, 01 Jan 2017 08:00:17 -0500
parents 44b1a9b2193e
children 4cea16af20b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
1 This file is part of MXE. See LICENSE.md for licensing information.
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
2
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
3 From 62efa18a61560a7757acffbd4ac6ca7b153155cc Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
4 From: Mark Brand <mabrand@mabrand.nl>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
5 Date: Thu, 6 Aug 2015 23:35:08 +0200
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
6 Subject: [PATCH 1/8] fix qwindows plugin linking with system-freetype (MXE
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
7 specific)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
8
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
9 Change-Id: I8783e3ab2d19011b083dd3c471107298a17293c4
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
10
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
11 diff --git a/src/3rdparty/freetype_dependency.pri b/src/3rdparty/freetype_dependency.pri
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
12 index 39280de..e152b0d 100644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
13 --- a/src/3rdparty/freetype_dependency.pri
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
14 +++ b/src/3rdparty/freetype_dependency.pri
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
15 @@ -4,4 +4,5 @@ contains(QT_CONFIG, freetype) {
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
16 } else:contains(QT_CONFIG, system-freetype) {
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
17 # pull in the proper freetype2 include directory
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
18 include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
19 + win32:shared:LIBS_PRIVATE += -lfreetype
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
20 }
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
21 --
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
22 2.9.3
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
23
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
24
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
25 From 5a15e0374758b7786204d98b66f49b4fd3daea79 Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
26 From: Mark Brand <mabrand@mabrand.nl>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
27 Date: Sat, 21 Jun 2014 13:12:49 +0200
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
28 Subject: [PATCH 2/8] use pkg-config for harfbuzz (MXE specific)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
29
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
30 Change-Id: Id4e4c37d68b63c9f480d72a561d95d4d2a5ded50
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
31
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
32 diff --git a/config.tests/unix/harfbuzz/harfbuzz.pro b/config.tests/unix/harfbuzz/harfbuzz.pro
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
33 index 32edd6e..a7f2c28 100644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
34 --- a/config.tests/unix/harfbuzz/harfbuzz.pro
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
35 +++ b/config.tests/unix/harfbuzz/harfbuzz.pro
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
36 @@ -1,3 +1,4 @@
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
37 SOURCES = harfbuzz.cpp
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
38 CONFIG -= qt dylib
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
39 -LIBS += -lharfbuzz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
40 +CONFIG += link_pkgconfig
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
41 +PKGCONFIG += harfbuzz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
42 diff --git a/src/3rdparty/harfbuzz_dependency.pri b/src/3rdparty/harfbuzz_dependency.pri
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
43 index 7443368..c24e684 100644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
44 --- a/src/3rdparty/harfbuzz_dependency.pri
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
45 +++ b/src/3rdparty/harfbuzz_dependency.pri
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
46 @@ -2,5 +2,6 @@ contains(QT_CONFIG, harfbuzz) {
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
47 INCLUDEPATH += $$PWD/harfbuzz-ng/include
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
48 LIBS_PRIVATE += -L$$QT_BUILD_TREE/lib -lqtharfbuzzng$$qtPlatformTargetSuffix()
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
49 } else:contains(QT_CONFIG, system-harfbuzz) {
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
50 - LIBS_PRIVATE += -lharfbuzz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
51 + CONFIG += link_pkgconfig
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
52 + PKGCONFIG += harfbuzz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
53 }
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
54 --
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
55 2.9.3
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
56
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
57
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
58 From bc002ee2a8418c7afcba362d155ba1a591bc3d1a Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
59 From: Mark Brand <mabrand@mabrand.nl>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
60 Date: Mon, 8 Dec 2014 14:15:12 +0100
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
61 Subject: [PATCH 3/8] fix oci config test on windows
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
62
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
63 Change-Id: If1ce2241682259ca495b0ba68bf18410f8548922
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
64
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
65 diff --git a/config.tests/unix/oci/oci.pro b/config.tests/unix/oci/oci.pro
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
66 index 3ffda1d..39b6f3759 100644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
67 --- a/config.tests/unix/oci/oci.pro
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
68 +++ b/config.tests/unix/oci/oci.pro
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
69 @@ -1,3 +1,3 @@
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
70 SOURCES = oci.cpp
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
71 CONFIG -= qt dylib
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
72 -LIBS += -lclntsh
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
73 +!win32:LIBS += -lclntsh
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
74 --
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
75 2.9.3
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
76
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
77
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
78 From 92d2ae7b6eb175b4f15e5f0f231a9c29824d6f57 Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
79 From: Mark Brand <mabrand@mabrand.nl>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
80 Date: Thu, 6 Aug 2015 13:24:56 +0200
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
81 Subject: [PATCH 4/8] configure: don't set QT_NO_SYSTEMSEMAPHORE for Windows
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
82
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
83 Change-Id: I53c110ef40e3d14cc49fa23aa5d294611cac2ffa
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
84
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
85 diff --git a/configure b/configure
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
86 index ba94d08..50e6dfb 100755
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
87 --- a/configure
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
88 +++ b/configure
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
89 @@ -4677,7 +4677,7 @@ fi
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
90 [ "$XPLATFORM_ANDROID" != "no" ] && QMakeVar add styles "android"
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
91
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
92 # check IPC support
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
93 -if ! compileTest unix/ipc_sysv "ipc_sysv" ; then
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
94 +if [ "$XPLATFORM_MINGW" = "no" ] && ! compileTest unix/ipc_sysv "ipc_sysv" ; then
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
95 # SYSV IPC is not supported - check POSIX IPC
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
96 if compileTest unix/ipc_posix "ipc_posix" ; then
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
97 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_POSIX_IPC"
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
98 --
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
99 2.9.3
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
100
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
101
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
102 From f0054e940467a64dffc0c3cc070233fdf2848d43 Mon Sep 17 00:00:00 2001
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
103 From: Mark Brand <mabrand@mabrand.nl>
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
104 Date: Tue, 6 Oct 2015 09:53:20 +0200
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
105 Subject: [PATCH 5/8] fix building mysql driver under mingw
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
106
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
107 Change-Id: I9c4e821d5b3a6919566c6b684cb4916827feb6a9
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
108
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
109 diff --git a/src/sql/drivers/mysql/qsql_mysql.pri b/src/sql/drivers/mysql/qsql_mysql.pri
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
110 index 3cfb614..8b7063f 100644
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
111 --- a/src/sql/drivers/mysql/qsql_mysql.pri
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
112 +++ b/src/sql/drivers/mysql/qsql_mysql.pri
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
113 @@ -4,7 +4,7 @@ SOURCES += $$PWD/qsql_mysql.cpp
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
114 QMAKE_CXXFLAGS *= $$QT_CFLAGS_MYSQL
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
115 LIBS += $$QT_LFLAGS_MYSQL
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
116
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
117 -unix {
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
118 +if (unix|mingw) {
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
119 isEmpty(QT_LFLAGS_MYSQL) {
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
120 !contains(LIBS, .*mysqlclient.*):!contains(LIBS, .*mysqld.*) {
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
121 use_libmysqlclient_r:LIBS += -lmysqlclient_r
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
122 --
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
123 2.9.3
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
124
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
125
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
126 From 26229596fbb711bc222c831eca3a9e5b62c7acc6 Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
127 From: Ray Donnelly <mingw.android@gmail.com>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
128 Date: Wed, 26 Aug 2015 12:45:43 +0100
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
129 Subject: [PATCH 6/8] cmake: Rearrange STATIC vs INTERFACE targets
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
130
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
131 Otherwise we attempt to add_library(Qt5::UiPlugin STATIC IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
132 for header-only modules when building Qt5 statically.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
133
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
134 Source: https://git.io/vzWJz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
135 See also: https://github.com/mxe/mxe/issues/1185
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
136
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
137 diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
138 index d2358ca..6b1dc95 100644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
139 --- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
140 +++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
141 @@ -222,13 +222,13 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
142 endif()
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
143 !!ENDIF
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
144
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
145 +!!IF equals(TEMPLATE, aux)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
146 + add_library(Qt5::$${CMAKE_MODULE_NAME} INTERFACE IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
147 +!!ELSE
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
148 !!IF !isEmpty(CMAKE_STATIC_TYPE)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
149 add_library(Qt5::$${CMAKE_MODULE_NAME} STATIC IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
150 set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "CXX")
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
151 !!ELSE
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
152 -!!IF equals(TEMPLATE, aux)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
153 - add_library(Qt5::$${CMAKE_MODULE_NAME} INTERFACE IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
154 -!!ELSE
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
155 add_library(Qt5::$${CMAKE_MODULE_NAME} SHARED IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
156 !!ENDIF
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
157 !!ENDIF
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
158 --
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
159 2.9.3
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
160
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
161
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
162 From 59fd7fdff5bf0cda3c7a11982ee96f50d8eddec1 Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
163 From: Tony Theodore <tonyt@logyst.com>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
164 Date: Sat, 16 Jul 2016 20:31:07 +1000
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
165 Subject: [PATCH 7/8] Fix pkgconfig file and library naming
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
166
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
167 See: https://codereview.qt-project.org/#/c/165394/
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
168 https://bugreports.qt.io/browse/QTBUG-30898
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
169
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
170 Currently, *.pc files are generated with debug suffix `d` in `-release`
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
171 mode and without the suffix in `-debug` or `-debug-and-release`. This
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
172 can be worked around by `CONIFG-=debug_and_release`, however, a more
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
173 predictable and consistent naming approach would be preferable.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
174
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
175 This change mimics the *.prl file and lib conventions:
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
176
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
177 -release: creates normal *.pc files and lib names
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
178 -release -force-debug-info: normal as above
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
179 -debug: creates *d.pc and *d lib names
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
180 -debug-and-release: creates both
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
181 -default: creates both (default link: debug)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
182
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
183 and should be unsurprising to users of `pkg-config`. At very least,
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
184 it's deterministic and easily incorporated into build systems.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
185
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
186 Task-number: 30898
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
187 Change-Id: If75336ec7d21a7ec0cb6d245fe87c64afcb5a644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
188
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
189 diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
190 index d9011f5..1993a7f 100644
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
191 --- a/mkspecs/features/qt_module.prf
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
192 +++ b/mkspecs/features/qt_module.prf
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
193 @@ -244,6 +244,10 @@ load(qt_installs)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
194
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
195 load(qt_targets)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
196
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
197 +# Set TARGET towards the end but before pkgconfig setup to keep naming
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
198 +# conventions consistent with *prl files
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
199 +TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
200 +
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
201 # this builds on top of qt_common
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
202 !internal_module:!lib_bundle:if(unix|mingw) {
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
203 CONFIG += create_pc
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
204 @@ -254,12 +258,12 @@ load(qt_targets)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
205 QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS/raw]
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
206 QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw]
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
207 QMAKE_PKGCONFIG_CFLAGS = -I${includedir}/$$MODULE_INCNAME
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
208 - QMAKE_PKGCONFIG_NAME = $$replace(TARGET, ^Qt, "Qt$$QT_MAJOR_VERSION ")
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
209 - QMAKE_PKGCONFIG_FILE = $$replace(TARGET, ^Qt, Qt$$QT_MAJOR_VERSION)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
210 + QMAKE_PKGCONFIG_NAME = $$replace(TARGET, ^Qt$$QT_MAJOR_VERSION, "Qt$$QT_MAJOR_VERSION ")
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
211 + QMAKE_PKGCONFIG_FILE = $$TARGET
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
212 for(i, MODULE_DEPENDS): \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
213 - QMAKE_PKGCONFIG_REQUIRES += $$replace(QT.$${i}.name, ^Qt, Qt$$eval(QT.$${i}.MAJOR_VERSION))
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
214 + QMAKE_PKGCONFIG_REQUIRES += $$replace(QT.$${i}.name, ^Qt, Qt$$eval(QT.$${i}.MAJOR_VERSION))$$qtPlatformTargetSuffix()
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
215 isEmpty(QMAKE_PKGCONFIG_DESCRIPTION): \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
216 - QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt, "Qt ") module
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
217 + QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt$$QT_MAJOR_VERSION, "Qt ") module
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
218 pclib_replace.match = $$lib_replace.match
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
219 !isEmpty(lib_replace.replace): \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
220 pclib_replace.replace = $$QMAKE_PKGCONFIG_LIBDIR
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
221 @@ -293,5 +297,3 @@ win32 {
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
222 # On other platforms, Qt's own compilation goes needs to compile the Qt 5.0 API
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
223 DEFINES *= QT_DISABLE_DEPRECATED_BEFORE=0x050000
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
224 }
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
225 -
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
226 -TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX) # Do this towards the end
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
227 --
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
228 2.9.3
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
229
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
230
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
231 From a2ed2c9fe74b549cb163f89a56df6eec3af553fa Mon Sep 17 00:00:00 2001
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
232 From: Mark Brand <mabrand@mabrand.nl>
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
233 Date: Thu, 15 Dec 2016 17:20:56 +0100
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
234 Subject: [PATCH 8/8] fix mysql config test
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
235
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
236 The config test already gets link flags which should include
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
237 the library. Blindly adding it to the end of the list can break
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
238 static linking.
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
239
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
240 Change-Id: Ief71c4ad64cbbb1b141b0ef5549f42a36bbd125b
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
241
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
242 diff --git a/config.tests/unix/mysql/mysql.pro b/config.tests/unix/mysql/mysql.pro
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
243 index 06d1880..ca6d6aa 100644
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
244 --- a/config.tests/unix/mysql/mysql.pro
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
245 +++ b/config.tests/unix/mysql/mysql.pro
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
246 @@ -1,3 +1,3 @@
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
247 SOURCES = mysql.cpp
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
248 CONFIG -= qt dylib
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
249 -LIBS += -lmysqlclient
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
250 +LIBS *= -lmysqlclient
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
251 --
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
252 2.9.3
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
253