diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /contrib/restricted/aws/aws-c-common/ya.make | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'contrib/restricted/aws/aws-c-common/ya.make')
-rw-r--r-- | contrib/restricted/aws/aws-c-common/ya.make | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/contrib/restricted/aws/aws-c-common/ya.make b/contrib/restricted/aws/aws-c-common/ya.make new file mode 100644 index 0000000000..afc4b7af5b --- /dev/null +++ b/contrib/restricted/aws/aws-c-common/ya.make @@ -0,0 +1,128 @@ +# Generated by devtools/yamaker from nixpkgs 22.11. + +LIBRARY() + +LICENSE( + Apache-2.0 AND + BSD-3-Clause AND + MIT AND + Public-Domain +) + +LICENSE_TEXTS(.yandex_meta/licenses.list.txt) + +VERSION(0.8.6) + +ORIGINAL_SOURCE(https://github.com/awslabs/aws-c-common/archive/v0.8.6.tar.gz) + +ADDINCL( + GLOBAL contrib/restricted/aws/aws-c-common/generated/include + GLOBAL contrib/restricted/aws/aws-c-common/include +) + +NO_COMPILER_WARNINGS() + +NO_RUNTIME() + +CFLAGS( + -DAWS_COMMON_USE_IMPORT_EXPORT + -DAWS_PTHREAD_SETNAME_TAKES_2ARGS + -DCJSON_HIDE_SYMBOLS + -DHAVE_SYSCONF +) + +IF (MUSL) + CFLAGS( + -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD + ) +ELSEIF (OS_DARWIN) + CFLAGS( + -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_NONE + ) + LDFLAGS( + -framework + CoreFoundation + ) +ELSE() + CFLAGS( + -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD_ATTR + ) +ENDIF() + +IF (ARCH_X86_64) + CFLAGS( + -DHAVE_MM256_EXTRACT_EPI64 + -DHAVE_AVX2_INTRINSICS + -DUSE_SIMD_ENCODING + ) +ENDIF() + +SRCS( + source/allocator.c + source/allocator_sba.c + source/array_list.c + source/assert.c + source/bus.c + source/byte_buf.c + source/cache.c + source/codegen.c + source/command_line_parser.c + source/common.c + source/condition_variable.c + source/date_time.c + source/device_random.c + source/encoding.c + source/error.c + source/external/cJSON.c + source/fifo_cache.c + source/file.c + source/hash_table.c + source/json.c + source/lifo_cache.c + source/linked_hash_table.c + source/log_channel.c + source/log_formatter.c + source/log_writer.c + source/logging.c + source/lru_cache.c + source/math.c + source/memtrace.c + source/posix/clock.c + source/posix/condition_variable.c + source/posix/device_random.c + source/posix/environment.c + source/posix/file.c + source/posix/mutex.c + source/posix/process.c + source/posix/rw_lock.c + source/posix/system_info.c + source/posix/thread.c + source/posix/time.c + source/priority_queue.c + source/process_common.c + source/promise.c + source/ref_count.c + source/ring_buffer.c + source/statistics.c + source/string.c + source/task_scheduler.c + source/thread_scheduler.c + source/thread_shared.c + source/uri.c + source/uuid.c + source/xml_parser.c +) + +IF (ARCH_ARM) + SRCS( + source/arch/arm/asm/cpuid.c + ) +ELSEIF (ARCH_X86_64) + SRCS( + source/arch/intel/asm/cpuid.c + source/arch/intel/cpuid.c + ) + SRC_C_AVX2(source/arch/intel/encoding_avx2.c) +ENDIF() + +END() |