ya.make 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # Generated by devtools/yamaker from nixpkgs 24.05.
  2. LIBRARY()
  3. LICENSE(
  4. Apache-2.0 AND
  5. BSD-3-Clause AND
  6. MIT AND
  7. Public-Domain
  8. )
  9. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  10. VERSION(0.8.15)
  11. ORIGINAL_SOURCE(https://github.com/awslabs/aws-c-common/archive/v0.8.15.tar.gz)
  12. ADDINCL(
  13. GLOBAL contrib/restricted/aws/aws-c-common/generated/include
  14. GLOBAL contrib/restricted/aws/aws-c-common/include
  15. )
  16. NO_COMPILER_WARNINGS()
  17. NO_RUNTIME()
  18. CFLAGS(
  19. -DAWS_COMMON_USE_IMPORT_EXPORT
  20. -DAWS_PTHREAD_GETNAME_TAKES_3ARGS
  21. -DAWS_PTHREAD_SETNAME_TAKES_2ARGS
  22. -DCJSON_HIDE_SYMBOLS
  23. -DHAVE_SYSCONF
  24. )
  25. IF (MUSL)
  26. CFLAGS(
  27. -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD
  28. )
  29. ELSEIF (OS_DARWIN)
  30. CFLAGS(
  31. -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_NONE
  32. )
  33. LDFLAGS(
  34. -framework
  35. CoreFoundation
  36. )
  37. ELSEIF (OS_WINDOWS)
  38. CFLAGS(
  39. -DAWS_COMMON_EXPORTS
  40. )
  41. ELSE()
  42. CFLAGS(
  43. -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD_ATTR
  44. )
  45. ENDIF()
  46. IF (ARCH_X86_64)
  47. CFLAGS(
  48. -DHAVE_MM256_EXTRACT_EPI64
  49. -DHAVE_AVX2_INTRINSICS
  50. -DUSE_SIMD_ENCODING
  51. )
  52. ENDIF()
  53. SRCS(
  54. source/allocator.c
  55. source/allocator_sba.c
  56. source/array_list.c
  57. source/assert.c
  58. source/byte_buf.c
  59. source/cache.c
  60. source/codegen.c
  61. source/command_line_parser.c
  62. source/common.c
  63. source/condition_variable.c
  64. source/date_time.c
  65. source/device_random.c
  66. source/encoding.c
  67. source/error.c
  68. source/external/cJSON.c
  69. source/fifo_cache.c
  70. source/file.c
  71. source/hash_table.c
  72. source/json.c
  73. source/lifo_cache.c
  74. source/linked_hash_table.c
  75. source/log_channel.c
  76. source/log_formatter.c
  77. source/log_writer.c
  78. source/logging.c
  79. source/lru_cache.c
  80. source/math.c
  81. source/memtrace.c
  82. source/priority_queue.c
  83. source/process_common.c
  84. source/promise.c
  85. source/ref_count.c
  86. source/ring_buffer.c
  87. source/statistics.c
  88. source/string.c
  89. source/task_scheduler.c
  90. source/thread_scheduler.c
  91. source/thread_shared.c
  92. source/uri.c
  93. source/uuid.c
  94. source/xml_parser.c
  95. )
  96. IF (ARCH_ARM)
  97. SRCS(
  98. source/arch/arm/asm/cpuid.c
  99. )
  100. ELSEIF (ARCH_X86_64)
  101. SRCS(
  102. source/arch/intel/asm/cpuid.c
  103. source/arch/intel/cpuid.c
  104. )
  105. SRC_C_AVX2(source/arch/intel/encoding_avx2.c)
  106. ENDIF()
  107. IF (NOT OS_WINDOWS)
  108. SRCS(
  109. source/posix/clock.c
  110. source/posix/condition_variable.c
  111. source/posix/device_random.c
  112. source/posix/environment.c
  113. source/posix/file.c
  114. source/posix/mutex.c
  115. source/posix/process.c
  116. source/posix/rw_lock.c
  117. source/posix/system_info.c
  118. source/posix/thread.c
  119. source/posix/time.c
  120. )
  121. ENDIF()
  122. END()