summaryrefslogtreecommitdiff
path: root/libc/src/__support/StringUtil/CMakeLists.txt
blob: 528f1e8896637e67b0091dbb396400c42195c368 (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
add_header_library(
  message_mapper
  HDRS
    message_mapper.h
  DEPENDS
    libc.src.__support.CPP.string_view
    libc.src.__support.CPP.optional
)

# The table maps depend on message_mapper.
add_subdirectory(tables)

add_object_library(
  error_to_string
  HDRS
    error_to_string.h
  SRCS
    error_to_string.cpp
  DEPENDS
    .message_mapper
    libc.src.errno.errno
    libc.src.__support.CPP.span
    libc.src.__support.CPP.string_view
    libc.src.__support.CPP.stringstream
    libc.src.__support.integer_to_string
    libc.src.__support.StringUtil.tables.error_table
)

add_object_library(
  signal_to_string
  HDRS
    signal_to_string.h
  SRCS
    signal_to_string.cpp
  DEPENDS
    .message_mapper
    libc.include.signal
    libc.src.__support.CPP.span
    libc.src.__support.CPP.string_view
    libc.src.__support.CPP.stringstream
    libc.src.__support.integer_to_string
    libc.src.__support.StringUtil.tables.signal_table
)