Skip to contentSkip to conversation

websocketpp: new package

PATCH In review Manuel Groß 2 participants 5 messages Aug 13, 2016 – Sep 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 websocketpp: new package

This package provides websocketpp, a header only C++ library that implements websocket client and server functionality.

---
 package/Config.in                  |  1 +
 package/websocketpp/Config.in      | 12 ++++++++++++
 package/websocketpp/websocketpp.mk | 21 +++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/websocketpp/Config.in
 create mode 100644 package/websocketpp/websocketpp.mk
package/Config.in +1 -0
index 645fa29..e99850d 100644
@@ -1242,6 +1242,7 @@ menu "Networking"
 	source "package/sofia-sip/Config.in"
 	source "package/thrift/Config.in"
 	source "package/usbredir/Config.in"
+	source "package/websocketpp/Config.in"
 	source "package/wvstreams/Config.in"
 	source "package/zeromq/Config.in"
 	source "package/zmqpp/Config.in"
package/websocketpp/Config.in new file +12 -0
new file mode 100644
index 0000000..2b24b0d
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_WEBSOCKETPP
+	bool "websocketpp"
+	help
+	  WebSocket++ is a header only C++ library that implements RFC6455 The
+	  WebSocket Protocol. It allows integrating WebSocket client and server
+	  functionality into C++ programs. It uses interchangeable network
+	  transport modules including one based on raw char buffers, one based
+	  on C++ iostreams, and one based on Asio (either via Boost or
+	  standalone). End users can write additional transport policies to
+	  support other networking or event libraries as needed.
+
+	  http://www.zaphoyd.com/websocketpp/
package/websocketpp/websocketpp.mk new file +21 -0
new file mode 100644
index 0000000..00f451f
@@ -0,0 +1,21 @@
+################################################################################
+#
+## websocketpp
+#
+#################################################################################
+
+WEBSOCKETPP_VERSION = 0.7.0
+WEBSOCKETPP_SITE = $(call github,zaphoyd,websocketpp,$(WEBSOCKETPP_VERSION))
+WEBSOCKETPP_INSTALL_STAGING = YES
+WEBSOCKETPP_LICENSE = BSD or MIT
+WEBSOCKETPP_LICENSE_FILES = COPYING
+
+WEBSOCKETPP_VERSION_CONF_OPTS = \
+	CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+	LDFLAGS="$(TARGET_LDFLAGS)"
+
+define WEBSOCKETPP_INSTALL_STAGING_CMDS
+	cp -vR $(@D)/websocketpp $(STAGING_DIR)/usr/include/websocketpp
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.9.2
#1 lore raw

[Buildroot] Signed-off patch

Sorry, I forgot to sign off the patch. This one is.

#2 lore raw

PATCH 1/1 websocketpp: new package

This package provides websocketpp, a header only C++ library that implements websocket client and server functionality.

---
 package/Config.in                  |  1 +
 package/websocketpp/Config.in      | 12 ++++++++++++
 package/websocketpp/websocketpp.mk | 21 +++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/websocketpp/Config.in
 create mode 100644 package/websocketpp/websocketpp.mk
package/Config.in +1 -0
index 645fa29..e99850d 100644
@@ -1242,6 +1242,7 @@ menu "Networking"
 	source "package/sofia-sip/Config.in"
 	source "package/thrift/Config.in"
 	source "package/usbredir/Config.in"
+	source "package/websocketpp/Config.in"
 	source "package/wvstreams/Config.in"
 	source "package/zeromq/Config.in"
 	source "package/zmqpp/Config.in"
package/websocketpp/Config.in new file +12 -0
new file mode 100644
index 0000000..2b24b0d
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_WEBSOCKETPP
+	bool "websocketpp"
+	help
+	  WebSocket++ is a header only C++ library that implements RFC6455 The
+	  WebSocket Protocol. It allows integrating WebSocket client and server
+	  functionality into C++ programs. It uses interchangeable network
+	  transport modules including one based on raw char buffers, one based
+	  on C++ iostreams, and one based on Asio (either via Boost or
+	  standalone). End users can write additional transport policies to
+	  support other networking or event libraries as needed.
+
+	  http://www.zaphoyd.com/websocketpp/
package/websocketpp/websocketpp.mk new file +21 -0
new file mode 100644
index 0000000..00f451f
@@ -0,0 +1,21 @@
+################################################################################
+#
+## websocketpp
+#
+#################################################################################
+
+WEBSOCKETPP_VERSION = 0.7.0
+WEBSOCKETPP_SITE = $(call github,zaphoyd,websocketpp,$(WEBSOCKETPP_VERSION))
+WEBSOCKETPP_INSTALL_STAGING = YES
+WEBSOCKETPP_LICENSE = BSD or MIT
+WEBSOCKETPP_LICENSE_FILES = COPYING
+
+WEBSOCKETPP_VERSION_CONF_OPTS = \
+	CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+	LDFLAGS="$(TARGET_LDFLAGS)"
+
+define WEBSOCKETPP_INSTALL_STAGING_CMDS
+	cp -vR $(@D)/websocketpp $(STAGING_DIR)/usr/include/websocketpp
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.9.3
#3 lore raw

