From: Jarkko Sakkinen <jarkko@kernel.org>
To: buildroot@buildroot.org
Cc: Jarkko Sakkinen <jarkko@kernel.org>,
Stefan Berger <stefanb@linux.ibm.com>
Subject: [Buildroot] [PATCH v2 1/3] package/json-glib: add host build
Date: Fri, 17 May 2024 20:31:38 +0300 [thread overview]
Message-ID: <20240517173140.24531-2-jarkko@kernel.org> (raw)
In-Reply-To: <20240517173140.24531-1-jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
---
v2:
- Disable GOI and NLS for the host.
- Add the missing host config.
---
package/json-glib/Config.in | 9 +++++++++
package/json-glib/json-glib.mk | 5 +++++
2 files changed, 14 insertions(+)
diff --git a/package/json-glib/Config.in b/package/json-glib/Config.in
index 9df03d924a..ebf697bc64 100644
--- a/package/json-glib/Config.in
+++ b/package/json-glib/Config.in
@@ -11,6 +11,15 @@ config BR2_PACKAGE_JSON_GLIB
https://live.gnome.org/JsonGlib/
+config BR2_HOST_PACKAGE_JSON_GLIB
+ bool "json-glib"
+ help
+ JSON-GLib is a library providing serialization and
+ deserialization support for the JavaScript Object Notation
+ (JSON) format described by RFC 4627.
+
+ https://live.gnome.org/JsonGlib/
+
comment "json-glib needs a toolchain w/ wchar, threads"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/json-glib/json-glib.mk b/package/json-glib/json-glib.mk
index cd53f24cee..a6bc53b823 100644
--- a/package/json-glib/json-glib.mk
+++ b/package/json-glib/json-glib.mk
@@ -18,6 +18,10 @@ JSON_GLIB_DEPENDENCIES = \
host-pkgconf \
libglib2
+HOST_JSON_GLIB_DEPENDENCIES = \
+ host-pkgconf \
+ host-libglib2
+
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
JSON_GLIB_CONF_OPTS += -Dintrospection=enabled
JSON_GLIB_DEPENDENCIES += gobject-introspection
@@ -34,3 +38,4 @@ endif
JSON_GLIB_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
$(eval $(meson-package))
+$(eval $(host-meson-package))
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-05-17 17:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-17 17:31 [Buildroot] [PATCH v2 0/3] swtpm and libtpms host packages Jarkko Sakkinen
2024-05-17 17:31 ` Jarkko Sakkinen [this message]
2024-05-17 18:35 ` [Buildroot] [PATCH v2 1/3] package/json-glib: add host build Yann E. MORIN
2024-05-17 17:31 ` [Buildroot] [PATCH v2 2/3] package/libtpms: add host package Jarkko Sakkinen
2024-05-17 18:44 ` Yann E. MORIN
2024-05-17 17:31 ` [Buildroot] [PATCH v2 3/3] package/swtpm: " Jarkko Sakkinen
2024-05-17 19:23 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240517173140.24531-2-jarkko@kernel.org \
--to=jarkko@kernel.org \
--cc=buildroot@buildroot.org \
--cc=stefanb@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox