82 lines · plain
1if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})2 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})3endif()4 5add_header_library(6 file_actions7 HDRS8 file_actions.h9 DEPENDS10 libc.hdr.stdint_proxy11 libc.include.spawn12)13 14add_entrypoint_object(15 posix_spawn_file_actions_init16 SRCS17 posix_spawn_file_actions_init.cpp18 HDRS19 posix_spawn_file_actions_init.h20 DEPENDS21 libc.include.spawn22)23 24add_entrypoint_object(25 posix_spawn_file_actions_destroy26 SRCS27 posix_spawn_file_actions_destroy.cpp28 HDRS29 posix_spawn_file_actions_destroy.h30 DEPENDS31 .file_actions32 libc.include.spawn33 libc.src.__support.CPP.new34 libc.src.errno.errno35)36 37add_entrypoint_object(38 posix_spawn_file_actions_adddup239 SRCS40 posix_spawn_file_actions_adddup2.cpp41 HDRS42 posix_spawn_file_actions_adddup2.h43 DEPENDS44 .file_actions45 libc.include.spawn46 libc.src.__support.CPP.new47 libc.src.errno.errno48)49 50add_entrypoint_object(51 posix_spawn_file_actions_addopen52 SRCS53 posix_spawn_file_actions_addopen.cpp54 HDRS55 posix_spawn_file_actions_addopen.h56 DEPENDS57 .file_actions58 libc.include.spawn59 libc.src.__support.CPP.new60 libc.src.errno.errno61)62 63add_entrypoint_object(64 posix_spawn_file_actions_addclose65 SRCS66 posix_spawn_file_actions_addclose.cpp67 HDRS68 posix_spawn_file_actions_addclose.h69 DEPENDS70 .file_actions71 libc.include.spawn72 libc.src.__support.CPP.new73 libc.src.errno.errno74)75 76add_entrypoint_object(77 posix_spawn78 ALIAS79 DEPENDS80 .${LIBC_TARGET_OS}.posix_spawn81)82