[LLD][COFF] Separate EC and native exports for ARM64X (#123652)
[llvm-project.git] / libc / src / spawn / CMakeLists.txt
blob11621da782ed127a5471ffd41af9a83435c6397f
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
3 endif()
5 add_header_library(
6   file_actions
7   HDRS
8     file_actions.h
9   DEPENDS
10     libc.include.spawn
13 add_entrypoint_object(
14   posix_spawn_file_actions_init
15   SRCS
16     posix_spawn_file_actions_init.cpp
17   HDRS
18     posix_spawn_file_actions_init.h
19   DEPENDS
20     libc.include.spawn
23 add_entrypoint_object(
24   posix_spawn_file_actions_destroy
25   SRCS
26     posix_spawn_file_actions_destroy.cpp
27   HDRS
28     posix_spawn_file_actions_destroy.h
29   DEPENDS
30     .file_actions
31     libc.include.spawn
32     libc.src.__support.CPP.new
33     libc.src.errno.errno
36 add_entrypoint_object(
37   posix_spawn_file_actions_adddup2
38   SRCS
39     posix_spawn_file_actions_adddup2.cpp
40   HDRS
41     posix_spawn_file_actions_adddup2.h
42   DEPENDS
43     .file_actions
44     libc.include.spawn
45     libc.src.__support.CPP.new
46     libc.src.errno.errno
49 add_entrypoint_object(
50   posix_spawn_file_actions_addopen
51   SRCS
52     posix_spawn_file_actions_addopen.cpp
53   HDRS
54     posix_spawn_file_actions_addopen.h
55   DEPENDS
56     .file_actions
57     libc.include.spawn
58     libc.src.__support.CPP.new
59     libc.src.errno.errno
62 add_entrypoint_object(
63   posix_spawn_file_actions_addclose
64   SRCS
65     posix_spawn_file_actions_addclose.cpp
66   HDRS
67     posix_spawn_file_actions_addclose.h
68   DEPENDS
69     .file_actions
70     libc.include.spawn
71     libc.src.__support.CPP.new
72     libc.src.errno.errno
75 add_entrypoint_object(
76   posix_spawn
77   ALIAS
78   DEPENDS
79     .${LIBC_TARGET_OS}.posix_spawn