diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
commit | b4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch) | |
tree | 6a64ab25a145265287789bceed3f59e953561206 /library/cpp/build_info | |
parent | 5e837a820d5be0671fa4096a1cc1e378453e5132 (diff) | |
download | ydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz |
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/build_info')
-rw-r--r-- | library/cpp/build_info/CMakeLists.txt | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/library/cpp/build_info/CMakeLists.txt b/library/cpp/build_info/CMakeLists.txt new file mode 100644 index 0000000000..3f2ab03f7b --- /dev/null +++ b/library/cpp/build_info/CMakeLists.txt @@ -0,0 +1,48 @@ +find_package(Python2) + +add_library(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 INTERFACE + ${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h +) +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/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 + Python2::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}\" +) +set( + KOSHER_SVN_VERSION + +) +set( + SANDBOX_TASK_ID + 0 +) +configure_file( + ${CMAKE_SOURCE_DIR}/library/cpp/build_info/sandbox.cpp.in + ${CMAKE_BINARY_DIR}/library/cpp/build_info/sandbox.cpp +) +set( + BUILD_TYPE + RELEASE +) +configure_file( + ${CMAKE_SOURCE_DIR}/library/cpp/build_info/build_info.cpp.in + ${CMAKE_BINARY_DIR}/library/cpp/build_info/build_info.cpp +) |