[libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES. (#117265)
[llvm-project.git] / libc / src / search / CMakeLists.txt
blob497657f40f2f0225c9d430736d986355c952b562
1 add_subdirectory(hsearch)
3 add_entrypoint_object(
4   hcreate
5   SRCS
6     hcreate.cpp
7   HDRS
8     hcreate.h
9   DEPENDS
10     libc.src.search.hsearch.global
11     libc.src.__support.HashTable.table
12     libc.src.__support.HashTable.randomness
13     libc.src.errno.errno
14     libc.include.search
17 add_entrypoint_object(
18   hcreate_r
19   SRCS
20     hcreate_r.cpp
21   HDRS
22     hcreate_r.h
23   DEPENDS
24     libc.src.__support.HashTable.table
25     libc.src.__support.HashTable.randomness
26     libc.src.errno.errno
27     libc.include.search
30 add_entrypoint_object(
31   hsearch
32   SRCS
33     hsearch.cpp
34   HDRS
35     hsearch.h
36   DEPENDS
37     libc.src.search.hsearch.global
38     libc.src.__support.HashTable.table
39     libc.src.__support.HashTable.randomness
40     libc.src.errno.errno
41     libc.include.search
44 add_entrypoint_object(
45   hsearch_r
46   SRCS
47     hsearch_r.cpp
48   HDRS
49     hsearch_r.h
50   DEPENDS
51     libc.src.__support.HashTable.table
52     libc.src.errno.errno
53     libc.include.search
56 add_entrypoint_object(
57   hdestroy
58   SRCS
59     hdestroy.cpp
60   HDRS
61     hdestroy.h
62   DEPENDS
63     libc.src.search.hsearch.global
64     libc.src.__support.HashTable.table
65     libc.include.search
68 add_entrypoint_object(
69   hdestroy_r
70   SRCS
71     hdestroy_r.cpp
72   HDRS
73     hdestroy_r.h
74   DEPENDS
75     libc.src.errno.errno
76     libc.src.__support.HashTable.table
77     libc.include.search
80 add_entrypoint_object(
81   insque
82   SRCS
83     insque.cpp
84   HDRS
85     insque.h
86   DEPENDS
87     libc.include.search
88     libc.src.__support.intrusive_list
91 add_entrypoint_object(
92   remque
93   SRCS
94     remque.cpp
95   HDRS
96     remque.h
97   DEPENDS
98     libc.include.search
99     libc.src.__support.intrusive_list
102 add_entrypoint_object(
103   lfind
104   SRCS
105     lfind.cpp
106   HDRS
107     lfind.h
108   DEPENDS
109     libc.include.search
110     libc.src.__support.CPP.cstddef
111     libc.src.__support.memory_size