CMakeLists.linux-x86_64.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # This file was generated by the build system used internally in the Yandex monorepo.
  2. # Only simple modifications are allowed (adding source-files to targets, adding simple properties
  3. # like target_include_directories). These modifications will be ported to original
  4. # ya.make files by maintainers. Any complex modifications which can't be ported back to the
  5. # original buildsystem will not be accepted.
  6. get_built_tool_path(
  7. TOOL_archiver_bin
  8. TOOL_archiver_dependency
  9. tools/archiver
  10. archiver
  11. )
  12. add_library(library-cpp-config)
  13. target_include_directories(library-cpp-config PUBLIC
  14. ${CMAKE_BINARY_DIR}/library/cpp/config
  15. )
  16. target_link_libraries(library-cpp-config PUBLIC
  17. contrib-libs-linux-headers
  18. contrib-libs-cxxsupp
  19. yutil
  20. library-cpp-archive
  21. library-cpp-json
  22. library-cpp-lua
  23. cpp-string_utils-relaxed_escaper
  24. )
  25. target_sources(library-cpp-config PRIVATE
  26. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  27. ${CMAKE_SOURCE_DIR}/library/cpp/config/config.cpp
  28. ${CMAKE_SOURCE_DIR}/library/cpp/config/sax.cpp
  29. ${CMAKE_SOURCE_DIR}/library/cpp/config/value.cpp
  30. ${CMAKE_SOURCE_DIR}/library/cpp/config/markup.cpp
  31. ${CMAKE_SOURCE_DIR}/library/cpp/config/ini.cpp
  32. ${CMAKE_SOURCE_DIR}/library/cpp/config/domscheme.cpp
  33. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  34. )
  35. add_custom_command(
  36. OUTPUT
  37. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  38. DEPENDS
  39. ${TOOL_archiver_bin}
  40. ${CMAKE_SOURCE_DIR}/library/cpp/config/support/pp.lua
  41. COMMAND
  42. ${TOOL_archiver_bin}
  43. -q
  44. -x
  45. ${CMAKE_SOURCE_DIR}/library/cpp/config/support/pp.lua:
  46. -o
  47. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  48. )
  49. target_ragel_lexers(library-cpp-config
  50. PRIVATE
  51. ${CMAKE_SOURCE_DIR}/library/cpp/config/markupfsm.h.rl6
  52. -CG2
  53. )
  54. if(NOT CMAKE_CROSSCOMPILING)
  55. add_dependencies(library-cpp-config
  56. archiver
  57. )
  58. endif()