aboutsummaryrefslogtreecommitdiff
path: root/libc/src/stdio/baremetal/CMakeLists.txt
blob: 548938f885c94ab6ade4a21b66745b74ea1d5577 (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
add_entrypoint_object(
  getchar
  SRCS
    getchar.cpp
  HDRS
    ../getchar.h
  DEPENDS
    libc.hdr.stdio_macros
    libc.src.__support.OSUtil.osutil
    libc.src.__support.CPP.string_view
)

add_entrypoint_object(
  remove
  SRCS
    remove.cpp
  HDRS
    ../remove.h
  DEPENDS
    libc.include.stdio
)

add_entrypoint_object(
  printf
  SRCS
    printf.cpp
  HDRS
    ../printf.h
  DEPENDS
    libc.src.stdio.printf_core.printf_main
    libc.src.stdio.printf_core.writer
    libc.src.__support.arg_list
    libc.src.__support.OSUtil.osutil
)

add_entrypoint_object(
  putchar
  SRCS
    putchar.cpp
  HDRS
    ../putchar.h
  DEPENDS
    libc.src.__support.OSUtil.osutil
    libc.src.__support.CPP.string_view
)

add_entrypoint_object(
  puts
  SRCS
    puts.cpp
  HDRS
    ../puts.h
  DEPENDS
    libc.src.__support.OSUtil.osutil
    libc.src.__support.CPP.string_view
)

add_header_library(
  scanf_internal
  HDRS
    scanf_internal.h
  DEPENDS
    libc.src.stdio.scanf_core.reader
    libc.src.__support.OSUtil.osutil
)

add_entrypoint_object(
  scanf
  SRCS
    scanf.cpp
  HDRS
    ../scanf.h
  DEPENDS
    .scanf_internal
    libc.include.inttypes
    libc.src.stdio.scanf_core.scanf_main
    libc.src.__support.arg_list
    libc.src.__support.OSUtil.osutil
)

add_entrypoint_object(
  vprintf
  SRCS
    vprintf.cpp
  HDRS
    ../vprintf.h
  DEPENDS
    libc.src.stdio.printf_core.printf_main
    libc.src.stdio.printf_core.writer
    libc.src.__support.arg_list
    libc.src.__support.OSUtil.osutil
)

add_entrypoint_object(
  vscanf
  SRCS
    vscanf.cpp
  HDRS
    ../vscanf.h
  DEPENDS
    .scanf_internal
    libc.src.stdio.scanf_core.scanf_main
    libc.src.__support.arg_list
    libc.src.__support.OSUtil.osutil
)