CMakeLists.darwin-arm64.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-cxxsupp
  18. yutil
  19. library-cpp-archive
  20. library-cpp-json
  21. library-cpp-lua
  22. cpp-string_utils-relaxed_escaper
  23. )
  24. target_sources(library-cpp-config PRIVATE
  25. ${CMAKE_SOURCE_DIR}/library/cpp/config/config.cpp
  26. ${CMAKE_SOURCE_DIR}/library/cpp/config/sax.cpp
  27. ${CMAKE_SOURCE_DIR}/library/cpp/config/value.cpp
  28. ${CMAKE_SOURCE_DIR}/library/cpp/config/markup.cpp
  29. ${CMAKE_SOURCE_DIR}/library/cpp/config/ini.cpp
  30. ${CMAKE_SOURCE_DIR}/library/cpp/config/domscheme.cpp
  31. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  32. )
  33. add_custom_command(
  34. OUTPUT
  35. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  36. DEPENDS
  37. ${TOOL_archiver_bin}
  38. ${CMAKE_SOURCE_DIR}/library/cpp/config/support/pp.lua
  39. COMMAND
  40. ${TOOL_archiver_bin}
  41. -q
  42. -x
  43. ${CMAKE_SOURCE_DIR}/library/cpp/config/support/pp.lua:
  44. -o
  45. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  46. )
  47. target_ragel_lexers(library-cpp-config
  48. PRIVATE
  49. ${CMAKE_SOURCE_DIR}/library/cpp/config/markupfsm.h.rl6
  50. -CG2
  51. )
  52. if(NOT CMAKE_CROSSCOMPILING)
  53. add_dependencies(library-cpp-config
  54. archiver
  55. )
  56. endif()