2022-01-14 07:40:49 +08:00
|
|
|
add_subdirectory(llvm-libc-types)
|
2019-10-05 01:30:54 +08:00
|
|
|
|
|
|
|
add_header(
|
|
|
|
llvm_libc_common_h
|
|
|
|
HDR
|
|
|
|
__llvm-libc-common.h
|
|
|
|
)
|
|
|
|
|
2020-07-29 07:12:17 +08:00
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
ctype
|
2020-07-29 07:12:17 +08:00
|
|
|
DEF_FILE ctype.h.def
|
|
|
|
GEN_HDR ctype.h
|
2019-10-05 01:30:54 +08:00
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2019-10-05 01:30:54 +08:00
|
|
|
)
|
|
|
|
|
2020-12-02 03:39:48 +08:00
|
|
|
add_gen_header(
|
|
|
|
fenv
|
|
|
|
DEF_FILE fenv.h.def
|
|
|
|
GEN_HDR fenv.h
|
|
|
|
DEPENDS
|
|
|
|
.llvm_libc_common_h
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.fenv_t
|
|
|
|
.llvm-libc-types.fexcept_t
|
2020-12-02 03:39:48 +08:00
|
|
|
)
|
|
|
|
|
2021-08-26 05:11:31 +08:00
|
|
|
add_gen_header(
|
|
|
|
inttypes
|
|
|
|
DEF_FILE inttypes.h.def
|
|
|
|
GEN_HDR inttypes.h
|
|
|
|
DEPENDS
|
|
|
|
.llvm_libc_common_h
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.imaxdiv_t
|
2021-08-26 05:11:31 +08:00
|
|
|
)
|
|
|
|
|
2020-03-25 01:52:56 +08:00
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
math
|
2020-03-25 01:52:56 +08:00
|
|
|
DEF_FILE math.h.def
|
|
|
|
GEN_HDR math.h
|
2019-10-05 01:30:54 +08:00
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2022-01-14 07:40:49 +08:00
|
|
|
.llvm-libc-types.double_t
|
|
|
|
.llvm-libc-types.float_t
|
2019-10-05 01:30:54 +08:00
|
|
|
)
|
|
|
|
|
2020-03-12 11:45:58 +08:00
|
|
|
add_gen_header(
|
|
|
|
assert_h
|
|
|
|
DEF_FILE assert.h.def
|
|
|
|
GEN_HDR assert.h
|
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2020-03-12 11:45:58 +08:00
|
|
|
)
|
|
|
|
|
2019-11-06 03:40:26 +08:00
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
string
|
2019-11-06 03:40:26 +08:00
|
|
|
DEF_FILE string.h.def
|
|
|
|
GEN_HDR string.h
|
2019-10-05 01:30:54 +08:00
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.size_t
|
2019-10-05 01:30:54 +08:00
|
|
|
)
|
2019-12-06 04:09:24 +08:00
|
|
|
|
2020-12-01 13:06:47 +08:00
|
|
|
add_gen_header(
|
|
|
|
time
|
|
|
|
DEF_FILE time.h.def
|
|
|
|
GEN_HDR time.h
|
|
|
|
DEPENDS
|
|
|
|
.llvm_libc_common_h
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.time_t
|
2022-01-21 14:28:42 +08:00
|
|
|
.llvm-libc-types.struct_tm
|
2020-12-01 13:06:47 +08:00
|
|
|
)
|
|
|
|
|
2020-02-28 06:30:24 +08:00
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
threads
|
2020-02-28 06:30:24 +08:00
|
|
|
DEF_FILE threads.h.def
|
|
|
|
GEN_HDR threads.h
|
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.__call_once_func_t
|
|
|
|
.llvm-libc-types.cnd_t
|
|
|
|
.llvm-libc-types.mtx_t
|
|
|
|
.llvm-libc-types.once_flag
|
|
|
|
.llvm-libc-types.thrd_start_t
|
|
|
|
.llvm-libc-types.thrd_t
|
2020-02-28 06:30:24 +08:00
|
|
|
)
|
|
|
|
|
2019-12-06 04:09:24 +08:00
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
errno
|
2019-12-06 04:09:24 +08:00
|
|
|
DEF_FILE errno.h.def
|
|
|
|
PARAMS
|
|
|
|
platform_errno=../config/${LIBC_TARGET_OS}/errno.h.in
|
|
|
|
GEN_HDR errno.h
|
|
|
|
DATA_FILES
|
|
|
|
../config/${LIBC_TARGET_OS}/errno.h.in
|
|
|
|
)
|
2019-12-05 15:17:14 +08:00
|
|
|
|
2020-02-21 03:05:34 +08:00
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
signal
|
2020-02-21 03:05:34 +08:00
|
|
|
DEF_FILE signal.h.def
|
|
|
|
PARAMS
|
|
|
|
platform_signal=../config/${LIBC_TARGET_OS}/signal.h.in
|
|
|
|
GEN_HDR signal.h
|
|
|
|
DATA_FILES
|
|
|
|
../config/${LIBC_TARGET_OS}/signal.h.in
|
2022-01-20 16:11:54 +08:00
|
|
|
DEPENDS
|
2022-01-21 14:28:42 +08:00
|
|
|
.llvm-libc-types.struct_sigaction
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.__sighandler_t
|
2020-02-21 03:05:34 +08:00
|
|
|
)
|
|
|
|
|
2020-04-14 16:02:27 +08:00
|
|
|
add_gen_header(
|
|
|
|
stdio
|
|
|
|
DEF_FILE stdio.h.def
|
|
|
|
GEN_HDR stdio.h
|
|
|
|
DEPENDS
|
2020-04-17 17:10:22 +08:00
|
|
|
.llvm_libc_common_h
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.FILE
|
|
|
|
.llvm-libc-types.size_t
|
2020-04-14 16:02:27 +08:00
|
|
|
)
|
|
|
|
|
2020-03-06 03:21:18 +08:00
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
stdlib
|
2020-03-06 03:21:18 +08:00
|
|
|
DEF_FILE stdlib.h.def
|
|
|
|
GEN_HDR stdlib.h
|
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2022-01-20 16:11:54 +08:00
|
|
|
.llvm-libc-types.__bsearchcompare_t
|
|
|
|
.llvm-libc-types.__qsortcompare_t
|
|
|
|
.llvm-libc-types.div_t
|
|
|
|
.llvm-libc-types.ldiv_t
|
|
|
|
.llvm-libc-types.lldiv_t
|
|
|
|
.llvm-libc-types.size_t
|
2020-03-06 03:21:18 +08:00
|
|
|
)
|
|
|
|
|
2020-04-18 01:21:05 +08:00
|
|
|
add_gen_header(
|
|
|
|
unistd
|
|
|
|
DEF_FILE unistd.h.def
|
|
|
|
GEN_HDR unistd.h
|
|
|
|
DEPENDS
|
|
|
|
.llvm_libc_common_h
|
2022-01-14 07:40:49 +08:00
|
|
|
.llvm-libc-types.size_t
|
|
|
|
.llvm-libc-types.ssize_t
|
2020-04-18 01:21:05 +08:00
|
|
|
)
|
|
|
|
|
2019-12-05 15:17:14 +08:00
|
|
|
# TODO: Not all platforms will have a include/sys directory. Add the sys
|
|
|
|
# directory and the targets for sys/*.h files conditional to the OS requiring
|
|
|
|
# them.
|
|
|
|
file(MAKE_DIRECTORY "sys")
|
|
|
|
|
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
sys_mman
|
2019-12-05 15:17:14 +08:00
|
|
|
DEF_FILE sys/mman.h.def
|
|
|
|
GEN_HDR sys/mman.h
|
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2022-01-14 07:40:49 +08:00
|
|
|
.llvm-libc-types.off_t
|
|
|
|
.llvm-libc-types.ssize_t
|
2019-12-05 15:17:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_gen_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
sys_syscall
|
2019-12-05 15:17:14 +08:00
|
|
|
DEF_FILE sys/syscall.h.def
|
|
|
|
GEN_HDR sys/syscall.h
|
|
|
|
PARAMS
|
|
|
|
syscall_numbers=../config/${LIBC_TARGET_OS}/syscall_numbers.h.inc
|
|
|
|
DATA_FILES
|
|
|
|
../config/${LIBC_TARGET_OS}/syscall_numbers.h.inc
|
|
|
|
)
|