feat: refact cpp sdk (#27)
* refact cpp sdk --------- Co-authored-by: zhouqinren.zqr <zhouqinren.zqr@alibaba-inc.com>
This commit is contained in:
co-authored by
zhouqinren.zqr
parent
08d680bd4f
commit
e957442355
@@ -32,7 +32,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
$<TARGET_FILE:core_utility_static>
|
||||
$<TARGET_FILE:core_quantizer_static>
|
||||
-Wl,--no-whole-archive
|
||||
zvec
|
||||
zvec_db
|
||||
)
|
||||
target_link_options(_zvec PRIVATE
|
||||
"LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports.map"
|
||||
@@ -49,7 +49,7 @@ elseif (APPLE)
|
||||
-Wl,-force_load,$<TARGET_FILE:core_metric_static>
|
||||
-Wl,-force_load,$<TARGET_FILE:core_utility_static>
|
||||
-Wl,-force_load,$<TARGET_FILE:core_quantizer_static>
|
||||
zvec
|
||||
zvec_db
|
||||
)
|
||||
target_link_libraries(_zvec PRIVATE
|
||||
-Wl,-exported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/exports.mac
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.#pragma once
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include "db/collection.h"
|
||||
#include <zvec/db/collection.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.#pragma once
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include "db/common/config.h"
|
||||
#include <zvec/db/config.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.#pragma once
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include "db/index/common/doc.h"
|
||||
#include <zvec/db/doc.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
// limitations under the License.#pragma once
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include "db/index/common/options.h"
|
||||
#include "db/index/common/type.h"
|
||||
#include <zvec/db/options.h>
|
||||
#include <zvec/db/type.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.#pragma once
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include "db/index/common/type.h"
|
||||
#include <zvec/db/type.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
// limitations under the License.#pragma once
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include "db/common/status.h"
|
||||
#include "db/index/common/type.h"
|
||||
#include <zvec/db/status.h>
|
||||
#include <zvec/db/type.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
#include "python_param.h"
|
||||
#include <pybind11/numpy.h>
|
||||
#include <pybind11/stl.h>
|
||||
#include "core/interface/constants.h"
|
||||
#include "db/index/common/index_params.h"
|
||||
#include <zvec/core/interface/constants.h>
|
||||
#include <zvec/db/index_params.h>
|
||||
#include "python_doc.h"
|
||||
|
||||
namespace zvec {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "python_collection.h"
|
||||
#include <pybind11/stl.h>
|
||||
#include "db/collection.h"
|
||||
#include <zvec/db/collection.h>
|
||||
|
||||
namespace zvec {
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
|
||||
#include "python_schema.h"
|
||||
#include <pybind11/stl.h>
|
||||
#include "db/index/common/schema.h"
|
||||
#include "db/index/common/stats.h"
|
||||
#include <zvec/db/schema.h>
|
||||
#include <zvec/db/stats.h>
|
||||
|
||||
namespace zvec {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user