Browse Source

intermediate changes
ref:e3f00ef4e6dea6578b7e9ead4e6c020e1e259495

arcadia-devtools 3 years ago
parent
commit
840813e444

+ 6 - 6
CMakeLists.txt

@@ -244,6 +244,10 @@ add_subdirectory(library/cpp/string_utils/levenshtein_diff)
 add_subdirectory(util/draft)
 add_subdirectory(library/cpp/yson)
 add_subdirectory(library/cpp/yt/misc)
+add_subdirectory(contrib/libs/farmhash)
+add_subdirectory(contrib/libs/farmhash/arch/sse41)
+add_subdirectory(contrib/libs/farmhash/arch/sse42)
+add_subdirectory(contrib/libs/farmhash/arch/sse42_aesni)
 add_subdirectory(library/cpp/yt/exception)
 add_subdirectory(library/cpp/yt/yson)
 add_subdirectory(library/cpp/yt/yson_string)
@@ -260,10 +264,10 @@ add_subdirectory(contrib/libs/zstd)
 add_subdirectory(contrib/libs/xxhash)
 add_subdirectory(ydb/library/yql/public/decimal)
 add_subdirectory(ydb/library/yql/public/types)
-add_subdirectory(contrib/tools/protoc/plugins/cpp_styleguide)
-add_subdirectory(contrib/libs/protoc)
 add_subdirectory(contrib/libs/protobuf)
 add_subdirectory(contrib/tools/protoc/bin)
+add_subdirectory(contrib/libs/protoc)
+add_subdirectory(contrib/tools/protoc/plugins/cpp_styleguide)
 add_subdirectory(ydb/library/yql/utils)
 add_subdirectory(library/cpp/digest/md5)
 add_subdirectory(contrib/libs/nayuki_md5)
@@ -1071,10 +1075,6 @@ add_subdirectory(ydb/library/yql/udfs/common/datetime)
 add_subdirectory(library/cpp/timezone_conversion)
 add_subdirectory(ydb/library/yql/udfs/common/datetime2)
 add_subdirectory(ydb/library/yql/udfs/common/digest)
-add_subdirectory(contrib/libs/farmhash)
-add_subdirectory(contrib/libs/farmhash/arch/sse41)
-add_subdirectory(contrib/libs/farmhash/arch/sse42)
-add_subdirectory(contrib/libs/farmhash/arch/sse42_aesni)
 add_subdirectory(contrib/libs/highwayhash)
 add_subdirectory(contrib/libs/highwayhash/arch/avx2)
 add_subdirectory(contrib/libs/highwayhash/arch/sse41)

+ 11 - 11
build/ya.conf.json

