Skip to content

Commit

Permalink
Replace protoc, protobuf and gRPC libraries, TString and TStringBuf (#75
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Gazizonoki authored Feb 27, 2024
1 parent be94cc4 commit 9e7c97a
Show file tree
Hide file tree
Showing 7,894 changed files with 12,946 additions and 2,070,059 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ runs:
ccache -z
export CCACHE_DIR=`~/.ccache`
cd ../build
ninja examples/all client/all
ninja
ccache -s
3 changes: 2 additions & 1 deletion .github/actions/prepare_vm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ runs:
shell: bash
run: |
sudo apt-get -y update
sudo apt-get -y install git cmake ninja-build libidn11-dev ragel yasm
sudo apt-get -y install git cmake ninja-build libidn11-dev ragel yasm protobuf-compiler \
protobuf-compiler-grpc libprotobuf-dev libgrpc++-dev libgrpc-dev libgrpc++1 libgrpc10
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 16
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ include(cmake/global_vars.cmake)

find_package(IDN REQUIRED)
find_package(Iconv REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Protobuf REQUIRED)
find_package(gRPC REQUIRED)

add_subdirectory(tools)
add_subdirectory(contrib)
Expand All @@ -39,4 +42,4 @@ add_subdirectory(util)
add_subdirectory(certs)
add_subdirectory(ydb)
add_subdirectory(client)
add_subdirectory(examples)
# add_subdirectory(examples)
24 changes: 0 additions & 24 deletions client/draft/CMakeLists.darwin-arm64.txt

This file was deleted.

24 changes: 0 additions & 24 deletions client/draft/CMakeLists.darwin-x86_64.txt

This file was deleted.

25 changes: 0 additions & 25 deletions client/draft/CMakeLists.linux-aarch64.txt

This file was deleted.

25 changes: 0 additions & 25 deletions client/draft/CMakeLists.linux-x86_64.txt

This file was deleted.

34 changes: 19 additions & 15 deletions client/draft/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# add_subdirectory(ut)

# This file was generated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, adding simple properties
# like target_include_directories). These modifications will be ported to original
# ya.make files by maintainers. Any complex modifications which can't be ported back to the
# original buildsystem will not be accepted.
add_library(cpp-client-draft)

target_link_libraries(cpp-client-draft PUBLIC
contrib-libs-cxxsupp
yutil
api-grpc-draft
cpp-client-ydb_table
client-ydb_types-operation
cpp-client-ydb_value
)
target_sources(cpp-client-draft PRIVATE
${CMAKE_SOURCE_DIR}/client/draft/ydb_dynamic_config.cpp
${CMAKE_SOURCE_DIR}/client/draft/ydb_scripting.cpp
${CMAKE_SOURCE_DIR}/client/draft/ydb_long_tx.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND NOT HAVE_CUDA)
include(CMakeLists.linux-aarch64.txt)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
include(CMakeLists.darwin-arm64.txt)
elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
include(CMakeLists.windows-x86_64.txt)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-draft PUBLIC
contrib-libs-linux-headers
)
endif()
24 changes: 0 additions & 24 deletions client/draft/CMakeLists.windows-x86_64.txt

This file was deleted.

Loading

0 comments on commit 9e7c97a

Please sign in to comment.