# See the License for the specific language governing permissions and
# limitations under the License.
+if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
+ message(WARNING "-- vppcom is currently only support on Linux - disabled")
+ return()
+endif()
+
##############################################################################
# vppcom shared library
##############################################################################
vcl_cfg.c
vcl_private.c
vcl_locked.c
+ vcl_sapi.c
LINK_LIBRARIES
vppinfra svm vlibmemoryclient rt pthread
api_headers
)
+option(LDP_HAS_GNU_SOURCE "LDP configured to use _GNU_SOURCE" ON)
+if (LDP_HAS_GNU_SOURCE)
+ add_compile_definitions(HAVE_GNU_SOURCE)
+endif(LDP_HAS_GNU_SOURCE)
+
add_vpp_library(vcl_ldpreload
SOURCES
ldp_socket_wrapper.c
vppcom.h
vcl_locked.h
ldp_socket_wrapper.h
-)
\ No newline at end of file
+)