X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2FCMakeLists.txt;h=26368493382cbb412ed7df048629cbfd554ee4bb;hb=a26373bda8aa66cebf03ac092c20fdf4b0a0f625;hp=d5242e8806647da03bc225c884989a9c18387979;hpb=edc4387602eb935c6e1702a713f0a5665c12d467;p=vpp.git diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index d5242e88066..26368493382 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 @@ -59,7 +58,6 @@ set(VPPINFRA_SRCS mhash.c pool.c ptclosure.c - qsort.c random.c random_buffer.c random_isaac.c @@ -84,8 +82,6 @@ set(VPPINFRA_SRCS vec.c vector.c zvec.c - linux/mem.c - linux/sysfs.c ) set(VPPINFRA_HEADERS @@ -140,6 +136,7 @@ set(VPPINFRA_HEADERS os.h pipeline.h pool.h + pmc.h ptclosure.h random_buffer.h random.h @@ -162,6 +159,7 @@ set(VPPINFRA_HEADERS tw_timer_template.c tw_timer_template.h types.h + atomics.h unix.h valgrind.h valloc.h @@ -181,6 +179,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