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
|
|
|
|
)
|
|
|
|
|
2019-10-05 01:30:54 +08:00
|
|
|
add_header(
|
2020-03-05 07:45:51 +08:00
|
|
|
ctype
|
2019-10-05 01:30:54 +08:00
|
|
|
HDR
|
|
|
|
ctype.h
|
|
|
|
DEPENDS
|
2020-03-05 07:45:51 +08:00
|
|
|
.llvm_libc_common_h
|
2019-10-05 01:30:54 +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
|
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-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-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
|
|
|
)
|
|
|
|
|
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
|
|
|
|
)
|