brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.2 KiB · b7444a4 Raw
409 lines · plain
1if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})2  add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})3endif()4 5add_entrypoint_object(6  _exit7  SRCS8    _exit.cpp9  HDRS10    _exit.h11  DEPENDS12    libc.include.unistd13    libc.src.__support.OSUtil.osutil14)15 16add_entrypoint_object(17  access18  ALIAS19  DEPENDS20    .${LIBC_TARGET_OS}.access21)22 23add_entrypoint_object(24  chdir25  ALIAS26  DEPENDS27    .${LIBC_TARGET_OS}.chdir28)29 30add_entrypoint_object(31  chown32  ALIAS33  DEPENDS34    .${LIBC_TARGET_OS}.chown35)36 37add_entrypoint_object(38  close39  ALIAS40  DEPENDS41    .${LIBC_TARGET_OS}.close42)43 44add_entrypoint_object(45  dup46  ALIAS47  DEPENDS48    .${LIBC_TARGET_OS}.dup49)50 51add_entrypoint_object(52  dup253  ALIAS54  DEPENDS55    .${LIBC_TARGET_OS}.dup256)57 58add_entrypoint_object(59  dup360  ALIAS61  DEPENDS62    .${LIBC_TARGET_OS}.dup363)64 65add_entrypoint_object(66  faccessat67  ALIAS68  DEPENDS69    .${LIBC_TARGET_OS}.faccessat70)71 72add_entrypoint_object(73  fchdir74  ALIAS75  DEPENDS76    .${LIBC_TARGET_OS}.fchdir77)78 79add_entrypoint_object(80  fchown81  ALIAS82  DEPENDS83    .${LIBC_TARGET_OS}.fchown84)85 86add_entrypoint_object(87  fork88  ALIAS89  DEPENDS90    .${LIBC_TARGET_OS}.fork91)92 93add_entrypoint_object(94  fpathconf95  ALIAS96  DEPENDS97    .${LIBC_TARGET_OS}.fpathconf98)99 100add_entrypoint_object(101  execv102  ALIAS103  DEPENDS104    .${LIBC_TARGET_OS}.execv105)106 107add_entrypoint_object(108  execve109  ALIAS110  DEPENDS111    .${LIBC_TARGET_OS}.execve112)113 114add_entrypoint_object(115  fsync116  ALIAS117  DEPENDS118    .${LIBC_TARGET_OS}.fsync119)120 121add_entrypoint_object(122  ftruncate123  ALIAS124  DEPENDS125    .${LIBC_TARGET_OS}.ftruncate126)127 128add_entrypoint_object(129  getcwd130  ALIAS131  DEPENDS132    .${LIBC_TARGET_OS}.getcwd133)134 135add_entrypoint_object(136  gethostname137  ALIAS138  DEPENDS139    .${LIBC_TARGET_OS}.gethostname140)141 142add_entrypoint_object(143  getpid144  ALIAS145  DEPENDS146    .${LIBC_TARGET_OS}.getpid147)148 149add_entrypoint_object(150  getppid151  ALIAS152  DEPENDS153    .${LIBC_TARGET_OS}.getppid154)155 156add_entrypoint_object(157  getsid158  ALIAS159  DEPENDS160    .${LIBC_TARGET_OS}.getsid161)162 163add_entrypoint_object(164  geteuid165  ALIAS166  DEPENDS167    .${LIBC_TARGET_OS}.geteuid168)169 170add_entrypoint_object(171  getuid172  ALIAS173  DEPENDS174    .${LIBC_TARGET_OS}.getuid175)176 177add_entrypoint_object(178  getgid179  ALIAS180  DEPENDS181    .${LIBC_TARGET_OS}.getgid182)183 184add_entrypoint_object(185  isatty186  ALIAS187  DEPENDS188    .${LIBC_TARGET_OS}.isatty189)190 191add_entrypoint_object(192  link193  ALIAS194  DEPENDS195    .${LIBC_TARGET_OS}.link196)197 198add_entrypoint_object(199  linkat200  ALIAS201  DEPENDS202    .${LIBC_TARGET_OS}.linkat203)204 205add_entrypoint_object(206  lseek207  ALIAS208  DEPENDS209    .${LIBC_TARGET_OS}.lseek210)211 212add_entrypoint_object(213  pathconf214  ALIAS215  DEPENDS216    .${LIBC_TARGET_OS}.pathconf217)218 219 220add_entrypoint_object(221  pipe222  ALIAS223  DEPENDS224    .${LIBC_TARGET_OS}.pipe225)226 227add_entrypoint_object(228  pipe2229  ALIAS230  DEPENDS231    .${LIBC_TARGET_OS}.pipe2232)233 234add_entrypoint_object(235  pread236  ALIAS237  DEPENDS238    .${LIBC_TARGET_OS}.pread239)240 241add_entrypoint_object(242  pwrite243  ALIAS244  DEPENDS245    .${LIBC_TARGET_OS}.pwrite246)247 248add_entrypoint_object(249  read250  ALIAS251  DEPENDS252    .${LIBC_TARGET_OS}.read253)254 255add_entrypoint_object(256  readlink257  ALIAS258  DEPENDS259    .${LIBC_TARGET_OS}.readlink260)261 262add_entrypoint_object(263  readlinkat264  ALIAS265  DEPENDS266    .${LIBC_TARGET_OS}.readlinkat267)268 269add_entrypoint_object(270  rmdir271  ALIAS272  DEPENDS273    .${LIBC_TARGET_OS}.rmdir274)275 276add_entrypoint_object(277  setsid278  ALIAS279  DEPENDS280    .${LIBC_TARGET_OS}.setsid281)282 283add_entrypoint_object(284  symlink285  ALIAS286  DEPENDS287    .${LIBC_TARGET_OS}.symlink288)289 290add_entrypoint_object(291  symlinkat292  ALIAS293  DEPENDS294    .${LIBC_TARGET_OS}.symlinkat295)296 297add_entrypoint_object(298  __llvm_libc_syscall299  ALIAS300  DEPENDS301    .${LIBC_TARGET_OS}.__llvm_libc_syscall302)303 304add_entrypoint_object(305  sysconf306  ALIAS307  DEPENDS308    .${LIBC_TARGET_OS}.sysconf309)310 311add_entrypoint_object(312  truncate313  ALIAS314  DEPENDS315    .${LIBC_TARGET_OS}.truncate316)317 318add_entrypoint_object(319  unlink320  ALIAS321  DEPENDS322    .${LIBC_TARGET_OS}.unlink323)324 325add_entrypoint_object(326  unlinkat327  ALIAS328  DEPENDS329    .${LIBC_TARGET_OS}.unlinkat330)331 332add_entrypoint_object(333  write334  ALIAS335  DEPENDS336    .${LIBC_TARGET_OS}.write337)338 339add_entrypoint_object(340  environ341  SRCS342    environ.cpp343  HDRS344    environ.h345)346 347add_entrypoint_object(348  getopt349  SRCS350    getopt.cpp351  HDRS352    getopt.h353  DEPENDS354    libc.include.unistd355    libc.src.__support.CPP.optional356    libc.src.__support.CPP.string_view357    libc.src.__support.File.file358    libc.src.__support.File.platform_stderr359    libc.src.stdio.fprintf360)361 362add_entrypoint_object(363  swab364  SRCS365    swab.cpp366  HDRS367    swab.h368  DEPENDS369    libc.include.unistd370    libc.src.__support.CPP.optional371)372 373# These aren't actual external per-se, but this is just an easy way to create374# targets that don't do anything. They exist to be referenced in entrypoints.txt375# so that the header will properly expose their definitions. Their declaration376# is in getopt.cpp.377add_entrypoint_external(378  optarg379)380 381add_entrypoint_external(382  optind383)384 385add_entrypoint_external(386  optopt387)388 389add_entrypoint_external(390  opterr391)392 393add_entrypoint_object(394  gettid395  SRCS396    gettid.cpp397  HDRS398    gettid.h399  DEPENDS400    libc.src.__support.threads.identifier401)402 403add_entrypoint_object(404  getentropy405  ALIAS406  DEPENDS407    .${LIBC_TARGET_OS}.getentropy408)409