[libc][NFC] Move aligned access implementations to separate header
[llvm-project.git] / libc / src / time / CMakeLists.txt
blobd45ef64d891259c5924637f48761d04750353289
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
3 endif()
5 add_object_library(
6   time_utils
7   SRCS
8     time_utils.cpp
9   HDRS
10     time_utils.h
11   DEPENDS
12     libc.include.time
13     libc.src.errno.errno
16 add_entrypoint_object(
17   asctime
18   SRCS
19     asctime.cpp
20   HDRS
21     asctime.h
22   DEPENDS
23     .time_utils
24     libc.include.time
27 add_entrypoint_object(
28   asctime_r
29   SRCS
30     asctime_r.cpp
31   HDRS
32     asctime_r.h
33   DEPENDS
34     .time_utils
35     libc.include.time
38 add_entrypoint_object(
39   clock_gettime
40   SRCS
41     clock_gettime.cpp
42   HDRS
43     clock_gettime.h
44   DEPENDS
45     libc.include.time
46     libc.include.sys_syscall
47     libc.src.__support.OSUtil.osutil
48     libc.src.errno.errno
51 add_entrypoint_object(
52   difftime
53   SRCS
54     difftime.cpp
55   HDRS
56     difftime.h
57   DEPENDS
58     libc.include.time
61 add_entrypoint_object(
62   gettimeofday
63   SRCS
64     gettimeofday.cpp
65   HDRS
66     gettimeofday.h
67   DEPENDS
68     .clock_gettime
69     libc.include.time
70     libc.include.sys_syscall
71     libc.src.__support.OSUtil.osutil
72     libc.src.errno.errno
75 add_entrypoint_object(
76   gmtime
77   SRCS
78     gmtime.cpp
79   HDRS
80     gmtime.h
81   DEPENDS
82     .time_utils
83     libc.include.time
86 add_entrypoint_object(
87   gmtime_r
88   SRCS
89     gmtime_r.cpp
90   HDRS
91     gmtime_r.h
92   DEPENDS
93     .time_utils
94     libc.include.time
97 add_entrypoint_object(
98   mktime
99   SRCS
100     mktime.cpp
101   HDRS
102     mktime.h
103   DEPENDS
104     .time_utils
105     libc.include.time
106     libc.src.errno.errno
109 add_entrypoint_object(
110   nanosleep
111   SRCS
112     nanosleep.cpp
113   HDRS
114     nanosleep.h
115   DEPENDS
116     libc.include.time
117     libc.include.sys_syscall
118     libc.src.__support.OSUtil.osutil
119     libc.src.errno.errno
122 add_entrypoint_object(
123   time
124   ALIAS
125   DEPENDS
126     .${LIBC_TARGET_OS}.time
129 add_entrypoint_object(
130   clock
131   ALIAS
132   DEPENDS
133     .${LIBC_TARGET_OS}.clock