VARIANT:=cyassl
endef
+define Package/libwebsockets-full
+ $(call Package/$(PKG_NAME)/Default)
+ TITLE += (Full - OpenSSL, libuv, plugins, CGI)
+ DEPENDS += +libopenssl +libuv
+ VARIANT:=full
+endef
+
ifeq ($(BUILD_VARIANT),openssl)
CMAKE_OPTIONS += -DLWS_OPENSSL_CLIENT_CERTS=/etc/ssl/certs
CMAKE_OPTIONS += -DLWS_OPENSSL_SUPPORT=ON
CMAKE_OPTIONS += -DLWS_CYASSL_INCLUDE_DIRS=$(STAGING_DIR)/usr/include
endif
+ifeq ($(BUILD_VARIANT),full)
+ CMAKE_OPTIONS += -DLWS_OPENSSL_CLIENT_CERTS=/etc/ssl/certs
+ CMAKE_OPTIONS += -DLWS_OPENSSL_SUPPORT=ON
+ CMAKE_OPTIONS += -DLWS_WITH_SSL=ON
+ CMAKE_OPTIONS += -DLWS_WITH_LIBUV=ON
+ CMAKE_OPTIONS += -DLWS_WITH_PLUGINS=ON
+ CMAKE_OPTIONS += -DLWS_WITH_SERVER_STATUS=ON
+ CMAKE_OPTIONS += -DLWS_WITH_ACCESS_LOG=ON
+ CMAKE_OPTIONS += -DLWS_WITH_CGI=ON
+endif
+
define Package/libwebsockets/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebsockets.so* $(1)/usr/lib/
Package/$(PKG_NAME)-cyassl/install = $(Package/$(PKG_NAME)/install)
Package/$(PKG_NAME)-openssl/install = $(Package/$(PKG_NAME)/install)
+Package/$(PKG_NAME)-full/install = $(Package/$(PKG_NAME)/install)
$(eval $(call BuildPackage,libwebsockets-openssl))
$(eval $(call BuildPackage,libwebsockets-cyassl))
+$(eval $(call BuildPackage,libwebsockets-full))