move api and create dependent option
Move the C++ api files under a new subdirectory.
Use CMAKE_DEPENDENT_OPTION to enforce sdt->cpp_api relationship.
Since linking .a into a .so can cause global symbols to be dropped, add
a helper file to force exported symbols to be retained (link_all.cc).
This problem doesn't exist for building the static cpp examples.
Signed-off-by:
Brenden Blanco <bblanco@gmail.com>
Showing
- CMakeLists.txt 1 addition, 0 deletionsCMakeLists.txt
- examples/cpp/CMakeLists.txt 1 addition, 0 deletionsexamples/cpp/CMakeLists.txt
- src/cc/CMakeLists.txt 11 additions, 5 deletionssrc/cc/CMakeLists.txt
- src/cc/api/BPF.cc 0 additions, 0 deletionssrc/cc/api/BPF.cc
- src/cc/api/BPF.h 0 additions, 0 deletionssrc/cc/api/BPF.h
- src/cc/api/BPFTable.cc 0 additions, 0 deletionssrc/cc/api/BPFTable.cc
- src/cc/api/BPFTable.h 0 additions, 0 deletionssrc/cc/api/BPFTable.h
- src/cc/api/CMakeLists.txt 3 additions, 0 deletionssrc/cc/api/CMakeLists.txt
- src/cc/link_all.cc 21 additions, 0 deletionssrc/cc/link_all.cc
- tests/cc/CMakeLists.txt 1 addition, 0 deletionstests/cc/CMakeLists.txt
File moved
File moved
File moved
File moved
src/cc/api/CMakeLists.txt
0 → 100644
src/cc/link_all.cc
0 → 100644
Please register or sign in to comment