global_vars.cmake 996 B

12345678910111213141516171819202122232425
  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. if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
  7. set(YASM_FLAGS -f elf64 -D UNIX -D _x86_64_ -D_YASM_ -g dwarf2)
  8. set(BISON_FLAGS -v)
  9. set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/)
  10. endif()
  11. if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
  12. set(BISON_FLAGS -v)
  13. set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/)
  14. endif()
  15. if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
  16. set(YASM_FLAGS -f macho64 -D DARWIN -D UNIX -D _x86_64_ -D_YASM_)
  17. set(BISON_FLAGS -v)
  18. set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/)
  19. endif()