mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-06-21 08:52:35 +02:00
qt5: cleanup mkspecs
QMAKE_COMPILER is not meant to be the actual compiler, but a compiler type (gcc, clang, mingw). For both mkspecs it's already set in the common includes. Remove wayland and debug settings from the clang mkspec as they are already removed from the gcc mkspec. Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
This commit is contained in:
committed by
Martin Jansa
parent
e117b58d16
commit
92c34de4bb
@@ -20,7 +20,6 @@ SSTATE_SCAN_FILES += "*.pri *.prl *.prf"
|
||||
# then OE_QMAKE_CFLAGS are exported and used correctly, but then whole CFLAGS is overwritten from env (and -fPIC lost and build fails)
|
||||
EXTRA_OEMAKE = " \
|
||||
MAKEFLAGS='${PARALLEL_MAKE}' \
|
||||
OE_QMAKE_COMPILER='${OE_QMAKE_COMPILER}' \
|
||||
OE_QMAKE_CC='${OE_QMAKE_CC}' \
|
||||
OE_QMAKE_CXX='${OE_QMAKE_CXX}' \
|
||||
OE_QMAKE_CFLAGS='${OE_QMAKE_CFLAGS}' \
|
||||
@@ -33,7 +32,6 @@ EXTRA_OEMAKE = " \
|
||||
"
|
||||
|
||||
OE_QMAKE_QMAKE = "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake"
|
||||
export OE_QMAKE_COMPILER = "${CC}"
|
||||
export OE_QMAKE_CC = "${CC}"
|
||||
export OE_QMAKE_CFLAGS = "${CFLAGS}"
|
||||
export OE_QMAKE_CXX = "${CXX}"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 3701cce26ce6f90e4b5e4c71c73d333d43b5ac08 Mon Sep 17 00:00:00 2001
|
||||
From 5a9a1e8da67d2bf1672982f087995c8e0e8b3577 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
Date: Mon, 15 Apr 2013 04:29:32 +0200
|
||||
Subject: [PATCH] Add linux-oe-g++ platform
|
||||
@@ -24,14 +24,14 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
mkspecs/features/configure.prf | 4 +--
|
||||
mkspecs/features/qt.prf | 6 ++---
|
||||
mkspecs/features/qt_functions.prf | 2 +-
|
||||
mkspecs/linux-oe-g++/qmake.conf | 40 ++++++++++++++++++++++++++++
|
||||
mkspecs/linux-oe-g++/qmake.conf | 39 ++++++++++++++++++++++++++++
|
||||
mkspecs/linux-oe-g++/qplatformdefs.h | 1 +
|
||||
6 files changed, 48 insertions(+), 7 deletions(-)
|
||||
6 files changed, 47 insertions(+), 7 deletions(-)
|
||||
create mode 100644 mkspecs/linux-oe-g++/qmake.conf
|
||||
create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index ef7bad1bfc..dcca0f9135 100755
|
||||
index ef7bad1bfce..dcca0f91359 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -712,7 +712,7 @@ fi
|
||||
@@ -44,7 +44,7 @@ index ef7bad1bfc..dcca0f9135 100755
|
||||
|
||||
# build qmake
|
||||
diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
|
||||
index 934a18a924..0f5b1b6333 100644
|
||||
index 934a18a9249..0f5b1b63334 100644
|
||||
--- a/mkspecs/features/configure.prf
|
||||
+++ b/mkspecs/features/configure.prf
|
||||
@@ -46,14 +46,14 @@ defineTest(qtCompileTest) {
|
||||
@@ -65,7 +65,7 @@ index 934a18a924..0f5b1b6333 100644
|
||||
msg = "test $$1 succeeded"
|
||||
write_file($$QMAKE_CONFIG_LOG, msg, append)
|
||||
diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
|
||||
index d16b3cf1be..df219ce34c 100644
|
||||
index 90e318e2a48..3e8568ed675 100644
|
||||
--- a/mkspecs/features/qt.prf
|
||||
+++ b/mkspecs/features/qt.prf
|
||||
@@ -147,7 +147,7 @@ import_plugins:qtConfig(static) {
|
||||
@@ -89,7 +89,7 @@ index d16b3cf1be..df219ce34c 100644
|
||||
# run qmlimportscanner
|
||||
qtPrepareTool(QMLIMPORTSCANNER, qmlimportscanner, , system)
|
||||
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
|
||||
index 1903e509c8..c093dd4592 100644
|
||||
index 1903e509c8e..c093dd4592d 100644
|
||||
--- a/mkspecs/features/qt_functions.prf
|
||||
+++ b/mkspecs/features/qt_functions.prf
|
||||
@@ -69,7 +69,7 @@ defineTest(qtHaveModule) {
|
||||
@@ -103,10 +103,10 @@ index 1903e509c8..c093dd4592 100644
|
||||
cmd = perl -w $$system_path($${cmd}.pl)
|
||||
diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf
|
||||
new file mode 100644
|
||||
index 0000000000..f34a66599a
|
||||
index 00000000000..c202c47fa15
|
||||
--- /dev/null
|
||||
+++ b/mkspecs/linux-oe-g++/qmake.conf
|
||||
@@ -0,0 +1,40 @@
|
||||
@@ -0,0 +1,39 @@
|
||||
+#
|
||||
+# qmake configuration for linux-g++ with modifications for building with OpenEmbedded
|
||||
+#
|
||||
@@ -131,7 +131,6 @@ index 0000000000..f34a66599a
|
||||
+include(../common/g++-unix.conf)
|
||||
+
|
||||
+# tc settings from g++-base.conf
|
||||
+QMAKE_COMPILER = $$(OE_QMAKE_COMPILER) gcc
|
||||
+QMAKE_CC = $$(OE_QMAKE_CC)
|
||||
+QMAKE_CXX = $$(OE_QMAKE_CXX)
|
||||
+
|
||||
@@ -149,7 +148,7 @@ index 0000000000..f34a66599a
|
||||
+load(qt_config)
|
||||
diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h
|
||||
new file mode 100644
|
||||
index 0000000000..5d22fb4101
|
||||
index 00000000000..5d22fb41013
|
||||
--- /dev/null
|
||||
+++ b/mkspecs/linux-oe-g++/qplatformdefs.h
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
From 12d00d903a16dba6f7aad0f4652addbd395765fe Mon Sep 17 00:00:00 2001
|
||||
From 289f366363eeca03c27fd718c8b3ae53dcc28586 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 3 Sep 2017 09:11:44 -0700
|
||||
Subject: [PATCH] Add OE specific specs for clang compiler
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
mkspecs/linux-oe-clang/qmake.conf | 42 ++++++++++++++++++++++++++
|
||||
mkspecs/linux-oe-clang/qmake.conf | 39 ++++++++++++++++++++++++++
|
||||
mkspecs/linux-oe-clang/qplatformdefs.h | 1 +
|
||||
2 files changed, 43 insertions(+)
|
||||
2 files changed, 40 insertions(+)
|
||||
create mode 100644 mkspecs/linux-oe-clang/qmake.conf
|
||||
create mode 100644 mkspecs/linux-oe-clang/qplatformdefs.h
|
||||
|
||||
diff --git a/mkspecs/linux-oe-clang/qmake.conf b/mkspecs/linux-oe-clang/qmake.conf
|
||||
new file mode 100644
|
||||
index 0000000000..443d4b0dff
|
||||
index 00000000000..db02ab5215f
|
||||
--- /dev/null
|
||||
+++ b/mkspecs/linux-oe-clang/qmake.conf
|
||||
@@ -0,0 +1,42 @@
|
||||
@@ -0,0 +1,39 @@
|
||||
+#
|
||||
+# qmake configuration for linux-g++ with modifications for building with OpenEmbedded
|
||||
+#
|
||||
@@ -41,12 +41,9 @@ index 0000000000..443d4b0dff
|
||||
+include(../common/clang.conf)
|
||||
+
|
||||
+# tc settings from g++-base.conf
|
||||
+QMAKE_COMPILER = $$(OE_QMAKE_COMPILER) clang
|
||||
+QMAKE_CC = $$(OE_QMAKE_CC)
|
||||
+QMAKE_CXX = $$(OE_QMAKE_CXX)
|
||||
+
|
||||
+QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$(OE_QMAKE_CFLAGS)
|
||||
+
|
||||
+QMAKE_LINK = $$(OE_QMAKE_LINK)
|
||||
+QMAKE_LINK_SHLIB = $$(OE_QMAKE_LINK)
|
||||
+QMAKE_LINK_C = $$(OE_QMAKE_LINK)
|
||||
@@ -61,7 +58,7 @@ index 0000000000..443d4b0dff
|
||||
+load(qt_config)
|
||||
diff --git a/mkspecs/linux-oe-clang/qplatformdefs.h b/mkspecs/linux-oe-clang/qplatformdefs.h
|
||||
new file mode 100644
|
||||
index 0000000000..880c927b21
|
||||
index 00000000000..880c927b218
|
||||
--- /dev/null
|
||||
+++ b/mkspecs/linux-oe-clang/qplatformdefs.h
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user