diff options
author | alexv-smirnov <[email protected]> | 2023-03-15 19:59:12 +0300 |
---|---|---|
committer | alexv-smirnov <[email protected]> | 2023-03-15 19:59:12 +0300 |
commit | 056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch) | |
tree | 4740980126f32e3af7937ba0ca5f83e59baa4ab0 /contrib/restricted/aws/aws-c-common | |
parent | 269126dcced1cc8b53eb4398b4a33e5142f10290 (diff) |
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'contrib/restricted/aws/aws-c-common')
-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 00000000000..afc4b7af5b2 --- /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() |