summaryrefslogtreecommitdiffstats
path: root/classes/qmake5_paths.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/qmake5_paths.bbclass')
-rw-r--r--classes/qmake5_paths.bbclass52
1 files changed, 52 insertions, 0 deletions
diff --git a/classes/qmake5_paths.bbclass b/classes/qmake5_paths.bbclass
new file mode 100644
index 0000000..32c7716
--- /dev/null
+++ b/classes/qmake5_paths.bbclass
@@ -0,0 +1,52 @@
1# If your distribution supports only qt5, or you don't care
2# about conflicts with qt4, then you can add qmake5_paths.bbclass
3# to your distro layer and flatten all QT_DIR_NAME directories
4
5QT_DIR_NAME ?= ""
6
7# This is useful for target recipes to reference native mkspecs
8QMAKE_MKSPEC_PATH_NATIVE = "${STAGING_LIBDIR_NATIVE}"
9QMAKE_MKSPEC_PATH_TARGET = "${STAGING_LIBDIR}"
10
11QMAKE_MKSPEC_PATH = "${QMAKE_MKSPEC_PATH_TARGET}"
12QMAKE_MKSPEC_PATH_class-native = "${QMAKE_MKSPEC_PATH_NATIVE}"
13QMAKE_MKSPEC_PATH_class-nativesdk = "${QMAKE_MKSPEC_PATH_NATIVE}"
14
15OE_QMAKE_PATH_PREFIX = "${prefix}"
16OE_QMAKE_PATH_HEADERS = "${includedir}/qt5"
17OE_QMAKE_PATH_LIBS = "${libdir}"
18OE_QMAKE_PATH_ARCHDATA = "${libdir}"
19OE_QMAKE_PATH_DATA = "${datadir}"
20OE_QMAKE_PATH_BINS = "${bindir}"
21OE_QMAKE_PATH_LIBEXECS = "${libdir}/libexec"
22OE_QMAKE_PATH_PLUGINS = "${libdir}/plugins"
23OE_QMAKE_PATH_IMPORTS = "${libdir}/imports"
24OE_QMAKE_PATH_QML = "${libdir}/qml"
25OE_QMAKE_PATH_TRANSLATIONS = "${datadir}/translations"
26OE_QMAKE_PATH_DOCS = "${docdir}"
27OE_QMAKE_PATH_SETTINGS = "${sysconfdir}"
28OE_QMAKE_PATH_EXAMPLES = "${datadir}/examples"
29OE_QMAKE_PATH_TESTS = "${datadir}/tests"
30OE_QMAKE_PATH_HOST_PREFIX = ""
31OE_QMAKE_PATH_HOST_PREFIX_class-target = "${STAGING_DIR_NATIVE}"
32OE_QMAKE_PATH_HOST_BINS = "${bindir}"
33OE_QMAKE_PATH_HOST_DATA = "${QMAKE_MKSPEC_PATH_TARGET}"
34OE_QMAKE_PATH_HOST_LIBS = "${STAGING_LIBDIR}"
35OE_QMAKE_PATH_EXTERNAL_HOST_BINS = "${STAGING_BINDIR_NATIVE}"
36
37# for qt5 components we're using QT_DIR_NAME subdirectory in more
38# variables, because we don't want conflicts with qt4
39# This block is useful for components which install their
40# own files without QT_DIR_NAME but need to reference paths e.g.
41# with QT headers
42OE_QMAKE_PATH_QT_HEADERS = "${includedir}/qt5"
43OE_QMAKE_PATH_QT_ARCHDATA = "${libdir}"
44OE_QMAKE_PATH_QT_DATA = "${datadir}"
45OE_QMAKE_PATH_QT_BINS = "${bindir}"
46OE_QMAKE_PATH_QT_TRANSLATIONS = "${datadir}/translations"
47OE_QMAKE_PATH_QT_DOCS = "${docdir}"
48OE_QMAKE_PATH_QT_SETTINGS = "${sysconfdir}"
49OE_QMAKE_PATH_QT_EXAMPLES = "${datadir}/examples"
50OE_QMAKE_PATH_QT_TESTS = "${datadir}/tests"
51
52OE_QMAKE_PATH_QT_FONTS = "${OE_QMAKE_PATH_LIBS}/fonts"