|
|
|
@ -886,39 +886,6 @@ protobuf_generate_grpc_cpp_with_import_path_correction( |
|
|
|
|
|
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
add_custom_target(buildtests_c) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_call_spine) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_chaotic_good) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_client_call) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_client_channel) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_experiments) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_http_client_filter) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_inproc) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_load_balanced_call_destination) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_metadata) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_party) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c bm_picker) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c fd_conservation_posix_test) |
|
|
|
|
endif() |
|
|
|
@ -926,9 +893,6 @@ if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX OR _gRPC_PLATFORM_WINDOWS) |
|
|
|
|
add_dependencies(buildtests_c pollset_windows_starvation_test) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_c static_stride_scheduler_benchmark) |
|
|
|
|
endif() |
|
|
|
|
add_dependencies(buildtests_c test_core_iomgr_timer_list_test) |
|
|
|
|
|
|
|
|
|
add_custom_target(buildtests_cxx) |
|
|
|
@ -1251,9 +1215,6 @@ if(gRPC_BUILD_TESTS) |
|
|
|
|
endif() |
|
|
|
|
add_dependencies(buildtests_cxx load_config_test) |
|
|
|
|
add_dependencies(buildtests_cxx load_file_test) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_cxx lock_free_event_test) |
|
|
|
|
endif() |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
add_dependencies(buildtests_cxx log_too_many_open_files_test) |
|
|
|
|
endif() |
|
|
|
@ -5935,448 +5896,6 @@ endif() |
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_call_spine |
|
|
|
|
test/core/transport/bm_call_spine.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_call_spine |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_call_spine PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_call_spine |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_call_spine |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_chaotic_good |
|
|
|
|
src/core/ext/transport/chaotic_good/client_transport.cc |
|
|
|
|
src/core/ext/transport/chaotic_good/frame.cc |
|
|
|
|
src/core/ext/transport/chaotic_good/frame_header.cc |
|
|
|
|
src/core/ext/transport/chaotic_good/server_transport.cc |
|
|
|
|
src/core/lib/transport/promise_endpoint.cc |
|
|
|
|
test/core/test_util/passthrough_endpoint.cc |
|
|
|
|
test/core/transport/benchmarks/bm_chaotic_good.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_chaotic_good |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_chaotic_good PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_chaotic_good |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_chaotic_good |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_client_call |
|
|
|
|
test/core/call/bm_client_call.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_client_call |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_client_call PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_client_call |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_client_call |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_client_channel |
|
|
|
|
test/core/client_channel/bm_client_channel.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_client_channel |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_client_channel PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_client_channel |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_client_channel |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_experiments |
|
|
|
|
test/core/experiments/bm_experiments.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_experiments |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_experiments PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_experiments |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_experiments |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc_test_util |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_http_client_filter |
|
|
|
|
test/core/filters/bm_http_client_filter.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_http_client_filter |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_http_client_filter PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_http_client_filter |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_http_client_filter |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_inproc |
|
|
|
|
src/core/ext/transport/chaotic_good/client_transport.cc |
|
|
|
|
src/core/ext/transport/chaotic_good/frame.cc |
|
|
|
|
src/core/ext/transport/chaotic_good/frame_header.cc |
|
|
|
|
src/core/ext/transport/chaotic_good/server_transport.cc |
|
|
|
|
src/core/lib/transport/promise_endpoint.cc |
|
|
|
|
test/core/test_util/passthrough_endpoint.cc |
|
|
|
|
test/core/transport/benchmarks/bm_inproc.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_inproc |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_inproc PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_inproc |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_inproc |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_load_balanced_call_destination |
|
|
|
|
test/core/client_channel/bm_load_balanced_call_destination.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_load_balanced_call_destination |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_load_balanced_call_destination PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_load_balanced_call_destination |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_load_balanced_call_destination |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_metadata |
|
|
|
|
test/core/transport/bm_metadata.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_metadata |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_metadata PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_metadata |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_metadata |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_party |
|
|
|
|
test/core/promise/bm_party.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_party |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_party PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_party |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_party |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(bm_picker |
|
|
|
|
test/core/load_balancing/bm_picker.cc |
|
|
|
|
test/core/test_util/build.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(bm_picker |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(bm_picker PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(bm_picker |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(bm_picker |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
@ -6496,47 +6015,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX OR _gRPC_PLATFORM_WINDOWS) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(static_stride_scheduler_benchmark |
|
|
|
|
src/core/load_balancing/weighted_round_robin/static_stride_scheduler.cc |
|
|
|
|
test/core/load_balancing/static_stride_scheduler_benchmark.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(static_stride_scheduler_benchmark |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(static_stride_scheduler_benchmark PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(static_stride_scheduler_benchmark |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(static_stride_scheduler_benchmark |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
absl::algorithm_container |
|
|
|
|
absl::span |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
gpr |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
@ -20071,51 +19549,6 @@ target_link_libraries(load_file_test |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) |
|
|
|
|
|
|
|
|
|
add_executable(lock_free_event_test |
|
|
|
|
test/core/event_engine/posix/lock_free_event_test.cc |
|
|
|
|
) |
|
|
|
|
if(WIN32 AND MSVC) |
|
|
|
|
if(BUILD_SHARED_LIBS) |
|
|
|
|
target_compile_definitions(lock_free_event_test |
|
|
|
|
PRIVATE |
|
|
|
|
"GPR_DLL_IMPORTS" |
|
|
|
|
"GRPC_DLL_IMPORTS" |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
target_compile_features(lock_free_event_test PUBLIC cxx_std_14) |
|
|
|
|
target_include_directories(lock_free_event_test |
|
|
|
|
PRIVATE |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
|
|
|
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR} |
|
|
|
|
${_gRPC_RE2_INCLUDE_DIR} |
|
|
|
|
${_gRPC_SSL_INCLUDE_DIR} |
|
|
|
|
${_gRPC_UPB_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_GRPC_GENERATED_DIR} |
|
|
|
|
${_gRPC_UPB_INCLUDE_DIR} |
|
|
|
|
${_gRPC_XXHASH_INCLUDE_DIR} |
|
|
|
|
${_gRPC_ZLIB_INCLUDE_DIR} |
|
|
|
|
third_party/googletest/googletest/include |
|
|
|
|
third_party/googletest/googletest |
|
|
|
|
third_party/googletest/googlemock/include |
|
|
|
|
third_party/googletest/googlemock |
|
|
|
|
${_gRPC_PROTO_GENS_DIR} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
target_link_libraries(lock_free_event_test |
|
|
|
|
${_gRPC_ALLTARGETS_LIBRARIES} |
|
|
|
|
gtest |
|
|
|
|
${_gRPC_BENCHMARK_LIBRARIES} |
|
|
|
|
grpc_test_util |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
if(gRPC_BUILD_TESTS) |
|
|
|
|
if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
|
|
|
|