blob: a749cac8a0389702b3ed5eb8cef6574e69bfb003 (
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
|
# This file was generated 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.
find_package(Python3 REQUIRED)
set(
KOSHER_SVN_VERSION
)
set(
SANDBOX_TASK_ID
0
)
set(
BUILD_TYPE
RELEASE
)
add_library(library-cpp-build_info)
target_include_directories(library-cpp-build_info PUBLIC
${CMAKE_BINARY_DIR}/library/cpp/build_info
)
target_link_libraries(library-cpp-build_info PUBLIC
contrib-libs-cxxsupp
yutil
cpp-string_utils-base64
)
target_sources(library-cpp-build_info PRIVATE
${CMAKE_SOURCE_DIR}/library/cpp/build_info/build_info_static.cpp
${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
${CMAKE_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
${CMAKE_BINARY_DIR}/library/cpp/build_info/build_info.cpp
)
add_custom_command(
OUTPUT
${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
DEPENDS
${CMAKE_SOURCE_DIR}/build/scripts/build_info_gen.py
COMMAND
Python3::Interpreter
${CMAKE_SOURCE_DIR}/build/scripts/build_info_gen.py
${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
\"${CMAKE_CXX_COMPILER}\"
\"${CMAKE_CXX_FLAGS}\"
)
configure_file(
${CMAKE_SOURCE_DIR}/library/cpp/build_info/sandbox.cpp.in
${CMAKE_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
)
configure_file(
${CMAKE_SOURCE_DIR}/library/cpp/build_info/build_info.cpp.in
${CMAKE_BINARY_DIR}/library/cpp/build_info/build_info.cpp
)
|