aboutsummaryrefslogtreecommitdiff
path: root/libc/src/__support/CPP/CMakeLists.txt
blob: d747412791bd8e25e5ef330bb6b2efc1104ee9f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
add_header_library(
  algorithm
  HDRS
    algorithm.h
)

add_header_library(
  array
  HDRS
    array.h
)

add_header_library(
  bit
  HDRS
    bit.h
  DEPENDS
    .limits
    .type_traits
    libc.src.__support.macros.attributes
    libc.src.__support.macros.config
    libc.src.__support.macros.sanitizer
)

add_header_library(
  bitset
  HDRS
    bitset.h
)

add_header_library(
  cstddef
  HDRS
    cstddef.h
  DEPENDS
    .type_traits
)

add_header_library(
  functional
  HDRS
    functional.h
)

add_header_library(
  limits
  HDRS
    limits.h
  DEPENDS
    .type_traits
    libc.include.llvm-libc-macros.limits_macros
)

add_header_library(
  span
  HDRS
    span.h
  DEPENDS
    .array
    .type_traits
)

add_header_library(
  string_view
  HDRS
    string_view.h
  DEPENDS
    libc.src.__support.common
)

add_header_library(
  string
  HDRS
    string.h
  DEPENDS
    libc.include.stdlib
    .string_view
    libc.src.__support.common
    libc.src.__support.integer_to_string
    libc.src.string.memory_utils.inline_memcpy
    libc.src.string.memory_utils.inline_memset
    libc.src.string.string_utils
)

add_header_library(
  stringstream
  HDRS
    stringstream.h
  DEPENDS
    .span
    .string_view
    libc.src.__support.integer_to_string
)

add_header_library(
  optional
  HDRS
    optional.h
)

add_header_library(
  type_traits
  HDRS
    type_traits.h
    type_traits/always_false.h
    type_traits/add_lvalue_reference.h
    type_traits/add_pointer.h
    type_traits/add_rvalue_reference.h
    type_traits/bool_constant.h
    type_traits/conditional.h
    type_traits/decay.h
    type_traits/enable_if.h
    type_traits/false_type.h
    type_traits/integral_constant.h
    type_traits/invoke.h
    type_traits/invoke_result.h
    type_traits/is_arithmetic.h
    type_traits/is_array.h
    type_traits/is_base_of.h
    type_traits/is_class.h
    type_traits/is_const.h
    type_traits/is_convertible.h
    type_traits/is_destructible.h
    type_traits/is_enum.h
    type_traits/is_fixed_point.h
    type_traits/is_floating_point.h
    type_traits/is_function.h
    type_traits/is_integral.h
    type_traits/is_lvalue_reference.h
    type_traits/is_member_pointer.h
    type_traits/is_null_pointer.h
    type_traits/is_object.h
    type_traits/is_pointer.h
    type_traits/is_reference.h
    type_traits/is_rvalue_reference.h
    type_traits/is_same.h
    type_traits/is_scalar.h
    type_traits/is_signed.h
    type_traits/is_trivially_constructible.h
    type_traits/is_trivially_copyable.h
    type_traits/is_trivially_destructible.h
    type_traits/is_union.h
    type_traits/is_unsigned.h
    type_traits/is_void.h
    type_traits/make_signed.h
    type_traits/make_unsigned.h
    type_traits/remove_all_extents.h
    type_traits/remove_cv.h
    type_traits/remove_cvref.h
    type_traits/remove_extent.h
    type_traits/remove_reference.h
    type_traits/true_type.h
    type_traits/type_identity.h
    type_traits/void_t.h
  DEPENDS
    libc.src.__support.macros.attributes
    libc.src.__support.macros.config
    libc.src.__support.macros.properties.float
    libc.include.llvm-libc-macros.stdfix_macros
)

add_header_library(
  utility
  HDRS
    utility.h
    utility/declval.h
    utility/forward.h
    utility/in_place.h
    utility/integer_sequence.h
    utility/move.h
)

add_header_library(
  atomic
  HDRS
    atomic.h
)

add_header_library(
  expected
  HDRS
    expected.h
)

add_object_library(
  new
  SRCS
    new.cpp
  HDRS
    new.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.common
)