opendreambox.conf: fix packageconfig for cogl
[opendreambox.git] / meta-opendreambox / classes / qmake5_paths.bbclass
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 ?= "/qt5"
6
7 # This is useful for target recipes to reference native mkspecs
8 QMAKE_MKSPEC_PATH_NATIVE = "${STAGING_LIBDIR_NATIVE}${QT_DIR_NAME}"
9 QMAKE_MKSPEC_PATH_TARGET = "${STAGING_LIBDIR}${QT_DIR_NAME}"
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}${QT_DIR_NAME}"
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}${QT_DIR_NAME}/libexec"
22 OE_QMAKE_PATH_PLUGINS = "${libdir}${QT_DIR_NAME}/plugins"
23 OE_QMAKE_PATH_IMPORTS = "${libdir}${QT_DIR_NAME}/imports"
24 OE_QMAKE_PATH_QML = "${libdir}${QT_DIR_NAME}/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 usefull 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}${QT_DIR_NAME}"
43 OE_QMAKE_PATH_QT_ARCHDATA = "${libdir}${QT_DIR_NAME}"
44 OE_QMAKE_PATH_QT_DATA = "${datadir}${QT_DIR_NAME}"
45 OE_QMAKE_PATH_QT_BINS = "${bindir}"
46 OE_QMAKE_PATH_QT_TRANSLATIONS = "${datadir}${QT_DIR_NAME}/translations"
47 OE_QMAKE_PATH_QT_DOCS = "${docdir}${QT_DIR_NAME}"
48 OE_QMAKE_PATH_QT_SETTINGS = "${sysconfdir}${QT_DIR_NAME}"
49 OE_QMAKE_PATH_QT_EXAMPLES = "${datadir}${QT_DIR_NAME}/examples"
50 OE_QMAKE_PATH_QT_TESTS = "${datadir}${QT_DIR_NAME}/tests"
51
52 OE_QMAKE_PATH_QT_FONTS = "${OE_QMAKE_PATH_LIBS}/fonts"