-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
16 lines (12 loc) · 968 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required (VERSION 2.6)
project(libc-shim LANGUAGES CXX)
add_library(libc-shim src/common.cpp src/pthreads.cpp src/pthreads.h src/meta.h src/common.h src/semaphore.cpp src/semaphore.h src/network.cpp src/network.h src/dirent.cpp src/dirent.h src/cstdio.cpp src/cstdio.h src/errno.cpp src/errno.h src/ctype_data.h src/ctype_data.cpp src/bionic/strlcpy.cpp src/stat.cpp src/stat.h src/file_misc.cpp src/file_misc.h src/sysconf.cpp src/sysconf.h src/system_properties.cpp src/system_properties.h src/iorewrite.cpp src/iorewrite.h src/statvfs.h src/statvfs.cpp src/sched.h src/sched.cpp)
target_include_directories(libc-shim PUBLIC include/)
target_link_libraries(libc-shim logger)
if(APPLE OR FREEBSD)
target_link_libraries(libc-shim epoll-shim)
endif()
if(APPLE AND NOT IS_64BIT)
target_sources(libc-shim PUBLIC src/bionic/arch-x86/setjmp.S src/bionic/setjmp_cookie.c)
target_compile_definitions(libc-shim PRIVATE USE_BIONIC_SETJMP)
endif()