419 lines · plain
1add_subdirectory(CPP)2add_subdirectory(macros)3 4add_header_library(5 libc_errno6 HDRS7 libc_errno.h8 DEPENDS9 libc.hdr.errno_macros10 libc.src.__support.macros.config11)12 13add_header_library(14 block15 HDRS16 block.h17 DEPENDS18 libc.hdr.stdint_proxy19 libc.src.__support.CPP.algorithm20 libc.src.__support.CPP.limits21 libc.src.__support.CPP.new22 libc.src.__support.CPP.optional23 libc.src.__support.CPP.span24 libc.src.__support.CPP.type_traits25 libc.src.__support.math_extras26)27 28add_object_library(29 freelist30 HDRS31 freelist.h32 SRCS33 freelist.cpp34 DEPENDS35 .block36 libc.src.__support.fixedvector37 libc.src.__support.CPP.array38 libc.src.__support.CPP.cstddef39 libc.src.__support.CPP.new40 libc.src.__support.CPP.span41)42 43add_object_library(44 freetrie45 HDRS46 freetrie.h47 SRCS48 freetrie.cpp49 DEPENDS50 .block51 .freelist52)53 54add_header_library(55 freestore56 HDRS57 freestore.h58 DEPENDS59 .freetrie60)61 62add_object_library(63 freelist_heap64 SRCS65 freelist_heap.cpp66 HDRS67 freelist_heap.h68 COMPILE_OPTIONS69 -DLIBC_FREELIST_MALLOC_SIZE=${LIBC_CONF_FREELIST_MALLOC_BUFFER_SIZE}70 DEPENDS71 .block72 .freelist73 .freestore74 .freetrie75 libc.src.__support.CPP.cstddef76 libc.src.__support.CPP.array77 libc.src.__support.CPP.optional78 libc.src.__support.CPP.span79 libc.src.__support.libc_assert80 libc.src.string.memory_utils.inline_memcpy81 libc.src.string.memory_utils.inline_memset82)83 84add_header_library(85 blockstore86 HDRS87 blockstore.h88 DEPENDS89 .libc_assert90 libc.hdr.stdint_proxy91 libc.src.__support.CPP.new92)93 94add_header_library(95 common96 HDRS97 common.h98 endian_internal.h99 macros/properties/architectures.h100 macros/properties/compiler.h101 macros/attributes.h102 macros/config.h103 DEPENDS104 libc.hdr.stdint_proxy105)106 107add_header_library(108 bit109 HDRS110 bit.h111 DEPENDS112 libc.src.__support.macros.attributes113 libc.src.__support.CPP.type_traits114)115 116add_header_library(117 math_extras118 HDRS119 math_extras.h120 DEPENDS121 libc.src.__support.CPP.bit122 libc.src.__support.CPP.limits123 libc.src.__support.CPP.type_traits124 libc.src.__support.macros.attributes125 libc.src.__support.macros.config126)127 128add_header_library(129 sign130 HDRS131 sign.h132 DEPENDS133 libc.src.__support.macros.attributes134)135 136add_header_library(137 error_or138 HDRS139 error_or.h140 DEPENDS141 libc.src.__support.CPP.expected142)143 144add_header_library(145 c_string146 HDRS147 c_string.h148 DEPENDS149 libc.src.__support.common150 libc.src.__support.CPP.string151)152 153add_header_library(154 ctype_utils155 HDRS156 ctype_utils.h157)158 159add_header_library(160 wctype_utils161 HDRS162 wctype_utils.h163 DEPENDS164 libc.hdr.types.wchar_t165)166 167add_header_library(168 str_to_num_result169 HDRS170 str_to_num_result.h171 DEPENDS172 libc.src.__support.macros.attributes173)174 175add_header_library(176 str_to_integer177 HDRS178 str_to_integer.h179 DEPENDS180 .ctype_utils181 .str_to_num_result182 .wctype_utils183 libc.hdr.errno_macros184 libc.src.__support.CPP.limits185 libc.src.__support.CPP.type_traits186 libc.src.__support.common187)188 189add_header_library(190 integer_to_string191 HDRS192 integer_to_string.h193 DEPENDS194 .big_int195 libc.hdr.stdint_proxy196 libc.src.__support.common197 libc.src.__support.CPP.algorithm198 libc.src.__support.CPP.limits199 libc.src.__support.CPP.span200 libc.src.__support.CPP.string_view201 libc.src.__support.CPP.type_traits202)203 204add_header_library(205 float_to_string206 HDRS207 float_to_string.h208 ryu_constants.h209 ryu_long_double_constants.h210 DEPENDS211 .libc_assert212 libc.hdr.stdint_proxy213 libc.src.__support.CPP.type_traits214 libc.src.__support.FPUtil.fp_bits215 libc.src.__support.common216)217 218add_header_library(219 high_precision_decimal220 HDRS221 high_precision_decimal.h222 DEPENDS223 .ctype_utils224 .str_to_integer225 .wctype_utils226 libc.hdr.stdint_proxy227)228 229add_header_library(230 str_to_float231 HDRS232 str_to_float.h233 detailed_powers_of_ten.h234 DEPENDS235 .ctype_utils236 .high_precision_decimal237 .str_to_integer238 .str_to_num_result239 .uint128240 .wctype_utils241 libc.hdr.errno_macros242 libc.hdr.stdint_proxy243 libc.src.__support.common244 libc.src.__support.CPP.bit245 libc.src.__support.CPP.limits246 libc.src.__support.CPP.optional247 libc.src.__support.FPUtil.fp_bits248 libc.src.__support.FPUtil.rounding_mode249 libc.src.__support.macros.config250 libc.src.__support.macros.null_check251 libc.src.__support.macros.optimization252)253 254add_header_library(255 integer_literals256 HDRS257 integer_literals.h258 DEPENDS259 .uint128260 libc.hdr.stdint_proxy261 libc.src.__support.CPP.limits262)263 264add_header_library(265 complex_type266 HDRS267 complex_type.h268 DEPENDS269 libc.src.__support.macros.properties.types270 libc.src.__support.macros.properties.complex_types271)272 273add_header_library(274 complex_basic_ops275 HDRS276 complex_basic_ops.h277 DEPENDS278 .complex_type279 libc.src.__support.CPP.bit280 libc.src.__support.FPUtil.fp_bits281)282 283add_header_library(284 integer_operations285 HDRS286 integer_operations.h287)288 289add_header_library(290 arg_list291 HDRS292 arg_list.h293 DEPENDS294 libc.hdr.stdint_proxy295 libc.src.__support.common296 libc.src.string.memory_utils.inline_memcpy297)298 299add_header_library(300 fixedvector301 HDRS302 fixedvector.h303 DEPENDS304 .libc_assert305 libc.src.__support.CPP.array306 libc.src.string.memory_utils.inline_memset307)308 309add_header_library(310 char_vector311 HDRS312 char_vector.h313 DEPENDS314 libc.hdr.func.free315 libc.hdr.func.malloc316 libc.hdr.func.realloc317 libc.src.__support.common318)319 320add_header_library(321 number_pair322 HDRS323 number_pair.h324 DEPENDS325 libc.src.__support.CPP.type_traits326)327 328add_header_library(329 big_int330 HDRS331 big_int.h332 DEPENDS333 .math_extras334 .number_pair335 libc.hdr.stdint_proxy336 libc.src.__support.CPP.array337 libc.src.__support.CPP.bit338 libc.src.__support.CPP.type_traits339 libc.src.__support.macros.optimization340 libc.src.__support.macros.properties.types341)342 343add_header_library(344 uint128345 HDRS346 uint128.h347 DEPENDS348 .big_int349 libc.src.__support.macros.properties.types350)351 352add_header_library(353 libc_assert354 HDRS355 libc_assert.h356 DEPENDS357 .integer_to_string358 libc.src.__support.OSUtil.osutil359 libc.src.__support.macros.optimization360)361 362add_header_library(363 hash364 HDRS365 hash.h366 DEPENDS367 .uint128368 libc.hdr.stdint_proxy369 libc.src.__support.CPP.bit370 libc.src.__support.CPP.limits371 libc.src.__support.macros.attributes372)373 374add_header_library(375 memory_size376 HDRS377 memory_size.h378 DEPENDS379 libc.src.__support.CPP.type_traits380 libc.src.__support.CPP.limits381 libc.src.__support.macros.optimization382 libc.src.__support.macros.attributes383 libc.src.__support.macros.config384)385 386add_header_library(387 intrusive_list388 HDRS389 intrusive_list.h390 DEPENDS391 libc.src.__support.macros.attributes392)393 394add_subdirectory(FPUtil)395add_subdirectory(OSUtil)396add_subdirectory(StringUtil)397add_subdirectory(GPU)398add_subdirectory(RPC)399 400# Thread support is used by other "File". So, we add the "threads"401# before "File".402add_subdirectory(threads)403 404add_subdirectory(File)405 406add_subdirectory(HashTable)407 408add_subdirectory(fixed_point)409 410add_subdirectory(time)411 412# Requires access to uchar header which is not on macos413# Therefore, cannot currently build this on macos in overlay mode414if(NOT (LIBC_TARGET_OS_IS_DARWIN))415 add_subdirectory(wchar)416endif()417 418add_subdirectory(math)419