* [Buildroot] [PATCH] rapidjson: new package
@ 2013-03-28 12:15 spdawson at gmail.com
2013-03-28 13:15 ` Thomas Petazzoni
2013-04-21 21:29 ` Peter Korsgaard
0 siblings, 2 replies; 5+ messages in thread
From: spdawson at gmail.com @ 2013-03-28 12:15 UTC (permalink / raw)
To: buildroot
From: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
package/Config.in | 1 +
package/rapidjson/Config.in | 6 ++++++
package/rapidjson/rapidjson.mk | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 41 insertions(+)
create mode 100644 package/rapidjson/Config.in
create mode 100644 package/rapidjson/rapidjson.mk
diff --git a/package/Config.in b/package/Config.in
index 463d1b9..3bd7844 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -615,6 +615,7 @@ source "package/libxml2/Config.in"
source "package/libxslt/Config.in"
source "package/libyaml/Config.in"
source "package/mxml/Config.in"
+source "package/rapidjson/Config.in"
source "package/xerces/Config.in"
source "package/yajl/Config.in"
endmenu
diff --git a/package/rapidjson/Config.in b/package/rapidjson/Config.in
new file mode 100644
index 0000000..d442797
--- /dev/null
+++ b/package/rapidjson/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_RAPIDJSON
+ bool "rapidjson"
+ help
+ A fast JSON parser/generator for C++ with both SAX/DOM style API.
+
+ https://code.google.com/p/rapidjson/
diff --git a/package/rapidjson/rapidjson.mk b/package/rapidjson/rapidjson.mk
new file mode 100644
index 0000000..cc260e9
--- /dev/null
+++ b/package/rapidjson/rapidjson.mk
@@ -0,0 +1,34 @@
+#############################################################
+#
+# rapidjson
+#
+#############################################################
+
+RAPIDJSON_VERSION = 0.11
+RAPIDJSON_SOURCE = rapidjson-$(RAPIDJSON_VERSION).zip
+RAPIDJSON_SITE = http://rapidjson.googlecode.com/files
+RAPIDJSON_LICENSE = MIT
+RAPIDJSON_LICENSE_FILES = license.txt
+RAPIDJSON_INSTALL_TARGET = NO
+RAPIDJSON_INSTALL_STAGING = YES
+
+define RAPIDJSON_EXTRACT_CMDS
+ unzip -d $(@D) $(DL_DIR)/$(RAPIDJSON_SOURCE)
+ mv $(@D)/rapidjson/* $(@D)
+ $(RM) -r $(@D)/rapidjson
+endef
+
+define RAPIDJSON_INSTALL_STAGING_CMDS
+ $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson
+ $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/internal
+ $(INSTALL) -m 0644 $(@D)/include/rapidjson/*.h \
+ $(STAGING_DIR)/usr/include/rapidjson
+ $(INSTALL) -m 0644 $(@D)/include/rapidjson/internal/*.h \
+ $(STAGING_DIR)/usr/include/rapidjson/internal
+endef
+
+define RAPIDJSON_UNINSTALL_STAGING_CMDS
+ $(RM) -r $(STAGING_DIR)/usr/include/rapidjson
+endef
+
+$(eval $(generic-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] rapidjson: new package
2013-03-28 12:15 [Buildroot] [PATCH] rapidjson: new package spdawson at gmail.com
@ 2013-03-28 13:15 ` Thomas Petazzoni
2013-03-28 13:26 ` Simon Dawson
2013-04-21 21:29 ` Peter Korsgaard
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2013-03-28 13:15 UTC (permalink / raw)
To: buildroot
Simon,
On Thu, 28 Mar 2013 12:15:19 +0000, spdawson at gmail.com wrote:
> diff --git a/package/rapidjson/rapidjson.mk b/package/rapidjson/rapidjson.mk
> new file mode 100644
> index 0000000..cc260e9
> --- /dev/null
> +++ b/package/rapidjson/rapidjson.mk
> @@ -0,0 +1,34 @@
> +#############################################################
> +#
> +# rapidjson
> +#
> +#############################################################
> +
> +RAPIDJSON_VERSION = 0.11
> +RAPIDJSON_SOURCE = rapidjson-$(RAPIDJSON_VERSION).zip
> +RAPIDJSON_SITE = http://rapidjson.googlecode.com/files
> +RAPIDJSON_LICENSE = MIT
> +RAPIDJSON_LICENSE_FILES = license.txt
> +RAPIDJSON_INSTALL_TARGET = NO
> +RAPIDJSON_INSTALL_STAGING = YES
How does this thing work if you install only things in staging? Is it a
code generator that runs on the host? And if so, shouldn't some stuff
be installed in $(HOST_DIR) ?
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] rapidjson: new package
2013-03-28 13:15 ` Thomas Petazzoni
@ 2013-03-28 13:26 ` Simon Dawson
2013-03-28 13:33 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Simon Dawson @ 2013-03-28 13:26 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On 28 March 2013 13:15, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Simon,
>
>> +RAPIDJSON_INSTALL_TARGET = NO
>> +RAPIDJSON_INSTALL_STAGING = YES
>
> How does this thing work if you install only things in staging? Is it a
> code generator that runs on the host? And if so, shouldn't some stuff
> be installed in $(HOST_DIR) ?
Thanks for looking at this. It is a header-only library. That being
the case, should the headers also be installed under $(HOST_DIR)?
Simon.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] rapidjson: new package
2013-03-28 13:26 ` Simon Dawson
@ 2013-03-28 13:33 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2013-03-28 13:33 UTC (permalink / raw)
To: buildroot
Dear Simon Dawson,
On Thu, 28 Mar 2013 13:26:07 +0000, Simon Dawson wrote:
> > How does this thing work if you install only things in staging? Is
> > it a code generator that runs on the host? And if so, shouldn't
> > some stuff be installed in $(HOST_DIR) ?
>
> Thanks for looking at this. It is a header-only library. That being
> the case, should the headers also be installed under $(HOST_DIR)?
No, if it's a header only library, then what you've done is correct.
Thanks for the explanation!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] rapidjson: new package
2013-03-28 12:15 [Buildroot] [PATCH] rapidjson: new package spdawson at gmail.com
2013-03-28 13:15 ` Thomas Petazzoni
@ 2013-04-21 21:29 ` Peter Korsgaard
1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2013-04-21 21:29 UTC (permalink / raw)
To: buildroot
>>>>> "spdawson" == spdawson <spdawson@gmail.com> writes:
spdawson> From: Simon Dawson <spdawson@gmail.com>
spdawson> Signed-off-by: Simon Dawson <spdawson@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-21 21:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 12:15 [Buildroot] [PATCH] rapidjson: new package spdawson at gmail.com
2013-03-28 13:15 ` Thomas Petazzoni
2013-03-28 13:26 ` Simon Dawson
2013-03-28 13:33 ` Thomas Petazzoni
2013-04-21 21:29 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox