
# This file was generated by the build system used internally in Yandex and called "ya"
# (https://github.com/yandex/yatool).
#
# Configuration files of ya build system are usually named ya.make. If ya.make file is present
# at the root of the repository, then this repository supports ya build. 
# 
# If the repository supports both CMake and ya build configurations, please modify both of them.
#
# If only CMake build configuration is supported then modify only CMake files and note that only
# simple modifications are allowed like adding source-files to targets or 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 easily ported back to the ya build 
# system may be rejected.

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
  ${PROJECT_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
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
  ${PROJECT_SOURCE_DIR}/library/cpp/build_info/build_info_static.cpp
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/build_info.cpp
)


add_custom_command(
  OUTPUT
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
  DEPENDS
  ${PROJECT_SOURCE_DIR}/build/scripts/build_info_gen.py
  COMMAND
  Python3::Interpreter
  ${PROJECT_SOURCE_DIR}/build/scripts/build_info_gen.py
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
  \"${CMAKE_CXX_COMPILER}\"
  \"${CMAKE_CXX_FLAGS}\"
)

configure_file(
  ${PROJECT_SOURCE_DIR}/library/cpp/build_info/sandbox.cpp.in
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
)

configure_file(
  ${PROJECT_SOURCE_DIR}/library/cpp/build_info/build_info.cpp.in
  ${PROJECT_BINARY_DIR}/library/cpp/build_info/build_info.cpp
)





