diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-08 22:56:59 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-09 13:56:49 +0200 |
commit | d8314098bf945b4db15302d47eae1d6fc2df882c (patch) | |
tree | e89d4d43f927bd2c3fc9a10e91e2c972add7fdd4 /recipes-qt/qt5 | |
parent | 7caede7850d7b33011a5a0e3124180db2f7a0d6c (diff) | |
download | meta-qt5-d8314098bf945b4db15302d47eae1d6fc2df882c.tar.gz |
qmake5: drop QT_DIR_NAME subdirectory from many OE_QMAKE_PATH_* variables and add it back in qt5.inc
* we're using QT_DIR_NAME subdirectory mostly to prevent conflicts with existing files from qt4
but setting it in all OE_QMAKE_PATH_* variables causes all apps which are just using qmake to
build to install e.g. in /qt5 which for stuff like qterminal or something doesn't
sound right (as long as there isn't qterminal4 and qterminal5 recipe)
* some variables are kept with default QT_DIR_NAME, e.g. qml, imports, plugins we can assume that
every application which installs some QML files will install them in location shared by all
* add qt5-native.inc which also adds this QT_DIR_NAME and common
inherits (later will be used also by qtwayland-native.inc)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r-- | recipes-qt/qt5/qt5-native.inc | 12 | ||||
-rw-r--r-- | recipes-qt/qt5/qt5.inc | 11 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase-native.inc | 4 | ||||
-rw-r--r-- | recipes-qt/qt5/qtjsbackend-native.inc | 4 |
4 files changed, 27 insertions, 4 deletions
diff --git a/recipes-qt/qt5/qt5-native.inc b/recipes-qt/qt5/qt5-native.inc new file mode 100644 index 00000000..e1a77987 --- /dev/null +++ b/recipes-qt/qt5/qt5-native.inc | |||
@@ -0,0 +1,12 @@ | |||
1 | inherit native qmake5_base | ||
2 | |||
3 | # we don't want conflicts with qt4 | ||
4 | OE_QMAKE_PATH_HEADERS = "${includedir}/${QT_DIR_NAME}" | ||
5 | OE_QMAKE_PATH_ARCHDATA = "${libdir}/${QT_DIR_NAME}" | ||
6 | OE_QMAKE_PATH_DATA = "${datadir}/${QT_DIR_NAME}" | ||
7 | OE_QMAKE_PATH_BINS = "${bindir}/${QT_DIR_NAME}" | ||
8 | OE_QMAKE_PATH_TRANSLATIONS = "${datadir}/${QT_DIR_NAME}/translations" | ||
9 | OE_QMAKE_PATH_DOCS = "${docdir}/${QT_DIR_NAME}" | ||
10 | OE_QMAKE_PATH_SETTINGS = "${sysconfdir}/${QT_DIR_NAME}" | ||
11 | OE_QMAKE_PATH_EXAMPLES = "${datadir}/${QT_DIR_NAME}/examples" | ||
12 | OE_QMAKE_PATH_TESTS = "${datadir}/${QT_DIR_NAME}/tests" | ||
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index b29bc891..79a4833c 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc | |||
@@ -22,6 +22,17 @@ do_install() { | |||
22 | qmake5_base_do_install | 22 | qmake5_base_do_install |
23 | } | 23 | } |
24 | 24 | ||
25 | # we don't want conflicts with qt4 | ||
26 | OE_QMAKE_PATH_HEADERS = "${includedir}/${QT_DIR_NAME}" | ||
27 | OE_QMAKE_PATH_ARCHDATA = "${libdir}/${QT_DIR_NAME}" | ||
28 | OE_QMAKE_PATH_DATA = "${datadir}/${QT_DIR_NAME}" | ||
29 | OE_QMAKE_PATH_BINS = "${bindir}/${QT_DIR_NAME}" | ||
30 | OE_QMAKE_PATH_TRANSLATIONS = "${datadir}/${QT_DIR_NAME}/translations" | ||
31 | OE_QMAKE_PATH_DOCS = "${docdir}/${QT_DIR_NAME}" | ||
32 | OE_QMAKE_PATH_SETTINGS = "${sysconfdir}/${QT_DIR_NAME}" | ||
33 | OE_QMAKE_PATH_EXAMPLES = "${datadir}/${QT_DIR_NAME}/examples" | ||
34 | OE_QMAKE_PATH_TESTS = "${datadir}/${QT_DIR_NAME}/tests" | ||
35 | |||
25 | PACKAGES =. "${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs " | 36 | PACKAGES =. "${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs " |
26 | 37 | ||
27 | # extra -dbg packages | 38 | # extra -dbg packages |
diff --git a/recipes-qt/qt5/qtbase-native.inc b/recipes-qt/qt5/qtbase-native.inc index 12166951..1de1e1da 100644 --- a/recipes-qt/qt5/qtbase-native.inc +++ b/recipes-qt/qt5/qtbase-native.inc | |||
@@ -5,10 +5,10 @@ HOMEPAGE = "http://qt-project.org" | |||
5 | 5 | ||
6 | INC_PR = "r1" | 6 | INC_PR = "r1" |
7 | 7 | ||
8 | inherit native qmake5_base | ||
9 | |||
10 | QT_MODULE = "qtbase" | 8 | QT_MODULE = "qtbase" |
11 | 9 | ||
10 | require qt5-native.inc | ||
11 | |||
12 | # shared with target qtbase | 12 | # shared with target qtbase |
13 | SRC_URI += " \ | 13 | SRC_URI += " \ |
14 | file://0001-Add-linux-oe-g-platform.patch \ | 14 | file://0001-Add-linux-oe-g-platform.patch \ |
diff --git a/recipes-qt/qt5/qtjsbackend-native.inc b/recipes-qt/qt5/qtjsbackend-native.inc index 2cf113d8..4369af03 100644 --- a/recipes-qt/qt5/qtjsbackend-native.inc +++ b/recipes-qt/qt5/qtjsbackend-native.inc | |||
@@ -9,9 +9,9 @@ DEPENDS = "qtbase-native" | |||
9 | 9 | ||
10 | QT_MODULE = "qtjsbackend" | 10 | QT_MODULE = "qtjsbackend" |
11 | 11 | ||
12 | INC_PR = "r0" | 12 | require qt5-native.inc |
13 | 13 | ||
14 | inherit native qmake5_base | 14 | INC_PR = "r0" |
15 | 15 | ||
16 | SRC_URI += "\ | 16 | SRC_URI += "\ |
17 | file://0001-Install-the-mkv8snapshot-tool-to-the-native-side.patch \ | 17 | file://0001-Install-the-mkv8snapshot-tool-to-the-native-side.patch \ |