summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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