diff options
Diffstat (limited to 'classes/qmake5_paths.bbclass')
-rw-r--r-- | classes/qmake5_paths.bbclass | 52 |
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 | |||
5 | QT_DIR_NAME ?= "" | ||
6 | |||
7 | # This is useful for target recipes to reference native mkspecs | ||
8 | QMAKE_MKSPEC_PATH_NATIVE = "${STAGING_LIBDIR_NATIVE}" | ||
9 | QMAKE_MKSPEC_PATH_TARGET = "${STAGING_LIBDIR}" | ||
10 | |||
11 | QMAKE_MKSPEC_PATH = "${QMAKE_MKSPEC_PATH_TARGET}" | ||
12 | QMAKE_MKSPEC_PATH_class-native = "${QMAKE_MKSPEC_PATH_NATIVE}" | ||
13 | QMAKE_MKSPEC_PATH_class-nativesdk = "${QMAKE_MKSPEC_PATH_NATIVE}" | ||
14 | |||
15 | OE_QMAKE_PATH_PREFIX = "${prefix}" | ||
16 | OE_QMAKE_PATH_HEADERS = "${includedir}/qt5" | ||
17 | OE_QMAKE_PATH_LIBS = "${libdir}" | ||
18 | OE_QMAKE_PATH_ARCHDATA = "${libdir}" | ||
19 | OE_QMAKE_PATH_DATA = "${datadir}" | ||
20 | OE_QMAKE_PATH_BINS = "${bindir}" | ||
21 | OE_QMAKE_PATH_LIBEXECS = "${libdir}/libexec" | ||
22 | OE_QMAKE_PATH_PLUGINS = "${libdir}/plugins" | ||
23 | OE_QMAKE_PATH_IMPORTS = "${libdir}/imports" | ||
24 | OE_QMAKE_PATH_QML = "${libdir}/qml" | ||
25 | OE_QMAKE_PATH_TRANSLATIONS = "${datadir}/translations" | ||
26 | OE_QMAKE_PATH_DOCS = "${docdir}" | ||
27 | OE_QMAKE_PATH_SETTINGS = "${sysconfdir}" | ||
28 | OE_QMAKE_PATH_EXAMPLES = "${datadir}/examples" | ||
29 | OE_QMAKE_PATH_TESTS = "${datadir}/tests" | ||
30 | OE_QMAKE_PATH_HOST_PREFIX = "" | ||
31 | OE_QMAKE_PATH_HOST_PREFIX_class-target = "${STAGING_DIR_NATIVE}" | ||
32 | OE_QMAKE_PATH_HOST_BINS = "${bindir}" | ||
33 | OE_QMAKE_PATH_HOST_DATA = "${QMAKE_MKSPEC_PATH_TARGET}" | ||
34 | OE_QMAKE_PATH_HOST_LIBS = "${STAGING_LIBDIR}" | ||
35 | OE_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 | ||
42 | OE_QMAKE_PATH_QT_HEADERS = "${includedir}/qt5" | ||
43 | OE_QMAKE_PATH_QT_ARCHDATA = "${libdir}" | ||
44 | OE_QMAKE_PATH_QT_DATA = "${datadir}" | ||
45 | OE_QMAKE_PATH_QT_BINS = "${bindir}" | ||
46 | OE_QMAKE_PATH_QT_TRANSLATIONS = "${datadir}/translations" | ||
47 | OE_QMAKE_PATH_QT_DOCS = "${docdir}" | ||
48 | OE_QMAKE_PATH_QT_SETTINGS = "${sysconfdir}" | ||
49 | OE_QMAKE_PATH_QT_EXAMPLES = "${datadir}/examples" | ||
50 | OE_QMAKE_PATH_QT_TESTS = "${datadir}/tests" | ||
51 | |||
52 | OE_QMAKE_PATH_QT_FONTS = "${OE_QMAKE_PATH_LIBS}/fonts" | ||