2019-10-05 01:30:54 +08:00
|
|
|
|
|
|
|
add_header(
|
|
|
|
llvm_libc_common_h
|
|
|
|
HDR
|
|
|
|
__llvm-libc-common.h
|
|
|
|
)
|
|
|
|
|
2019-12-05 15:17:14 +08:00
|
|
|
add_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
libc_posix_types
|
2019-12-05 15:17:14 +08:00
|
|
|
HDR
|
|
|
|
__posix-types.h
|
|
|
|
)
|
|
|
|
|
2020-04-28 04:35:21 +08:00
|
|
|
add_header(
|
|
|
|
stdc_types
|
|
|
|
HDR
|
|
|
|
__llvm-libc-stdc-types.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
|
|
|
|
)
|
|
|
|
|
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
|
2020-04-28 04:35:21 +08:00
|
|
|
.stdc_types
|
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
|
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
|
|
|
|
)
|
|
|
|
|
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
|
2020-03-07 07:05:50 +08:00
|
|
|
PARAMS
|
|
|
|
platform_threads=../config/${LIBC_TARGET_OS}/threads.h.in
|
2020-02-28 06:30:24 +08:00
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2020-03-07 07:05:50 +08:00
|
|
|
DATA_FILES
|
|
|
|
../config/${LIBC_TARGET_OS}/threads.h.in
|
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
|
|
|
|
)
|
|
|
|
|
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
|
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
|
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
|
2021-01-19 13:59:12 +08:00
|
|
|
.libc_posix_types
|
2020-04-18 01:21:05 +08:00
|
|
|
.llvm_libc_common_h
|
|
|
|
)
|
|
|
|
|
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
|
|
|
.libc_posix_types
|
|
|
|
.llvm_libc_common_h
|
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
|
|
|
|
)
|