X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2FCMakeLists.txt;h=4f0d16bd568f4373b80b119f48b93c9874cfd335;hb=2af0e3a;hp=d5242e8806647da03bc225c884989a9c18387979;hpb=edc4387602eb935c6e1702a713f0a5665c12d467;p=vpp.git diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index d5242e88066..4f0d16bd568 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -44,7 +44,6 @@ set(VPPINFRA_SRCS cpu.c cuckoo_template.c elf.c - elf_clib.c elog.c error.c fheap.c @@ -57,9 +56,10 @@ set(VPPINFRA_SRCS macros.c maplog.c mhash.c + pcap.c + pmalloc.c pool.c ptclosure.c - qsort.c random.c random_buffer.c random_isaac.c @@ -84,8 +84,6 @@ set(VPPINFRA_SRCS vec.c vector.c zvec.c - linux/mem.c - linux/sysfs.c ) set(VPPINFRA_HEADERS @@ -138,8 +136,12 @@ set(VPPINFRA_HEADERS mheap_bootstrap.h mheap.h os.h + pcap.h + pcap_funcs.h pipeline.h + pmalloc.h pool.h + pmc.h ptclosure.h random_buffer.h random.h @@ -162,6 +164,7 @@ set(VPPINFRA_HEADERS tw_timer_template.c tw_timer_template.h types.h + atomics.h unix.h valgrind.h valloc.h @@ -181,6 +184,14 @@ set(VPPINFRA_HEADERS linux/sysfs.h ) +if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") + list(APPEND VPPINFRA_SRCS + elf_clib.c + linux/mem.c + linux/sysfs.c + ) +endif() + if(VPP_USE_DLMALLOC) list(APPEND VPPINFRA_SRCS @@ -221,6 +232,7 @@ if(VPP_BUILD_VPPINFRA_TESTS) longjmp macros maplog + pmalloc pool_iterate ptclosure random