* [Buildroot] [PATCH v2 1/1] package/xerces: add enable network option
@ 2020-05-04 20:25 Jared Bents
2020-05-09 20:02 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Jared Bents @ 2020-05-04 20:25 UTC (permalink / raw)
To: buildroot
Update to add the option to compile xerces with network
enabled by default so it can be unselected to compile
without network support.
Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
--
v2: - updated change logic for enable network instead of
disable network
---
package/xerces/Config.in | 10 ++++++++++
package/xerces/xerces.mk | 4 ++++
2 files changed, 14 insertions(+)
diff --git a/package/xerces/Config.in b/package/xerces/Config.in
index 2edc4346b5..a9b102bd5e 100644
--- a/package/xerces/Config.in
+++ b/package/xerces/Config.in
@@ -6,5 +6,15 @@ config BR2_PACKAGE_XERCES
http://xerces.apache.org/xerces-c/
+if BR2_PACKAGE_XERCES
+
+config BR2_PACKAGE_XERCES_ENABLE_NETWORK
+ bool "Enable network support"
+ default y
+ help
+ Enable network support in xerces
+
+endif
+
comment "xerces-c++ needs a toolchain w/ C++, wchar"
depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR)
diff --git a/package/xerces/xerces.mk b/package/xerces/xerces.mk
index c75a8b0d35..a73537fb3e 100644
--- a/package/xerces/xerces.mk
+++ b/package/xerces/xerces.mk
@@ -31,12 +31,16 @@ XERCES_CONF_ENV += LIBS=-liconv
XERCES_DEPENDENCIES += libiconv
endif
+ifeq ($(BR2_PACKAGE_XERCES_ENABLE_NETWORK),y)
ifeq ($(BR2_PACKAGE_LIBCURL),y)
XERCES_CONF_OPTS += -Dnetwork-accessor=curl
XERCES_DEPENDENCIES += libcurl
else
XERCES_CONF_OPTS += -Dnetwork-accessor=socket
endif
+else
+XERCES_CONF_OPTS += -Dnetwork:BOOL=OFF
+endif
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
XERCES_CONF_OPTS += -Dthreads=ON
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/xerces: add enable network option
2020-05-04 20:25 [Buildroot] [PATCH v2 1/1] package/xerces: add enable network option Jared Bents
@ 2020-05-09 20:02 ` Thomas Petazzoni
2020-05-20 22:30 ` Matthew Weber
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2020-05-09 20:02 UTC (permalink / raw)
To: buildroot
On Mon, 4 May 2020 15:25:58 -0500
Jared Bents <jared.bents@rockwellcollins.com> wrote:
> Update to add the option to compile xerces with network
> enabled by default so it can be unselected to compile
> without network support.
>
> Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
Could you expand the commit log with an explantion of the *why* we want
to add this new option? Size impact? If so, what is the size impact?
Some other reason?
> +ifeq ($(BR2_PACKAGE_XERCES_ENABLE_NETWORK),y)
> ifeq ($(BR2_PACKAGE_LIBCURL),y)
> XERCES_CONF_OPTS += -Dnetwork-accessor=curl
> XERCES_DEPENDENCIES += libcurl
> else
> XERCES_CONF_OPTS += -Dnetwork-accessor=socket
> endif
> +else
> +XERCES_CONF_OPTS += -Dnetwork:BOOL=OFF
We don't use this :BOOL type specification anywhere in CMake packages
in Buildroot, could you keep it consistent with the rest of the package?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/xerces: add enable network option
2020-05-09 20:02 ` Thomas Petazzoni
@ 2020-05-20 22:30 ` Matthew Weber
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Weber @ 2020-05-20 22:30 UTC (permalink / raw)
To: buildroot
Thomas,
On Sat, May 9, 2020 at 3:05 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Mon, 4 May 2020 15:25:58 -0500
> Jared Bents <jared.bents@rockwellcollins.com> wrote:
>
> > Update to add the option to compile xerces with network
> > enabled by default so it can be unselected to compile
> > without network support.
> >
> > Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
>
> Could you expand the commit log with an explantion of the *why* we want
> to add this new option? Size impact? If so, what is the size impact?
> Some other reason?
>
> > +ifeq ($(BR2_PACKAGE_XERCES_ENABLE_NETWORK),y)
> > ifeq ($(BR2_PACKAGE_LIBCURL),y)
> > XERCES_CONF_OPTS += -Dnetwork-accessor=curl
> > XERCES_DEPENDENCIES += libcurl
> > else
> > XERCES_CONF_OPTS += -Dnetwork-accessor=socket
> > endif
> > +else
> > +XERCES_CONF_OPTS += -Dnetwork:BOOL=OFF
>
> We don't use this :BOOL type specification anywhere in CMake packages
> in Buildroot, could you keep it consistent with the rest of the package?
v3
http://patchwork.ozlabs.org/project/buildroot/patch/20200520222850.55150-1-matthew.weber at rockwellcollins.com/
Best Regards,
Matt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-20 22:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-04 20:25 [Buildroot] [PATCH v2 1/1] package/xerces: add enable network option Jared Bents
2020-05-09 20:02 ` Thomas Petazzoni
2020-05-20 22:30 ` Matthew Weber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.