ya.make 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Generated by devtools/yamaker from nixpkgs 22.11.
  2. LIBRARY()
  3. VERSION(2021.8.0)
  4. ORIGINAL_SOURCE(https://github.com/oneapi-src/oneTBB/archive/v2021.8.0.tar.gz)
  5. LICENSE(Apache-2.0)
  6. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  7. ADDINCL(
  8. GLOBAL contrib/libs/tbb/include
  9. )
  10. NO_COMPILER_WARNINGS()
  11. NO_UTIL()
  12. CFLAGS(
  13. -D__TBB_BUILD
  14. )
  15. SRCS(
  16. src/tbb/address_waiter.cpp
  17. src/tbb/allocator.cpp
  18. src/tbb/arena.cpp
  19. src/tbb/arena_slot.cpp
  20. src/tbb/concurrent_bounded_queue.cpp
  21. src/tbb/dynamic_link.cpp
  22. src/tbb/exception.cpp
  23. src/tbb/global_control.cpp
  24. src/tbb/governor.cpp
  25. src/tbb/main.cpp
  26. src/tbb/market.cpp
  27. src/tbb/misc.cpp
  28. src/tbb/misc_ex.cpp
  29. src/tbb/observer_proxy.cpp
  30. src/tbb/parallel_pipeline.cpp
  31. src/tbb/private_server.cpp
  32. src/tbb/profiling.cpp
  33. src/tbb/queuing_rw_mutex.cpp
  34. src/tbb/rml_tbb.cpp
  35. src/tbb/rtm_mutex.cpp
  36. src/tbb/rtm_rw_mutex.cpp
  37. src/tbb/semaphore.cpp
  38. src/tbb/small_object_pool.cpp
  39. src/tbb/task.cpp
  40. src/tbb/task_dispatcher.cpp
  41. src/tbb/task_group_context.cpp
  42. src/tbb/version.cpp
  43. )
  44. IF (CLANG OR CLANG_CL)
  45. IF (ARCH_I386 OR ARCH_I686 OR ARCH_X86_64)
  46. CFLAGS(
  47. -mrtm
  48. -mwaitpkg
  49. )
  50. ENDIF()
  51. ENDIF()
  52. IF (OS_WINDOWS)
  53. CFLAGS(
  54. -DUSE_WINTHREAD
  55. )
  56. ELSE()
  57. CFLAGS(
  58. -DUSE_PTHREAD
  59. )
  60. ENDIF()
  61. IF (GCC)
  62. CFLAGS(
  63. -flifetime-dse=1
  64. -mrtm
  65. )
  66. ENDIF()
  67. IF (NOT ARCH_ARM64)
  68. CFLAGS(
  69. -D__TBB_USE_ITT_NOTIFY
  70. -DDO_ITT_NOTIFY
  71. )
  72. SRCS(
  73. src/tbb/itt_notify.cpp
  74. )
  75. ENDIF()
  76. END()