@@ -7449,7 +7449,7 @@
         },
         "horadric": {
             "formula": {
-                "sandbox_id": 1225176308,
+                "sandbox_id": 1226278037,
                 "match": "horadric"
             },
             "executable": {
@@ -7592,7 +7592,7 @@
         },
         "apphost": {
             "formula": {
-                "sandbox_id": 1225176116,
+                "sandbox_id": 1226278001,
                 "match": "app_host_launcher"
             },
             "executable": {
@@ -8244,7 +8244,7 @@
         },
         "bigb_request": {
             "formula": {
-                "sandbox_id": 1225176234,
+                "sandbox_id": 1226279272,
                 "match": "bb_requester"
             },
             "executable": {
@@ -8255,7 +8255,7 @@
         },
         "bigb_hitlog_analyser": {
             "formula": {
-                "sandbox_id": 1225175680,
+                "sandbox_id": 1226278641,
                 "match": "hitlog_analyser"
             },
             "executable": {
@@ -8277,7 +8277,7 @@
         },
         "bigb_bb_cluster_analyzer": {
             "formula": {
-                "sandbox_id": 1225175409,
+                "sandbox_id": 1226278941,
                 "match": "bb_cluster_analyzer"
             },
             "executable": {
@@ -8288,7 +8288,7 @@
         },
         "bigb_yt_profiles_dumper": {
             "formula": {
-                "sandbox_id": 1225175321,
+                "sandbox_id": 1226277852,
                 "match": "yt_profiles_dumper"
             },
             "executable": {
@@ -8299,7 +8299,7 @@
         },
         "bigb_ab": {
             "formula": {
-                "sandbox_id": 1225175350,
+                "sandbox_id": 1226280514,
                 "match": "ab"
             },
             "executable": {
@@ -8323,7 +8323,7 @@
         },
         "caesar_yt_sync": {
             "formula": {
-                "sandbox_id": 1225175813,
+                "sandbox_id": 1226279126,
                 "match": "yt_sync"
             },
             "executable": {
@@ -8334,7 +8334,7 @@
         },
         "caesar_lookup_profile": {
             "formula": {
-                "sandbox_id": 1225176078,
+                "sandbox_id": 1226278651,
                 "match": "lookup_profile"
             },
             "executable": {
@@ -8345,7 +8345,7 @@
         },
         "exp_stats": {
             "formula": {
-                "sandbox_id": 1225177637,
+                "sandbox_id": 1226279195,
                 "match": "exp_stats"
             },
             "executable": {
@@ -8356,7 +8356,7 @@
         },
         "caesar_profile_size_analyzer": {
             "formula": {
-                "sandbox_id": 1225175980,
+                "sandbox_id": 1226278665,
                 "match": "profile_size_analyzer"
             },
             "executable": {

+ 7 - 7
build/ymake.core.conf

@@ -866,7 +866,7 @@ macro YP_PROTO_YSON(OUT_OPTS[], Files...) {
 # tag:proto
 macro _CPP_PROTO_CMD(File) {
     .CMD=$CPP_PROTO_CMDLINE $CPP_PROTO_OPTS $CPP_PROTO_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"}
-    .SEM=target_proto_messages PRIVATE ${input:File} $CPP_PROTO_OUTS_SEM ${output;hide;suf=${OBJ_SUF}.pb.o:File} ${hide;tool:"contrib/tools/protoc/bin"} && set_global_flags COMMON_PROTOC_FLAGS -I=$ARCADIA_ROOT -I=$ARCADIA_BUILD_ROOT
+    .SEM=target_proto_messages PRIVATE ${input:File} $CPP_PROTO_OUTS_SEM ${output;hide;suf=${OBJ_SUF}.pb.o:File} ${hide;tool:"contrib/tools/protoc/bin"} ${hide;tool:"contrib/tools/protoc/plugins/cpp_styleguide"} && set_global_flags COMMON_PROTOC_FLAGS -I=$ARCADIA_ROOT -I=$ARCADIA_BUILD_ROOT
     .PEERDIR=contrib/libs/protobuf
 }
 
@@ -2621,7 +2621,7 @@ module RECURSIVE_LIBRARY: LIBRARY {
 
 _SONAME=
 macro _ADD_DYNLYB_SEM(Libname) {
-    .SEM=add_library ${MODDIR} ${Libname} SHARED ${hide:TARGET} ${hide:AUTO_INPUT} && target_include_directories PUBLIC $_C__INCLUDE_GLOBAL && target_include_directories PRIVATE $_C__INCLUDE_OWNED && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS && target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW
+    .SEM=add_library ${MODDIR} ${Libname} SHARED ${hide:TARGET} ${hide:AUTO_INPUT} && target_include_directories PUBLIC $_C__INCLUDE_GLOBAL && target_include_directories PRIVATE $_C__INCLUDE_OWNED && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS && target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW && vcs_info
 }
 CPP_DYN_LIBRARY_SEM=$_ADD_DYNLYB_SEM($REALPRJNAME)
 
@@ -7118,7 +7118,7 @@ macro _SET_ENV_FOR_CUSTOM_COMMAND(Args...) {
     .SEM=$_SET_ENV_FOR_CUSTOM_COMMAND_IMPL(${pre=GENERATE :Args})
 }
 
-### @usage: RUN_PROGRAM(tool_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs])
+### @usage: RUN_PROGRAM(tool_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [IN_NOPARSE inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs])
 ###
 ### Run a program from arcadia.
 ### These macros are similar: RUN_PROGRAM, LUA, PYTHON.
@@ -7129,7 +7129,7 @@ macro _SET_ENV_FOR_CUSTOM_COMMAND(Args...) {
 ### - CWD dir - Absolute path of the working directory.
 ### - ENV key=value... - Environment variables.
 ### - TOOL tools... - Auxiliary tool directories.
-### - IN inputs... - Input files
+### - IN[_NOPARSE] inputs... - Input files. NOPARSE inputs are treated as textual and not parsed for dependencies regardless of file extensions.
 ### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process.
 ### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file.
 ### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them.
@@ -7138,8 +7138,8 @@ macro _SET_ENV_FOR_CUSTOM_COMMAND(Args...) {
 ### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or
 ### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used.
 ### Note that Tool is always built for the host platform, so be careful to provide that tool can be built for all Arcadia major host platforms (Linux, MacOS and Windows).
-macro RUN_PROGRAM(Tool, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) {
-    .CMD=${cwd:CWD} ${env:ENV} ${tool:Tool} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PR"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"}
+macro RUN_PROGRAM(Tool, IN{input}[], IN_NOPARSE{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) {
+    .CMD=${cwd:CWD} ${env:ENV} ${tool:Tool} $Args ${input;hide:IN} ${input;context=TEXT;hide:IN_NOPARSE} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PR"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"}
     .SEM=add_custom_command $_SET_ENV_FOR_CUSTOM_COMMAND($ENV) OUTPUT ${output:OUT} ${output;noauto:OUT_NOAUTO} ${output:STDOUT} ${output;noauto:STDOUT_NOAUTO} DEPENDS ${input:IN} ${tool:Tool} ${tool:TOOL} ${pre=WORKING_DIRECTORY :CWD} COMMAND ${tool:Tool} $Args ${pre=> :STDOUT} ${pre=> :STDOUT_NOAUTO} $_TARGET_SOURCES_FOR_HEADERS($OUT $OUT_NOAUTO $STDOUT $STDOUT_NOAUTO)
 }
 
@@ -7636,7 +7636,7 @@ _PROTO_DESC_MERGE_PEERS_CMD=$YMAKE_PYTHON ${input:"build/scripts/merge_files.py"
 
 NEED_GOOGLE_PROTO_PEERDIRS=yes
 
-PROTO_LIBRARY_SEM=$CPP_LIBRARY_SEM && target_proto_plugin cpp_styleguide ${tool:"contrib/tools/protoc/plugins/cpp_styleguide"}
+PROTO_LIBRARY_SEM=$CPP_LIBRARY_SEM
 
 # tag:proto
 ### @usage: PROTO_LIBRARY()

+ 0 - 4
library/cpp/actors/protos/CMakeLists.txt

@@ -10,7 +10,3 @@ target_proto_messages(cpp-actors-protos PRIVATE
   ${CMAKE_SOURCE_DIR}/library/cpp/actors/protos/services_common.proto
   ${CMAKE_SOURCE_DIR}/library/cpp/actors/protos/unittests.proto
 )
-target_proto_plugin(cpp-actors-protos
-  cpp_styleguide
-  cpp_styleguide
-)

+ 0 - 4
library/cpp/histogram/adaptive/protos/CMakeLists.txt

@@ -7,7 +7,3 @@ target_link_libraries(histogram-adaptive-protos PUBLIC
 target_proto_messages(histogram-adaptive-protos PRIVATE
   ${CMAKE_SOURCE_DIR}/library/cpp/histogram/adaptive/protos/histo.proto
 )
-target_proto_plugin(histogram-adaptive-protos
-  cpp_styleguide
-  cpp_styleguide
-)

+ 0 - 4
library/cpp/lwtrace/protos/CMakeLists.txt

@@ -7,7 +7,3 @@ target_link_libraries(cpp-lwtrace-protos PUBLIC
 target_proto_messages(cpp-lwtrace-protos PRIVATE
   ${CMAKE_SOURCE_DIR}/library/cpp/lwtrace/protos/lwtrace.proto
 )
-target_proto_plugin(cpp-lwtrace-protos
-  cpp_styleguide
-  cpp_styleguide
-)

+ 0 - 4
library/cpp/messagebus/monitoring/CMakeLists.txt

@@ -8,7 +8,3 @@ target_link_libraries(cpp-messagebus-monitoring PUBLIC
 target_proto_messages(cpp-messagebus-monitoring PRIVATE
   ${CMAKE_SOURCE_DIR}/library/cpp/messagebus/monitoring/mon_proto.proto
 )
-target_proto_plugin(cpp-messagebus-monitoring
-  cpp_styleguide
-  cpp_styleguide
-)

+ 0 - 4
library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt

@@ -7,7 +7,3 @@ target_link_libraries(encode-legacy_protobuf-protos PUBLIC
 target_proto_messages(encode-legacy_protobuf-protos PRIVATE
   ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto
 )
-target_proto_plugin(encode-legacy_protobuf-protos
-  cpp_styleguide
-  cpp_styleguide
-)

+ 0 - 4
library/cpp/protobuf/util/proto/CMakeLists.txt

@@ -7,7 +7,3 @@ target_link_libraries(protobuf-util-proto PUBLIC
 target_proto_messages(protobuf-util-proto PRIVATE
   ${CMAKE_SOURCE_DIR}/library/cpp/protobuf/util/proto/merge.proto
 )
-target_proto_plugin(protobuf-util-proto
-  cpp_styleguide
-  cpp_styleguide
-)

+ 0 - 4
library/cpp/retry/protos/CMakeLists.txt

@@ -7,7 +7,3 @@ target_link_libraries(cpp-retry-protos PUBLIC
 target_proto_messages(cpp-retry-protos PRIVATE
   ${CMAKE_SOURCE_DIR}/library/cpp/retry/protos/retry_options.proto
 )
-target_proto_plugin(cpp-retry-protos
-  cpp_styleguide
-  cpp_styleguide
-)

Some files were not shown because too many files changed in this diff