2022-12-13 11:27:21 +08:00
|
|
|
from conans import ConanFile, CMake
|
|
|
|
|
|
|
|
|
|
|
|
class MilvusConan(ConanFile):
|
|
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
|
|
requires = (
|
|
|
|
"rocksdb/6.29.5",
|
2023-05-10 10:01:19 +08:00
|
|
|
"boost/1.79.0",
|
2022-12-13 11:27:21 +08:00
|
|
|
"onetbb/2021.7.0",
|
2023-03-27 18:22:02 +08:00
|
|
|
"nlohmann_json/3.11.2",
|
2023-04-14 17:56:29 +08:00
|
|
|
"zstd/1.5.5",
|
2023-02-16 17:26:35 +08:00
|
|
|
"lz4/1.9.4",
|
|
|
|
"snappy/1.1.9",
|
|
|
|
"lzo/2.10",
|
2023-05-26 09:41:27 +08:00
|
|
|
"arrow/11.0.0",
|
2022-12-13 11:27:21 +08:00
|
|
|
"openssl/1.1.1q",
|
2023-05-04 19:46:38 +08:00
|
|
|
"s2n/1.3.31@milvus/dev",
|
|
|
|
"aws-c-common/0.8.2@milvus/dev",
|
2023-05-10 15:55:19 +08:00
|
|
|
"aws-c-compression/0.2.15@milvus/dev",
|
2023-05-13 13:47:20 +08:00
|
|
|
"aws-c-sdkutils/0.1.3@milvus/dev",
|
2023-05-04 19:46:38 +08:00
|
|
|
"aws-checksums/0.1.13@milvus/dev",
|
2023-06-02 14:56:32 +08:00
|
|
|
"aws-c-cal/0.5.20@milvus/dev",
|
2023-06-10 19:08:35 +08:00
|
|
|
"aws-c-io/0.10.20@milvus/dev",
|
2022-12-13 11:27:21 +08:00
|
|
|
"aws-sdk-cpp/1.9.234",
|
2023-05-29 01:05:28 +08:00
|
|
|
"googleapis/cci.20221108",
|
2022-12-13 11:27:21 +08:00
|
|
|
"benchmark/1.7.0",
|
|
|
|
"gtest/1.8.1",
|
2023-03-21 16:31:57 +08:00
|
|
|
"protobuf/3.21.4",
|
2022-12-13 11:27:21 +08:00
|
|
|
"rapidxml/1.13",
|
|
|
|
"yaml-cpp/0.7.0",
|
|
|
|
"marisa/0.2.6",
|
|
|
|
"zlib/1.2.13",
|
2023-01-17 14:53:42 +08:00
|
|
|
"libcurl/7.86.0",
|
2023-02-16 17:26:35 +08:00
|
|
|
"glog/0.6.0",
|
2023-05-24 13:05:26 +08:00
|
|
|
"fmt/9.1.0",
|
2023-02-16 17:26:35 +08:00
|
|
|
"gflags/2.2.2",
|
|
|
|
"double-conversion/3.2.1",
|
|
|
|
"libevent/2.1.12",
|
|
|
|
"libdwarf/20191104",
|
|
|
|
"libiberty/9.1.0",
|
|
|
|
"libsodium/cci.20220430",
|
|
|
|
"xsimd/9.0.1",
|
2023-02-20 17:08:25 +08:00
|
|
|
"xz_utils/5.4.0",
|
2023-04-03 19:22:23 +08:00
|
|
|
"prometheus-cpp/1.1.0",
|
2023-05-04 19:46:38 +08:00
|
|
|
"re2/20230301",
|
2023-05-24 13:05:26 +08:00
|
|
|
"folly/2023.05.22.02@milvus/dev",
|
2023-05-29 01:05:28 +08:00
|
|
|
"google-cloud-cpp/2.5.0@milvus/dev",
|
2023-03-21 16:31:57 +08:00
|
|
|
"opentelemetry-cpp/1.8.1.1@milvus/dev",
|
2022-12-13 11:27:21 +08:00
|
|
|
)
|
2023-02-07 16:12:04 +08:00
|
|
|
generators = ("cmake", "cmake_find_package")
|
2022-12-13 11:27:21 +08:00
|
|
|
default_options = {
|
|
|
|
"rocksdb:shared": True,
|
2023-06-15 15:12:39 +08:00
|
|
|
"rocksdb:with_zstd": True,
|
2022-12-13 11:27:21 +08:00
|
|
|
"arrow:parquet": True,
|
|
|
|
"arrow:compute": True,
|
|
|
|
"arrow:with_zstd": True,
|
2022-12-16 18:27:24 +08:00
|
|
|
"arrow:shared": False,
|
|
|
|
"arrow:with_jemalloc": True,
|
2022-12-13 11:27:21 +08:00
|
|
|
"aws-sdk-cpp:text-to-speech": False,
|
|
|
|
"aws-sdk-cpp:transfer": False,
|
|
|
|
"gtest:build_gmock": False,
|
2023-03-21 16:31:57 +08:00
|
|
|
"boost:without_locale": False,
|
2023-03-27 18:22:02 +08:00
|
|
|
"glog:with_gflags": False,
|
2023-04-14 17:56:29 +08:00
|
|
|
"prometheus-cpp:with_pull": False,
|
2023-06-02 14:56:32 +08:00
|
|
|
"fmt:header_only": True,
|
2022-12-13 11:27:21 +08:00
|
|
|
}
|
|
|
|
|
2022-12-19 15:05:24 +08:00
|
|
|
def configure(self):
|
2023-02-03 17:21:53 +08:00
|
|
|
if self.settings.os == "Macos":
|
2023-03-21 16:31:57 +08:00
|
|
|
# Macos M1 cannot use jemalloc
|
2023-02-03 17:21:53 +08:00
|
|
|
if self.settings.arch not in ("x86_64", "x86"):
|
2023-02-16 17:26:35 +08:00
|
|
|
del self.options["folly"].use_sse4_2
|
|
|
|
|
|
|
|
self.options["arrow"].with_jemalloc = False
|
2023-02-03 17:21:53 +08:00
|
|
|
self.options["boost"].without_fiber = True
|
|
|
|
self.options["boost"].without_json = True
|
|
|
|
self.options["boost"].without_wave = True
|
|
|
|
self.options["boost"].without_math = True
|
|
|
|
self.options["boost"].without_graph = True
|
|
|
|
self.options["boost"].without_graph_parallel = True
|
|
|
|
self.options["boost"].without_nowide = True
|
2022-12-19 15:05:24 +08:00
|
|
|
|
2022-12-13 11:27:21 +08:00
|
|
|
def imports(self):
|
|
|
|
self.copy("*.dylib", "../lib", "lib")
|
|
|
|
self.copy("*.dll", "../lib", "lib")
|
|
|
|
self.copy("*.so*", "../lib", "lib")
|
|
|
|
self.copy("*", "../bin", "bin")
|
2023-03-21 16:31:57 +08:00
|
|
|
self.copy("*.proto", "../include", "include")
|