name = "__support_arg_list",
hdrs = ["src/__support/arg_list.h"],
deps = [
- ":libc_root",
":__support_common",
+ ":libc_root",
],
)
"src/__support/ryu_constants.h",
],
deps = [
+ ":__support_common",
":__support_cpp_type_traits",
":__support_fputil_fp_bits",
- ":__support_uint",
":__support_libc_assert",
- ":__support_common",
+ ":__support_uint",
":libc_root",
],
)
name = "__support_integer_to_string",
hdrs = ["src/__support/integer_to_string.h"],
deps = [
- ":__support_cpp_type_traits",
+ ":__support_common",
":__support_cpp_optional",
":__support_cpp_span",
":__support_cpp_string_view",
- ":__support_common",
+ ":__support_cpp_type_traits",
":libc_root",
],
)
name = "__support_libc_assert",
hdrs = ["src/__support/libc_assert.h"],
deps = [
- ":__support_osutil_io",
- ":__support_osutil_quick_exit",
":__support_integer_to_string",
":__support_macros_attributes",
+ ":__support_osutil_io",
+ ":__support_osutil_quick_exit",
":libc_root",
],
)
deps = [
":__support_common",
":__support_osutil_syscall",
- ":string_utils",
":libc_root",
+ ":string_utils",
],
)
],
)
-
############################### errno targets ################################
libc_function(
],
)
-
libc_support_library(
name = "printf_parser",
- hdrs = ["src/stdio/printf_core/parser.h"],
srcs = ["src/stdio/printf_core/parser.cpp"],
+ hdrs = ["src/stdio/printf_core/parser.h"],
deps = [
- ":printf_core_structs",
- ":printf_config",
+ ":__support_arg_list",
+ ":__support_common",
+ ":__support_cpp_bit",
+ ":__support_cpp_optional",
":__support_cpp_string_view",
":__support_cpp_type_traits",
- ":__support_cpp_optional",
- ":__support_cpp_bit",
- ":__support_fputil_fp_bits",
- ":__support_arg_list",
":__support_ctype_utils",
+ ":__support_fputil_fp_bits",
":__support_str_to_integer",
- ":__support_common",
":libc_root",
+ ":printf_config",
+ ":printf_core_structs",
],
)
# Only used for testing.
libc_support_library(
name = "printf_mock_parser",
- hdrs = ["src/stdio/printf_core/parser.h"],
srcs = ["src/stdio/printf_core/parser.cpp"],
+ hdrs = ["src/stdio/printf_core/parser.h"],
+ copts = ["-DLIBC_COPT_MOCK_ARG_LIST"],
deps = [
- ":printf_core_structs",
- ":printf_config",
+ ":__support_arg_list",
+ ":__support_common",
+ ":__support_cpp_bit",
+ ":__support_cpp_optional",
":__support_cpp_string_view",
":__support_cpp_type_traits",
- ":__support_cpp_optional",
- ":__support_cpp_bit",
- ":__support_fputil_fp_bits",
- ":__support_arg_list",
":__support_ctype_utils",
+ ":__support_fputil_fp_bits",
":__support_str_to_integer",
- ":__support_common",
":libc_root",
+ ":printf_config",
+ ":printf_core_structs",
],
- copts = ["-DLIBC_COPT_MOCK_ARG_LIST"],
)
libc_support_library(
name = "printf_string_writer",
- hdrs = ["src/stdio/printf_core/string_writer.h"],
srcs = ["src/stdio/printf_core/string_writer.cpp"],
+ hdrs = ["src/stdio/printf_core/string_writer.h"],
deps = [
":__support_cpp_string_view",
- ":string_memory_utils",
- ":printf_core_structs",
":libc_root",
+ ":printf_core_structs",
+ ":string_memory_utils",
],
)
libc_support_library(
name = "printf_writer",
- hdrs = ["src/stdio/printf_core/writer.h"],
srcs = ["src/stdio/printf_core/writer.cpp"],
+ hdrs = ["src/stdio/printf_core/writer.h"],
deps = [
":__support_cpp_string_view",
":libc_root",
libc_support_library(
name = "printf_converter",
+ srcs = ["src/stdio/printf_core/converter.cpp"],
hdrs = [
+ "src/stdio/printf_core/char_converter.h",
"src/stdio/printf_core/converter.h",
- "src/stdio/printf_core/converter_utils.h",
"src/stdio/printf_core/converter_atlas.h",
- "src/stdio/printf_core/string_converter.h",
- "src/stdio/printf_core/char_converter.h",
+ "src/stdio/printf_core/converter_utils.h",
+ "src/stdio/printf_core/float_dec_converter.h",
+ "src/stdio/printf_core/float_hex_converter.h",
+ "src/stdio/printf_core/float_inf_nan_converter.h",
"src/stdio/printf_core/int_converter.h",
"src/stdio/printf_core/ptr_converter.h",
+ "src/stdio/printf_core/string_converter.h",
"src/stdio/printf_core/write_int_converter.h",
- "src/stdio/printf_core/float_inf_nan_converter.h",
- "src/stdio/printf_core/float_hex_converter.h",
- "src/stdio/printf_core/float_dec_converter.h",
],
- srcs = ["src/stdio/printf_core/converter.cpp"],
deps = [
- ":printf_writer",
- ":printf_core_structs",
- ":__support_cpp_string_view",
+ ":__support_common",
":__support_cpp_limits",
":__support_cpp_span",
- ":__support_fputil_fp_bits",
+ ":__support_cpp_string_view",
+ ":__support_float_to_string",
":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_integer_to_string",
":__support_libc_assert",
":__support_uint",
":__support_uint128",
- ":__support_integer_to_string",
- ":__support_float_to_string",
- ":__support_common",
":libc_root",
+ ":printf_core_structs",
+ ":printf_writer",
],
)
libc_support_library(
name = "printf_main",
- hdrs = ["src/stdio/printf_core/printf_main.h"],
srcs = ["src/stdio/printf_core/printf_main.cpp"],
+ hdrs = ["src/stdio/printf_core/printf_main.h"],
deps = [
- ":printf_parser",
- ":printf_converter",
- ":printf_writer",
- ":printf_core_structs",
":__support_arg_list",
":libc_root",
+ ":printf_converter",
+ ":printf_core_structs",
+ ":printf_parser",
+ ":printf_writer",
],
)
hdrs = ["src/stdio/sprintf.h"],
deps = [
":__support_arg_list",
+ ":errno",
":printf_main",
":printf_string_writer",
":printf_writer",
- ":errno",
],
)
hdrs = ["src/stdio/snprintf.h"],
deps = [
":__support_arg_list",
+ ":errno",
":printf_main",
":printf_string_writer",
":printf_writer",
- ":errno",
],
)