[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / src / time / CMakeLists.txt
blob8f953e4c9b132a9fa2cf94915ba7ac830cd22b01
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.errno
13     libc.include.time
14     libc.src.errno.errno
17 add_entrypoint_object(
18   asctime
19   SRCS
20     asctime.cpp
21   HDRS
22     asctime.h
23   DEPENDS
24     .time_utils
25     libc.include.time
28 add_entrypoint_object(
29   asctime_r
30   SRCS
31     asctime_r.cpp
32   HDRS
33     asctime_r.h
34   DEPENDS
35     .time_utils
36     libc.include.time
39 add_entrypoint_object(
40   clock_gettime
41   SRCS
42     clock_gettime.cpp
43   HDRS
44     clock_gettime.h
45   DEPENDS
46     libc.include.time
47     libc.include.sys_syscall
48     libc.src.__support.OSUtil.osutil
49     libc.src.errno.errno
52 add_entrypoint_object(
53   difftime
54   SRCS
55     difftime.cpp
56   HDRS
57     difftime.h
58   DEPENDS
59     libc.include.time
62 add_entrypoint_object(
63   gettimeofday
64   SRCS
65     gettimeofday.cpp
66   HDRS
67     gettimeofday.h
68   DEPENDS
69     .clock_gettime
70     libc.include.errno
71     libc.include.time
72     libc.include.sys_syscall
73     libc.src.__support.OSUtil.osutil
74     libc.src.errno.errno
77 add_entrypoint_object(
78   gmtime
79   SRCS
80     gmtime.cpp
81   HDRS
82     gmtime.h
83   DEPENDS
84     .time_utils
85     libc.include.time
88 add_entrypoint_object(
89   gmtime_r
90   SRCS
91     gmtime_r.cpp
92   HDRS
93     gmtime_r.h
94   DEPENDS
95     .time_utils
96     libc.include.time
99 add_entrypoint_object(
100   mktime
101   SRCS
102     mktime.cpp
103   HDRS
104     mktime.h
105   DEPENDS
106     .time_utils
107     libc.include.errno
108     libc.include.time
109     libc.src.errno.errno
112 add_entrypoint_object(
113   nanosleep
114   SRCS
115     nanosleep.cpp
116   HDRS
117     nanosleep.h
118   DEPENDS
119     libc.include.errno
120     libc.include.time
121     libc.include.sys_syscall
122     libc.src.__support.OSUtil.osutil
123     libc.src.errno.errno
126 add_entrypoint_object(
127   time
128   ALIAS
129   DEPENDS
130     .${LIBC_TARGET_OS}.time
133 add_entrypoint_object(
134   clock
135   ALIAS
136   DEPENDS
137     .${LIBC_TARGET_OS}.clock