Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
fa214559
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fa214559
编写于
6月 21, 2023
作者:
Y
yihaoDeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add build from contrib source flag
上级
92249d89
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
149 addition
and
89 deletion
+149
-89
cmake/cmake.options
cmake/cmake.options
+6
-0
cmake/rocksdb_CMakeLists.txt.in
cmake/rocksdb_CMakeLists.txt.in
+27
-14
contrib/CMakeLists.txt
contrib/CMakeLists.txt
+116
-75
未找到文件。
cmake/cmake.options
浏览文件 @
fa214559
...
...
@@ -189,3 +189,9 @@ option(
"If build release version"
OFF
)
option(
BUILD_CONTRIB
"If build thirdpart from source"
OFF
)
cmake/rocksdb_CMakeLists.txt.in
浏览文件 @
fa214559
# rocksdb
IF (NOT ${TD_LINUX})
ExternalProject_Add(rocksdb
if (${BUILD_CONTRIB})
ExternalProject_Add(rocksdb
URL https://github.com/facebook/rocksdb/archive/refs/tags/v8.1.1.tar.gz
URL_HASH MD5=3b4c97ee45df9c8a5517308d31ab008b
DOWNLOAD_NO_PROGRESS 1
DOWNLOAD_DIR "${TD_CONTRIB_DIR}/deps-download"
SOURCE_DIR "${TD_CONTRIB_DIR}/rocksdb"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
)
else()
if (NOT ${TD_LINUX})
ExternalProject_Add(rocksdb
URL https://github.com/facebook/rocksdb/archive/refs/tags/v8.1.1.tar.gz
URL_HASH MD5=3b4c97ee45df9c8a5517308d31ab008b
DOWNLOAD_NO_PROGRESS 1
...
...
@@ -13,4 +25,5 @@ ExternalProject_Add(rocksdb
INSTALL_COMMAND ""
TEST_COMMAND ""
)
ENDIF(NOT ${TD_LINUX})
endif()
endif()
contrib/CMakeLists.txt
浏览文件 @
fa214559
...
...
@@ -77,19 +77,25 @@ if(${BUILD_WITH_LEVELDB})
cat
(
"
${
TD_SUPPORT_DIR
}
/leveldb_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
(
${
BUILD_WITH_LEVELDB
}
)
# rocksdb
IF
(
NOT
${
TD_LINUX
}
)
if
(
${
BUILD_WITH_ROCKSDB
}
)
if
(
${
BUILD_CONTRIB
}
)
if
(
${
BUILD_WITH_ROCKSDB
}
)
cat
(
"
${
TD_SUPPORT_DIR
}
/rocksdb_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
add_definitions
(
-DUSE_ROCKSDB
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
ELSE
()
if
(
${
BUILD_WITH_ROCKSDB
}
)
#cat("${TD_SUPPORT_DIR}/rocksdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif
()
else
()
if
(
NOT
${
TD_LINUX
}
)
if
(
${
BUILD_WITH_ROCKSDB
}
)
cat
(
"
${
TD_SUPPORT_DIR
}
/rocksdb_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
add_definitions
(
-DUSE_ROCKSDB
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
else
()
if
(
${
BUILD_WITH_ROCKSDB
}
)
add_definitions
(
-DUSE_ROCKSDB
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
endif
()
endif
()
ENDIF
(
NOT
${
TD_LINUX
}
)
# canonical-raft
if
(
${
BUILD_WITH_CRAFT
}
)
...
...
@@ -245,11 +251,11 @@ if (${BUILD_WITH_UV})
endif
(
${
TD_LINUX
}
)
endif
(
${
BUILD_WITH_UV
}
)
IF
(
NOT
${
TD_LINUX
}
)
if
(
${
BUILD_WITH_ROCKSD
B
}
)
if
(
${
BUILD_WITH_ROCKSDB
}
)
if
(
${
BUILD_CONTRI
B
}
)
if
(
${
TD_LINUX
}
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS_REL
}
-Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=unused-function -Wno-errno=unused-private-field -Wno-error=unused-result"
)
IF
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
""
)
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
""
)
SET
(
CMAKE_BUILD_TYPE Release
)
endif
()
endif
(
${
TD_LINUX
}
)
...
...
@@ -265,6 +271,9 @@ if(${BUILD_WITH_ROCKSDB})
if
(
${
TD_WINDOWS
}
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/wd4244 /wd4819"
)
option
(
WITH_JNI
""
OFF
)
option
(
WITH_MD_LIBRARY
"build with MD"
OFF
)
set
(
SYSTEM_LIBS
${
SYSTEM_LIBS
}
shlwapi.lib rpcrt4.lib
)
endif
(
${
TD_WINDOWS
}
)
...
...
@@ -274,16 +283,49 @@ if(${BUILD_WITH_ROCKSDB})
option
(
WITH_PERF_CONTEXT
""
OFF
)
endif
(
${
TD_DARWIN
}
)
if
(
${
TD_WINDOWS
}
)
option
(
WITH_JNI
""
OFF
)
endif
(
${
TD_WINDOWS
}
)
option
(
WITH_FALLOCATE
""
OFF
)
option
(
WITH_JEMALLOC
""
OFF
)
option
(
WITH_GFLAGS
""
OFF
)
option
(
PORTABLE
""
ON
)
option
(
WITH_LIBURING
""
OFF
)
option
(
FAIL_ON_WARNINGS OFF
)
if
(
${
TD_WINDOWS
}
)
option
(
WITH_TESTS
""
OFF
)
option
(
WITH_BENCHMARK_TOOLS
""
OFF
)
option
(
WITH_TOOLS
""
OFF
)
option
(
WITH_LIBURING
""
OFF
)
option
(
ROCKSDB_BUILD_SHARED
"Build shared versions of the RocksDB libraries"
OFF
)
add_subdirectory
(
rocksdb EXCLUDE_FROM_ALL
)
target_include_directories
(
rocksdb
PUBLIC $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/rocksdb/include>
)
else
()
if
(
NOT
${
TD_LINUX
}
)
MESSAGE
(
STATUS
"CXXXX STATUS CONFIG: "
${
CMAKE_CXX_FLAGS
}
)
if
(
${
TD_DARWIN
}
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wno-error=maybe-uninitialized"
)
endif
(
${
TD_DARWIN
}
)
if
(
${
TD_DARWIN_ARM64
}
)
set
(
HAS_ARMV8_CRC true
)
endif
(
${
TD_DARWIN_ARM64
}
)
if
(
${
TD_WINDOWS
}
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/wd4244 /wd4819"
)
option
(
WITH_JNI
""
OFF
)
option
(
WITH_MD_LIBRARY
"build with MD"
OFF
)
set
(
SYSTEM_LIBS
${
SYSTEM_LIBS
}
shlwapi.lib rpcrt4.lib
)
endif
(
${
TD_WINDOWS
}
)
if
(
${
TD_DARWIN
}
)
option
(
HAVE_THREAD_LOCAL
""
OFF
)
option
(
WITH_IOSTATS_CONTEXT
""
OFF
)
option
(
WITH_PERF_CONTEXT
""
OFF
)
endif
(
${
TD_DARWIN
}
)
option
(
WITH_FALLOCATE
""
OFF
)
option
(
WITH_JEMALLOC
""
OFF
)
option
(
WITH_GFLAGS
""
OFF
)
...
...
@@ -295,18 +337,17 @@ if(${BUILD_WITH_ROCKSDB})
option
(
WITH_BENCHMARK_TOOLS
""
OFF
)
option
(
WITH_TOOLS
""
OFF
)
option
(
WITH_LIBURING
""
OFF
)
IF
(
TD_LINUX
)
option
(
ROCKSDB_BUILD_SHARED
"Build shared versions of the RocksDB libraries"
OFF
)
ELSE
()
option
(
ROCKSDB_BUILD_SHARED
"Build shared versions of the RocksDB libraries"
OFF
)
ENDIF
()
add_subdirectory
(
rocksdb EXCLUDE_FROM_ALL
)
target_include_directories
(
rocksdb
PUBLIC $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/rocksdb/include>
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
ENDIF
(
NOT
${
TD_LINUX
}
)
endif
()
endif
()
endif
()
# lucene
# To support build on ubuntu: sudo apt-get install libboost-all-dev
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录