import uhttpd-rest-api

This commit is contained in:
jbnadal
2018-04-24 17:36:36 +02:00
parent 60da11013f
commit 551d8f5769
11 changed files with 91 additions and 82 deletions

View File

@@ -0,0 +1,10 @@
menuconfig BR2_PACKAGE_UHTTPD_REST_API_PLUGIN
bool "uhttpd rest api plugin"
select BR2_PACKAGE_UHTTPD_3P
select BR2_PACKAGE_UBUS
select BR2_PACKAGE_JSON_C
select BR2_PACKAGE_LIBFMT
select BR2_PACKAGE_LIBUBUS_CPP
default n
help
Enable the rest api uhttpd plugin.

View File

@@ -0,0 +1,19 @@
################################################################################
#
# UHTTPD REST API PLUGIN
#
################################################################################
UHTTPD_REST_API_PLUGIN_VERSION:= 1.0.0
UHTTPD_REST_API_PLUGIN_SITE = $(TOPDIR)/../../src/plugins/uhttpd/uhttpd-rest-api/builders/cmake
UHTTPD_REST_API_PLUGIN_SITE_METHOD = local
UHTTPD_REST_API_PLUGIN_INSTALL_TARGET = YES
UHTTPD_REST_API_PLUGIN_INSTALL_STAGING = YES
UHTTPD_REST_API_PLUGIN_DEPENDENCIES = uhttpd-3p ubus json-c libfmt libubus-cpp
UHTTPD_REST_API_PLUGIN_CONF_OPTS += -DworkspaceRoot=$(TOPDIR)/../.. -DMODULE_PATH=$(TOPDIR)/../../bsp/cmake-modules -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
$(eval $(cmake-package))