summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-03-13 00:37:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-18 11:12:26 +0000
commitd82c89a0d4b3fceaa9679118fd5ae14e9d559f5f (patch)
treeea8a53014f760044abcb1c348fdb026f35ba5b70 /meta/recipes-core/glib-2.0
parent02262c2a7b38c45a9e0ebb2dbfa53efae801c4d0 (diff)
downloadpoky-d82c89a0d4b3fceaa9679118fd5ae14e9d559f5f.tar.gz
glib-2.0: clean up EXTRA_OEMESON
Instead of spreading the ptest enabling over the recipe, just add a PACKAGECONFIG to enable the installed tests. Whether this is enabled respects PTEST_ENABLED by default, so it always disabled in native and nativesdk builds. This means we can remove the conditional dependency on dbus, all the conditional enabling of installed tests, and clean up EXTRA_OEMESON. (From OE-Core rev: 1e7c83c67c4a6e1ba61da5ffbf66dc0980624948) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0')
-rw-r--r--meta/recipes-core/glib-2.0/glib.inc13
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 3c2440db0e..6f0ec1ad2e 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -22,8 +22,7 @@ DEPENDS = "glib-2.0-native \
22 virtual/libintl \ 22 virtual/libintl \
23 virtual/libiconv \ 23 virtual/libiconv \
24 libffi \ 24 libffi \
25 zlib \ 25 zlib"
26 ${@bb.utils.contains('PTEST_ENABLED', '1', 'dbus', '', d)}"
27 26
28PACKAGES += "${PN}-codegen ${PN}-utils" 27PACKAGES += "${PN}-codegen ${PN}-utils"
29 28
@@ -43,19 +42,17 @@ unset _PYTHON_SYSCONFIGDATA_NAME
43 42
44S = "${WORKDIR}/glib-${PV}" 43S = "${WORKDIR}/glib-${PV}"
45 44
46PACKAGECONFIG ??= "system-pcre libmount" 45PACKAGECONFIG ??= "system-pcre libmount \
46 ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
47# To use the system pcre it must be configured with --enable-unicode-properties 47# To use the system pcre it must be configured with --enable-unicode-properties
48PACKAGECONFIG[system-pcre] = "-Dinternal_pcre=false,-Dinternal_pcre=true,libpcre" 48PACKAGECONFIG[system-pcre] = "-Dinternal_pcre=false,-Dinternal_pcre=true,libpcre"
49PACKAGECONFIG[libmount] = "-Dlibmount=true,-Dlibmount=false,util-linux" 49PACKAGECONFIG[libmount] = "-Dlibmount=true,-Dlibmount=false,util-linux"
50PACKAGECONFIG[manpages] = "-Dman=true, -Dman=false, libxslt-native xmlto-native" 50PACKAGECONFIG[manpages] = "-Dman=true, -Dman=false, libxslt-native xmlto-native"
51# libelf is auto-detected without a configuration option 51# libelf is auto-detected without a configuration option
52PACKAGECONFIG[libelf] = ",,elfutils" 52PACKAGECONFIG[libelf] = ",,elfutils"
53PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false,dbus"
53 54
54CORECONF = "-Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=false" 55EXTRA_OEMESON = "-Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=false"
55
56EXTRA_OEMESON = "${CORECONF} ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dinstalled_tests=true', '-Dinstalled_tests=false', d)}"
57EXTRA_OEMESON_class-native = "${CORECONF} -Dinstalled_tests=false"
58EXTRA_OEMESON_class-nativesdk = "${CORECONF} -Dinstalled_tests=false"
59 56
60do_configure_prepend() { 57do_configure_prepend() {
61 sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in 58 sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in