Merge Ubus with the 2016.02.26 version.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
PROJECT(ubus C)
|
||||
# -Os
|
||||
ADD_DEFINITIONS(-Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
|
||||
ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
|
||||
|
||||
OPTION(BUILD_LUA "build Lua plugin" OFF)
|
||||
OPTION(BUILD_EXAMPLES "build examples" OFF)
|
||||
OPTION(ENABLE_SYSTEMD "systemd support" OFF)
|
||||
OPTION(BUILD_LUA "build Lua plugin" ON)
|
||||
OPTION(BUILD_EXAMPLES "build examples" ON)
|
||||
OPTION(ENABLE_SYSTEMD "systemd support" ON)
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||
SET(UBUS_UNIX_SOCKET "/var/run/ubus.sock")
|
||||
@@ -20,11 +19,11 @@ IF(APPLE)
|
||||
LINK_DIRECTORIES(/opt/local/lib)
|
||||
ENDIF()
|
||||
|
||||
ADD_LIBRARY(ubus SHARED libubus.c libubus-io.c libubus-obj.c libubus-sub.c libubus-req.c)
|
||||
ADD_LIBRARY(ubus SHARED libubus.c libubus-io.c libubus-obj.c libubus-sub.c libubus-req.c libubus-acl.c)
|
||||
TARGET_LINK_LIBRARIES(ubus ubox)
|
||||
|
||||
ADD_EXECUTABLE(ubusd ubusd.c ubusd_id.c ubusd_obj.c ubusd_proto.c ubusd_event.c)
|
||||
TARGET_LINK_LIBRARIES(ubusd ubox)
|
||||
ADD_EXECUTABLE(ubusd ubusd.c ubusd_id.c ubusd_obj.c ubusd_proto.c ubusd_event.c ubusd_acl.c ubusd_monitor.c)
|
||||
TARGET_LINK_LIBRARIES(ubusd ubox blobmsg_json ${json})
|
||||
|
||||
find_library(json NAMES json-c json)
|
||||
ADD_EXECUTABLE(cli cli.c)
|
||||
|
||||
Reference in New Issue
Block a user