summaryrefslogtreecommitdiffstats
path: root/meta/classes/gobject-introspection.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/gobject-introspection.bbclass
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gobject-introspection.bbclass')
-rw-r--r--meta/classes/gobject-introspection.bbclass24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass
index 504f75e28d..822a226d5f 100644
--- a/meta/classes/gobject-introspection.bbclass
+++ b/meta/classes/gobject-introspection.bbclass
@@ -15,29 +15,29 @@ GIR_MESON_ENABLE_FLAG ?= 'true'
15GIR_MESON_DISABLE_FLAG ?= 'false' 15GIR_MESON_DISABLE_FLAG ?= 'false'
16 16
17# Auto enable/disable based on GI_DATA_ENABLED 17# Auto enable/disable based on GI_DATA_ENABLED
18EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " 18EXTRA_OECONF:prepend:class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
19EXTRA_OEMESON_prepend_class-target = "-D${GIR_MESON_OPTION}=${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GIR_MESON_ENABLE_FLAG}', '${GIR_MESON_DISABLE_FLAG}', d)} " 19EXTRA_OEMESON:prepend:class-target = "-D${GIR_MESON_OPTION}=${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GIR_MESON_ENABLE_FLAG}', '${GIR_MESON_DISABLE_FLAG}', d)} "
20 20
21# When building native recipes, disable introspection, as it is not necessary, 21# When building native recipes, disable introspection, as it is not necessary,
22# pulls in additional dependencies, and makes build times longer 22# pulls in additional dependencies, and makes build times longer
23EXTRA_OECONF_prepend_class-native = "--disable-introspection " 23EXTRA_OECONF:prepend:class-native = "--disable-introspection "
24EXTRA_OECONF_prepend_class-nativesdk = "--disable-introspection " 24EXTRA_OECONF:prepend:class-nativesdk = "--disable-introspection "
25EXTRA_OEMESON_prepend_class-native = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} " 25EXTRA_OEMESON:prepend:class-native = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} "
26EXTRA_OEMESON_prepend_class-nativesdk = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} " 26EXTRA_OEMESON:prepend:class-nativesdk = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} "
27 27
28# Generating introspection data depends on a combination of native and target 28# Generating introspection data depends on a combination of native and target
29# introspection tools, and qemu to run the target tools. 29# introspection tools, and qemu to run the target tools.
30DEPENDS_append_class-target = " gobject-introspection gobject-introspection-native qemu-native prelink-native" 30DEPENDS:append:class-target = " gobject-introspection gobject-introspection-native qemu-native prelink-native"
31 31
32# Even though introspection is disabled on -native, gobject-introspection package is still 32# Even though introspection is disabled on -native, gobject-introspection package is still
33# needed for m4 macros. 33# needed for m4 macros.
34DEPENDS_append_class-native = " gobject-introspection-native" 34DEPENDS:append:class-native = " gobject-introspection-native"
35DEPENDS_append_class-nativesdk = " gobject-introspection-native" 35DEPENDS:append:class-nativesdk = " gobject-introspection-native"
36 36
37# This is used by introspection tools to find .gir includes 37# This is used by introspection tools to find .gir includes
38export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}" 38export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
39 39
40do_configure_prepend_class-target () { 40do_configure:prepend:class-target () {
41 # introspection.m4 pre-packaged with upstream tarballs does not yet 41 # introspection.m4 pre-packaged with upstream tarballs does not yet
42 # have our fixes 42 # have our fixes
43 mkdir -p ${S}/m4 43 mkdir -p ${S}/m4
@@ -46,8 +46,8 @@ do_configure_prepend_class-target () {
46 46
47# .typelib files are needed at runtime and so they go to the main package (so 47# .typelib files are needed at runtime and so they go to the main package (so
48# they'll be together with libraries they support). 48# they'll be together with libraries they support).
49FILES_${PN}_append = " ${libdir}/girepository-*/*.typelib" 49FILES:${PN}:append = " ${libdir}/girepository-*/*.typelib"
50 50
51# .gir files go to dev package, as they're needed for developing (but not for 51# .gir files go to dev package, as they're needed for developing (but not for
52# running) things that depends on introspection. 52# running) things that depends on introspection.
53FILES_${PN}-dev_append = " ${datadir}/gir-*/*.gir ${libdir}/gir-*/*.gir" 53FILES:${PN}-dev:append = " ${datadir}/gir-*/*.gir ${libdir}/gir-*/*.gir"