aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/CMakeLists.txt
blob: 07d54ae8161cf39575056f9d9566e954d6ffaf3a (plain) (blame)
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
# This file was gererated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, adding simple properties
# like target_include_directories). These modifications will be ported to original
# ya.make files by maintainers. Any complex modifications which can't be ported back to the
# original buildsystem will not be accepted.


add_subdirectory(global)

add_library(library-cpp-logger)
target_link_libraries(library-cpp-logger PUBLIC
  contrib-libs-cxxsupp
  yutil
  tools-enum_parser-enum_serialization_runtime
  library-cpp-json
  cpp-deprecated-atomic
)
target_sources(library-cpp-logger PRIVATE
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/backend.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/backend_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/composite.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/element.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/file.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/filter.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/filter_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/log.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/null.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/rotating_file.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/stream.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/sync_page_cache_file.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/system.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/thread.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/thread_creator.cpp
)
generate_enum_serilization(library-cpp-logger
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/priority.h
  INCLUDE_HEADERS
  library/cpp/logger/priority.h
)

add_global_library_for(library-cpp-logger.global library-cpp-logger)
target_link_libraries(library-cpp-logger.global PUBLIC
  contrib-libs-cxxsupp
  yutil
  tools-enum_parser-enum_serialization_runtime
  library-cpp-json
  cpp-deprecated-atomic
)
target_sources(library-cpp-logger.global PRIVATE
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/composite_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/file_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/null_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/rotating_file_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/stream_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/sync_page_cache_file_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/system_creator.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/logger/uninitialized_creator.cpp
)