diff options
Diffstat (limited to 'meta/classes/gobject-introspection.bbclass')
-rw-r--r-- | meta/classes/gobject-introspection.bbclass | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass index 822a226d5f..4db1b362d9 100644 --- a/meta/classes/gobject-introspection.bbclass +++ b/meta/classes/gobject-introspection.bbclass | |||
@@ -14,16 +14,18 @@ GIR_MESON_OPTION ?= 'introspection' | |||
14 | GIR_MESON_ENABLE_FLAG ?= 'true' | 14 | GIR_MESON_ENABLE_FLAG ?= 'true' |
15 | GIR_MESON_DISABLE_FLAG ?= 'false' | 15 | GIR_MESON_DISABLE_FLAG ?= 'false' |
16 | 16 | ||
17 | # Define g-i options such that they can be disabled completely when GIR_MESON_OPTION is empty | ||
18 | GIRMESONTARGET = "-D${GIR_MESON_OPTION}=${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GIR_MESON_ENABLE_FLAG}', '${GIR_MESON_DISABLE_FLAG}', d)} " | ||
19 | GIRMESONBUILD = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} " | ||
17 | # Auto enable/disable based on GI_DATA_ENABLED | 20 | # Auto enable/disable based on GI_DATA_ENABLED |
18 | EXTRA_OECONF:prepend:class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " | 21 | EXTRA_OECONF:prepend:class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " |
19 | EXTRA_OEMESON:prepend:class-target = "-D${GIR_MESON_OPTION}=${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GIR_MESON_ENABLE_FLAG}', '${GIR_MESON_DISABLE_FLAG}', d)} " | 22 | EXTRA_OEMESON:prepend:class-target = "${@['', '${GIRMESONTARGET}'][d.getVar('GIR_MESON_OPTION') != '']}" |
20 | |||
21 | # When building native recipes, disable introspection, as it is not necessary, | 23 | # When building native recipes, disable introspection, as it is not necessary, |
22 | # pulls in additional dependencies, and makes build times longer | 24 | # pulls in additional dependencies, and makes build times longer |
23 | EXTRA_OECONF:prepend:class-native = "--disable-introspection " | 25 | EXTRA_OECONF:prepend:class-native = "--disable-introspection " |
24 | EXTRA_OECONF:prepend:class-nativesdk = "--disable-introspection " | 26 | EXTRA_OECONF:prepend:class-nativesdk = "--disable-introspection " |
25 | EXTRA_OEMESON:prepend:class-native = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} " | 27 | EXTRA_OEMESON:prepend:class-native = "${@['', '${GIRMESONBUILD}'][d.getVar('GIR_MESON_OPTION') != '']}" |
26 | EXTRA_OEMESON:prepend:class-nativesdk = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} " | 28 | EXTRA_OEMESON:prepend:class-nativesdk = "${@['', '${GIRMESONBUILD}'][d.getVar('GIR_MESON_OPTION') != '']}" |
27 | 29 | ||
28 | # Generating introspection data depends on a combination of native and target | 30 | # Generating introspection data depends on a combination of native and target |
29 | # introspection tools, and qemu to run the target tools. | 31 | # introspection tools, and qemu to run the target tools. |