PATCH 1/1 websocketpp: new package

Hi Manuel,

Le 16/08/2016 ? 07:35, Manuel Gro? a ?crit :

Quoted 1 line

This package provides websocketpp, a header only C++ library that implements websocket client and server functionality.

Thanks for this contribution!

There is another patch submitted by Pieter De Gendt for websocketpp:
http://patchwork.ozlabs.org/patch/665214/
It would be great if you can review and test it.

Quoted 28 lines
---
 package/Config.in                  |  1 +
 package/websocketpp/Config.in      | 12 ++++++++++++
 package/websocketpp/websocketpp.mk | 21 +++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/websocketpp/Config.in
 create mode 100644 package/websocketpp/websocketpp.mk
package/Config.in +1 -0
index 645fa29..e99850d 100644
@@ -1242,6 +1242,7 @@ menu "Networking"
 	source "package/sofia-sip/Config.in"
 	source "package/thrift/Config.in"
 	source "package/usbredir/Config.in"
+	source "package/websocketpp/Config.in"
 	source "package/wvstreams/Config.in"
 	source "package/zeromq/Config.in"
 	source "package/zmqpp/Config.in"
package/websocketpp/Config.in new file +0 -0
new file mode 100644
index 0000000..2b24b0d

package/websocketpp/Config.in line 2

Quoted 2 lines
package/websocketpp/Config.in new file +2 -0
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_WEBSOCKETPP
+	bool "websocketpp"

No dependency at all ?
It seems at least boost package is needed.

Quoted 19 lines
package/websocketpp/Config.in new file +10 -0
+	help
+	  WebSocket++ is a header only C++ library that implements RFC6455 The
+	  WebSocket Protocol. It allows integrating WebSocket client and server
+	  functionality into C++ programs. It uses interchangeable network
+	  transport modules including one based on raw char buffers, one based
+	  on C++ iostreams, and one based on Asio (either via Boost or
+	  standalone). End users can write additional transport policies to
+	  support other networking or event libraries as needed.
+
+	  http://www.zaphoyd.com/websocketpp/
package/websocketpp/websocketpp.mk new file +3 -0
new file mode 100644
index 0000000..00f451f
@@ -0,0 +1,21 @@
+################################################################################
+#
+## websocketpp

package/websocketpp/websocketpp.mk line 13

Quoted 10 lines
package/websocketpp/websocketpp.mk new file +10 -0
+#
+#################################################################################
+
+WEBSOCKETPP_VERSION = 0.7.0
+WEBSOCKETPP_SITE = $(call github,zaphoyd,websocketpp,$(WEBSOCKETPP_VERSION))
+WEBSOCKETPP_INSTALL_STAGING = YES
+WEBSOCKETPP_LICENSE = BSD or MIT
+WEBSOCKETPP_LICENSE_FILES = COPYING
+
+WEBSOCKETPP_VERSION_CONF_OPTS = \
               ^^^^^^^

Typo here, so this variable is not used during the build.

package/websocketpp/websocketpp.mk line 21

Quoted 8 lines
package/websocketpp/websocketpp.mk new file +8 -0
+	CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+	LDFLAGS="$(TARGET_LDFLAGS)"
+
+define WEBSOCKETPP_INSTALL_STAGING_CMDS
+	cp -vR $(@D)/websocketpp $(STAGING_DIR)/usr/include/websocketpp
+endef
+
+$(eval $(generic-package))

websocketpp has a CMake build system, so it's recommended to use it.

Since we have another patch for websocketpp, I'll mark it "Superseded" in the patchwork.

Best regards,
Romain

Quoted 1 line
#4 lore raw

PATCH 1/1 websocketpp: new package

Hi Romain,

Quoted 9 lines · On Sat, 3 Sep 2016 18:53:39 +0200 Romain Naour <[email protected]> wrote:

Le 16/08/2016 ? 07:35, Manuel Gro? a ?crit :

Quoted 2 lines

This package provides websocketpp, a header only C++ library that implements websocket client and server functionality.

Thanks for this contribution!

There is another patch submitted by Pieter De Gendt for websocketpp:
http://patchwork.ozlabs.org/patch/665214/
It would be great if you can review and test it.

I had a look and also read the subsequent conversation on this list. The proposed changes already exceed my insight into the package. I just need it for a proprietary package I use, and for that I can include it as simple as in my patch.

I'll follow the changes to that patch, but I'm afraid I won't be very helpful.

Signature · 9 lines
Gr??e/Regards
Manuel Gro?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160917/0a0cf1a3/attachment-0001.asc>