1
2add_header_library(
3  core_structs
4  HDRS
5    core_structs.h
6)
7
8add_object_library(
9  parser
10  SRCS
11    parser.cpp
12  HDRS
13    parser.h
14  DEPENDS
15    .core_structs
16    libc.src.__support.arg_list
17    libc.src.__support.ctype_utils
18    libc.src.__support.str_to_integer
19    libc.src.__support.CPP.bit
20    libc.src.string.memory_utils.memset_implementation
21)
22
23add_object_library(
24  string_writer
25  SRCS
26    string_writer.cpp
27  HDRS
28    string_writer.h
29  DEPENDS
30    libc.src.string.memory_utils.memcpy_implementation
31    .core_structs
32)
33
34add_object_library(
35  file_writer
36  SRCS
37    file_writer.cpp
38  HDRS
39    file_writer.h
40  DEPENDS
41    libc.src.__support.File.file
42    .core_structs
43)
44
45add_object_library(
46  writer
47  SRCS
48    writer.cpp
49  HDRS
50    writer.h
51  DEPENDS
52    libc.src.string.memory_utils.memset_implementation
53)
54
55add_object_library(
56  converter
57  SRCS
58    converter.cpp
59  HDRS
60    converter.h
61    converter_atlas.h
62    converter_utils.h
63    string_converter.h
64    char_converter.h
65    int_converter.h
66    hex_converter.h
67    ptr_converter.h
68    oct_converter.h
69    write_int_converter.h
70    float_inf_nan_converter.h
71    float_hex_converter.h
72  DEPENDS
73    .writer
74    .core_structs
75    libc.src.__support.integer_to_string
76    libc.src.__support.CPP.limits
77    libc.src.__support.FPUtil.fputil
78)
79
80
81add_object_library(
82  printf_main
83  SRCS
84    printf_main.cpp
85  HDRS
86    printf_main.h
87  DEPENDS
88    .parser
89    .converter
90    .writer
91    .core_structs
92    libc.src.__support.arg_list
93)
94
95add_object_library(
96  vfprintf_internal
97  SRCS
98    vfprintf_internal.cpp
99  HDRS
100    vfprintf_internal.h
101  DEPENDS
102    libc.include.stdio
103    libc.src.__support.File.file
104    libc.src.__support.File.platform_file
105    libc.src.__support.arg_list
106    libc.src.stdio.printf_core.printf_main
107    libc.src.stdio.printf_core.file_writer
108    libc.src.stdio.printf_core.writer
109)
110