make UBUS_UNIX_SOCKET configurable via cmake
this is mainly useful to have a single location to read the setting from, when it is used multiple times at build time (which it will in a following patch) :)
This commit is contained in:
parent
a15a09aed4
commit
29a2ed2f17
2 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,9 @@ OPTION(BUILD_LUA "build Lua plugin" ON)
|
||||||
OPTION(BUILD_EXAMPLES "build examples" ON)
|
OPTION(BUILD_EXAMPLES "build examples" ON)
|
||||||
|
|
||||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||||
|
SET(UBUS_UNIX_SOCKET "/var/run/ubus.sock")
|
||||||
|
|
||||||
|
ADD_DEFINITIONS( -DUBUS_UNIX_SOCKET="${UBUS_UNIX_SOCKET}")
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
INCLUDE_DIRECTORIES(/opt/local/include)
|
INCLUDE_DIRECTORIES(/opt/local/include)
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
#ifndef __UBUS_COMMON_H
|
#ifndef __UBUS_COMMON_H
|
||||||
#define __UBUS_COMMON_H
|
#define __UBUS_COMMON_H
|
||||||
|
|
||||||
#define UBUS_UNIX_SOCKET "/var/run/ubus.sock"
|
|
||||||
|
|
||||||
#define UBUS_SIGNATURE_METHOD (BLOBMSG_TYPE_LAST + 1)
|
#define UBUS_SIGNATURE_METHOD (BLOBMSG_TYPE_LAST + 1)
|
||||||
#define UBUS_SIGNATURE_END (BLOBMSG_TYPE_LAST + 2)
|
#define UBUS_SIGNATURE_END (BLOBMSG_TYPE_LAST + 2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue