diff options
author | jackiechen1985 <xiaobo.chen@tieto.com> | 2019-05-19 12:35:28 +0800 |
---|---|---|
committer | Junfeng Wang <drenfong.wang@intel.com> | 2019-05-22 04:37:38 +0000 |
commit | ce1a0daa15be4c3b7a3df64ea57ad231664e700f (patch) | |
tree | fdb1fac57156ebc6e12e8ce9cd7942a8f4023c03 /src/plugins/CMakeLists.txt | |
parent | aeb421c7219178ac464e8a2e62b35772a08a2c1c (diff) |
Introduce a new registration mechanism to sweetcomb.
Sweetcomb plugins register for various [initialization] events
by placing structures and __attribute__((constructor)) functions
into the library. When sysrepo plugin is initializing, the framework
walks constructor-generated singly-linked structure lists, calls the
indicated functions.
Change-Id: I0cb078391f2662e4f6dd08c1a383173f203adf2a
Signed-off-by: jackiechen1985 <xiaobo.chen@tieto.com>
Diffstat (limited to 'src/plugins/CMakeLists.txt')
-rw-r--r-- | src/plugins/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index a07ae60..ce09682 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -53,10 +53,13 @@ set(CMAKE_C_FLAGS_DEBUG "-Wall -Wextra -std=gnu99 -g -O0 ${RIGOROUS_C_FLAGS}") #NDEBUG to skip assert checks set(CMAKE_C_FLAGS_RELEASE "-Wall -Wextra -std=gnu99 -DNDEBUG -O2 ${RIGOROUS_C_FLAGS}") +# add plugin include directories +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + # plugins sources set(PLUGINS_SOURCES + sc_init.c sc_plugins.c - sc_model.c ietf/ietf_interface.c ietf/ietf_nat.c openconfig/openconfig_interfaces.c |