ya.make 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Generated by devtools/yamaker from nixpkgs 22.11.
  2. LIBRARY()
  3. LICENSE(
  4. BSL-1.0 AND
  5. MIT AND
  6. NCSA
  7. )
  8. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  9. VERSION(1.86.0)
  10. ORIGINAL_SOURCE(https://github.com/boostorg/thread/archive/boost-1.86.0.tar.gz)
  11. PEERDIR(
  12. contrib/restricted/boost/assert
  13. contrib/restricted/boost/atomic
  14. contrib/restricted/boost/bind
  15. contrib/restricted/boost/chrono
  16. contrib/restricted/boost/concept_check
  17. contrib/restricted/boost/config
  18. contrib/restricted/boost/container
  19. contrib/restricted/boost/container_hash
  20. contrib/restricted/boost/core
  21. contrib/restricted/boost/date_time
  22. contrib/restricted/boost/exception
  23. contrib/restricted/boost/function
  24. contrib/restricted/boost/io
  25. contrib/restricted/boost/move
  26. contrib/restricted/boost/optional
  27. contrib/restricted/boost/predef
  28. contrib/restricted/boost/preprocessor
  29. contrib/restricted/boost/smart_ptr
  30. contrib/restricted/boost/static_assert
  31. contrib/restricted/boost/system
  32. contrib/restricted/boost/throw_exception
  33. contrib/restricted/boost/tuple
  34. contrib/restricted/boost/type_traits
  35. contrib/restricted/boost/utility
  36. contrib/restricted/boost/winapi
  37. )
  38. ADDINCL(
  39. GLOBAL contrib/restricted/boost/thread/include
  40. )
  41. NO_COMPILER_WARNINGS()
  42. NO_UTIL()
  43. IF (DYNAMIC_BOOST)
  44. CFLAGS(
  45. -DBOOST_THREAD_BUILD_DLL
  46. GLOBAL -DBOOST_THREAD_USE_DLL
  47. )
  48. ELSE()
  49. CFLAGS(
  50. -DBOOST_THREAD_BUILD_LIB
  51. GLOBAL -DBOOST_THREAD_USE_LIB
  52. )
  53. ENDIF()
  54. SRCS(
  55. src/future.cpp
  56. )
  57. IF (OS_WINDOWS)
  58. CFLAGS(
  59. GLOBAL -DBOOST_THREAD_WIN32
  60. -DBOOST_THREAD_USES_CHRONO
  61. -DWIN32_LEAN_AND_MEAN
  62. -DBOOST_USE_WINDOWS_H
  63. )
  64. SRCS(
  65. src/win32/thread.cpp
  66. src/win32/thread_primitives.cpp
  67. src/win32/tss_dll.cpp
  68. src/win32/tss_pe.cpp
  69. )
  70. ELSE()
  71. CFLAGS(
  72. GLOBAL -DBOOST_THREAD_POSIX
  73. -DBOOST_THREAD_DONT_USE_CHRONO
  74. )
  75. SRCS(
  76. src/pthread/once.cpp
  77. src/pthread/thread.cpp
  78. )
  79. ENDIF()
  80. END()