-
Notifications
You must be signed in to change notification settings - Fork 10.8k
/
CMakeLists.txt
105 lines (97 loc) · 1.7 KB
/
CMakeLists.txt
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
add_header_library(
core_structs
HDRS
core_structs.h
DEPENDS
libc.src.__support.CPP.string_view
libc.src.__support.CPP.bitset
libc.src.__support.FPUtil.fp_bits
)
add_object_library(
parser
SRCS
parser.cpp
HDRS
parser.h
DEPENDS
.core_structs
libc.src.__support.arg_list
libc.src.__support.ctype_utils
libc.src.__support.str_to_integer
libc.src.__support.CPP.bit
libc.src.__support.CPP.bitset
libc.src.__support.CPP.string_view
)
if(NOT (TARGET libc.src.__support.File.file))
# Not all platforms have a file implementation. If file is unvailable,
# then we must skip all the parts that need file.
return()
endif()
add_object_library(
scanf_main
SRCS
scanf_main.cpp
HDRS
scanf_main.h
DEPENDS
.parser
.reader
.converter
.core_structs
libc.src.__support.arg_list
)
add_object_library(
string_reader
SRCS
string_reader.cpp
HDRS
string_reader.h
)
add_object_library(
file_reader
SRCS
file_reader.cpp
HDRS
file_reader.h
DEPENDS
libc.src.__support.File.file
)
add_object_library(
reader
SRCS
reader.cpp
HDRS
reader.h
DEPENDS
.string_reader
.file_reader
)
add_object_library(
converter
SRCS
converter.cpp
string_converter.cpp
int_converter.cpp
HDRS
converter.h
int_converter.h
DEPENDS
.reader
.core_structs
libc.src.__support.ctype_utils
libc.src.__support.CPP.bitset
libc.src.__support.CPP.string_view
libc.src.__support.CPP.limits
)
add_object_library(
vfscanf_internal
SRCS
vfscanf_internal.cpp
HDRS
vfscanf_internal.h
DEPENDS
.reader
.file_reader
.scanf_main
libc.src.__support.arg_list
)