1if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE}) 2 return() 3endif() 4 5add_subdirectory(${LIBC_TARGET_ARCHITECTURE}) 6 7add_object_library( 8 linux_util 9 SRCS 10 exit.cpp 11 fcntl.cpp 12 HDRS 13 io.h 14 syscall.h 15 DEPENDS 16 .${LIBC_TARGET_ARCHITECTURE}.linux_${LIBC_TARGET_ARCHITECTURE}_util 17 libc.src.__support.common 18 libc.src.__support.CPP.string_view 19 libc.src.errno.errno 20 libc.hdr.fcntl_macros 21 libc.hdr.types.struct_flock 22 libc.hdr.types.struct_flock64 23 libc.hdr.types.struct_f_owner_ex 24 libc.hdr.types.off_t 25) 26 27add_header_library( 28 vdso_sym 29 HDRS 30 vdso_sym.h 31 DEPENDS 32 libc.src.__support.common 33) 34 35add_object_library( 36 vdso 37 HDRS 38 vdso.h 39 SRCS 40 vdso.cpp 41 DEPENDS 42 .${LIBC_TARGET_ARCHITECTURE}.vdso 43 libc.src.__support.CPP.array 44 libc.src.__support.CPP.optional 45 libc.src.__support.CPP.string_view 46 libc.src.__support.threads.callonce 47 libc.src.__support.threads.linux.futex_word_type 48 libc.hdr.types.struct_timeval 49 libc.hdr.types.struct_timespec 50 libc.hdr.types.clockid_t 51 libc.hdr.types.time_t 52 libc.hdr.link_macros 53 libc.src.errno.errno 54 libc.src.sys.auxv.getauxval 55) 56