File tree Expand file tree Collapse file tree 25 files changed +55
-31
lines changed Expand file tree Collapse file tree 25 files changed +55
-31
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ add_subdirectory(library/cpp)
42
42
add_subdirectory (src )
43
43
add_subdirectory (util )
44
44
45
- _ydb_sdk_validate_public_headers ()
45
+ # _ydb_sdk_validate_public_headers()
46
46
47
47
if (YDB_SDK_EXAMPLES )
48
48
add_subdirectory (examples )
Original file line number Diff line number Diff line change @@ -179,3 +179,23 @@ function(_ydb_sdk_make_client_component CmpName Tgt)
179
179
set (YDB-CPP-SDK_AVAILABLE_COMPONENTS ${YDB-CPP-SDK_AVAILABLE_COMPONENTS} ${CmpName} CACHE INTERNAL "" )
180
180
set (YDB-CPP-SDK_COMPONENT_TARGETS ${YDB-CPP-SDK_COMPONENT_TARGETS} ${Tgt} CACHE INTERNAL "" )
181
181
endfunction ()
182
+
183
+ function (_ydb_sdk_add_library Tgt )
184
+ cmake_parse_arguments (ARG
185
+ "INTERFACE" "" ""
186
+ ${ARGN}
187
+ )
188
+
189
+ set (LibraryMode "" )
190
+ set (IncludeMode "PUBLIC" )
191
+ if (ARG_INTERFACE )
192
+ set (LibraryMode "INTERFACE" )
193
+ set (IncludeMode "INTERFACE" )
194
+ endif ()
195
+ add_library (${Tgt} ${LibraryMode} )
196
+ target_include_directories (${Tgt} ${IncludeMode}
197
+ $< BUILD_INTERFACE:${YDB_SDK_SOURCE_DIR} >
198
+ $< BUILD_INTERFACE:${YDB_SDK_BINARY_DIR} >
199
+ $< BUILD_INTERFACE:${YDB_SDK_SOURCE_DIR} /include>
200
+ )
201
+ endfunction ()
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
3
#include < ydb-cpp-sdk/client/table/table.h>
4
- #include < ydb-cpp-sdk/ src/api/protos/ydb_query.pb.h>
4
+ #include < src/api/protos/ydb_query.pb.h>
5
5
6
6
namespace NYdb {
7
7
namespace NScripting {
Original file line number Diff line number Diff line change 2
2
3
3
#include < ydb-cpp-sdk/client/topic/client.h>
4
4
5
- #include < ydb-cpp-sdk/ src/api/protos/ydb_federation_discovery.pb.h>
5
+ #include < src/api/protos/ydb_federation_discovery.pb.h>
6
6
7
7
#include < ydb-cpp-sdk/client/types/exceptions/exceptions.h>
8
8
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include < ydb-cpp-sdk/ src/api/protos/draft/ydb_replication.pb.h>
4
- #include < ydb-cpp-sdk/ src/api/protos/ydb_coordination.pb.h>
5
- #include < ydb-cpp-sdk/ src/api/protos/ydb_export.pb.h>
6
- #include < ydb-cpp-sdk/ src/api/protos/ydb_import.pb.h>
7
- #include < ydb-cpp-sdk/ src/api/protos/ydb_query_stats.pb.h>
8
- #include < ydb-cpp-sdk/ src/api/protos/ydb_table.pb.h>
9
- #include < ydb-cpp-sdk/ src/api/protos/ydb_topic.pb.h>
10
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
3
+ #include < src/api/protos/draft/ydb_replication.pb.h>
4
+ #include < src/api/protos/ydb_coordination.pb.h>
5
+ #include < src/api/protos/ydb_export.pb.h>
6
+ #include < src/api/protos/ydb_import.pb.h>
7
+ #include < src/api/protos/ydb_query_stats.pb.h>
8
+ #include < src/api/protos/ydb_table.pb.h>
9
+ #include < src/api/protos/ydb_topic.pb.h>
10
+ #include < src/api/protos/ydb_value.pb.h>
11
11
12
12
#include < ydb-cpp-sdk/client/draft/ydb_replication.h>
13
13
#include < ydb-cpp-sdk/client/coordination/coordination.h>
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include < ydb-cpp-sdk/ src/library/operation_id/protos/operation_id.pb.h>
3
+ #include < src/library/operation_id/protos/operation_id.pb.h>
4
4
5
5
#include < string>
6
6
#include < vector>
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include < ydb-cpp-sdk/ src/library/yql/public/issue/protos/issue_severity.pb.h>
3
+ #include < src/library/yql/public/issue/protos/issue_severity.pb.h>
4
4
5
5
namespace NYql {
6
6
Original file line number Diff line number Diff line change 1
1
#include < util/stream/output.h>
2
2
3
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
4
- #include < ydb-cpp-sdk/ src/api/protos/ydb_topic.pb.h>
3
+ #include < src/api/protos/ydb_value.pb.h>
4
+ #include < src/api/protos/ydb_topic.pb.h>
5
5
6
6
#include < google/protobuf/text_format.h>
7
7
Original file line number Diff line number Diff line change 6
6
7
7
#include < src/api/grpc/ydb_discovery_v1.grpc.pb.h>
8
8
#include < src/api/grpc/ydb_export_v1.grpc.pb.h>
9
- #include < ydb-cpp-sdk/ src/api/protos/ydb_export.pb.h>
9
+ #include < src/api/protos/ydb_export.pb.h>
10
10
#include < src/client/common_client/impl/client.h>
11
11
#include < ydb-cpp-sdk/client/proto/accessor.h>
12
12
Original file line number Diff line number Diff line change 5
5
#include < src/client/impl/ydb_internal/grpc_connections/grpc_connections.h>
6
6
#undef INCLUDE_YDB_INTERNAL_H
7
7
8
- #include < ydb-cpp-sdk/ src/api/protos/ydb_federation_discovery.pb.h>
8
+ #include < src/api/protos/ydb_federation_discovery.pb.h>
9
9
10
10
#include < src/client/topic/common/callback_context.h>
11
11
#include < src/client/common_client/impl/client.h>
Original file line number Diff line number Diff line change 2
2
3
3
#include < src/client/impl/ydb_internal/internal_header.h>
4
4
5
- #include < ydb-cpp-sdk/ src/api/protos/ydb_table.pb.h>
5
+ #include < src/api/protos/ydb_table.pb.h>
6
6
#include < ydb-cpp-sdk/client/table/query_stats/stats.h>
7
7
8
8
namespace NYdb {
Original file line number Diff line number Diff line change 2
2
3
3
#include < src/client/impl/ydb_internal/internal_header.h>
4
4
5
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
5
+ #include < src/api/protos/ydb_value.pb.h>
6
6
7
7
namespace NYdb {
8
8
Original file line number Diff line number Diff line change 6
6
7
7
#include < src/api/grpc/ydb_discovery_v1.grpc.pb.h>
8
8
#include < src/api/grpc/ydb_import_v1.grpc.pb.h>
9
- #include < ydb-cpp-sdk/ src/api/protos/ydb_import.pb.h>
9
+ #include < src/api/protos/ydb_import.pb.h>
10
10
#include < src/client/common_client/impl/client.h>
11
11
#include < ydb-cpp-sdk/client/proto/accessor.h>
12
12
Original file line number Diff line number Diff line change 1
1
#include " impl.h"
2
2
3
3
#include < src/api/protos/ydb_scheme.pb.h>
4
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
4
+ #include < src/api/protos/ydb_value.pb.h>
5
5
6
6
7
7
namespace NYdb {
Original file line number Diff line number Diff line change 2
2
3
3
#include < ydb-cpp-sdk/client/params/params.h>
4
4
5
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
5
+ #include < src/api/protos/ydb_value.pb.h>
6
6
7
7
#include < ydb-cpp-sdk/client/types/fatal_error_handlers/handlers.h>
8
8
Original file line number Diff line number Diff line change 1
1
#include < ydb-cpp-sdk/client/query/stats.h>
2
2
3
- #include < ydb-cpp-sdk/ src/api/protos/ydb_table.pb.h>
3
+ #include < src/api/protos/ydb_table.pb.h>
4
4
5
5
#include < util/datetime/base.h>
6
6
Original file line number Diff line number Diff line change 3
3
#include < ydb-cpp-sdk/client/types/fatal_error_handlers/handlers.h>
4
4
5
5
#include < src/api/protos/ydb_common.pb.h>
6
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
6
+ #include < src/api/protos/ydb_value.pb.h>
7
7
8
8
#include < util/string/builder.h>
9
9
Original file line number Diff line number Diff line change 1
1
#include " task.h"
2
2
#include < src/api/grpc/ydb_discovery_v1.grpc.pb.h>
3
3
#include < src/api/grpc/ydb_export_v1.grpc.pb.h>
4
- #include < ydb-cpp-sdk/ src/api/protos/ydb_export.pb.h>
4
+ #include < src/api/protos/ydb_export.pb.h>
5
5
#include < src/client/common_client/impl/client.h>
6
6
#include < ydb-cpp-sdk/client/proto/accessor.h>
7
7
Original file line number Diff line number Diff line change @@ -23,4 +23,8 @@ target_sources(client-ydb_table-impl PRIVATE
23
23
table_client.cpp
24
24
)
25
25
26
+ target_compile_options (client-ydb_table-impl PRIVATE
27
+ -Wno-deprecated
28
+ )
29
+
26
30
_ydb_sdk_install_targets (TARGETS client-ydb_table-impl )
Original file line number Diff line number Diff line change 5
5
#include < src/client/impl/ydb_endpoints/endpoints.h>
6
6
#include < ydb-cpp-sdk/library/operation_id/operation_id.h>
7
7
8
- #include < ydb-cpp-sdk/ src/api/protos/ydb_table.pb.h>
8
+ #include < src/api/protos/ydb_table.pb.h>
9
9
10
10
#include < library/cpp/cache/cache.h>
11
11
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
3
#include < ydb-cpp-sdk/client/table/table.h>
4
- #include < ydb-cpp-sdk/ src/api/protos/ydb_table.pb.h>
4
+ #include < src/api/protos/ydb_table.pb.h>
5
5
6
6
namespace NYdb {
7
7
namespace NTable {
Original file line number Diff line number Diff line change 10
10
#undef INCLUDE_YDB_INTERNAL_H
11
11
12
12
#include < src/api/grpc/ydb_table_v1.grpc.pb.h>
13
- #include < ydb-cpp-sdk/ src/api/protos/ydb_table.pb.h>
13
+ #include < src/api/protos/ydb_table.pb.h>
14
14
#include < src/client/impl/ydb_stats/stats.h>
15
15
#include < ydb-cpp-sdk/client/proto/accessor.h>
16
16
#include < ydb-cpp-sdk/client/value/value.h>
Original file line number Diff line number Diff line change 7
7
#include < ydb-cpp-sdk/client/params/params.h>
8
8
#include < ydb-cpp-sdk/client/types/fatal_error_handlers/handlers.h>
9
9
10
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
10
+ #include < src/api/protos/ydb_value.pb.h>
11
11
12
12
#include < library/cpp/containers/stack_vector/stack_vec.h>
13
13
Original file line number Diff line number Diff line change 1
1
#include < ydb-cpp-sdk/client/result/result.h>
2
2
3
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
3
+ #include < src/api/protos/ydb_value.pb.h>
4
4
#include < ydb-cpp-sdk/client/types/exceptions/exceptions.h>
5
5
6
6
#include < library/cpp/testing/unittest/registar.h>
Original file line number Diff line number Diff line change 1
1
#include < ydb-cpp-sdk/client/value/value.h>
2
2
3
- #include < ydb-cpp-sdk/ src/api/protos/ydb_value.pb.h>
3
+ #include < src/api/protos/ydb_value.pb.h>
4
4
#include < ydb-cpp-sdk/client/types/exceptions/exceptions.h>
5
5
#include < ydb-cpp-sdk/library/json_value/ydb_json_value.h>
6
6
#include < ydb-cpp-sdk/library/yson_value/ydb_yson_value.h>
You can’t perform that action at this time.
0 commit comments