Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
303fdc4f
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看板
未验证
提交
303fdc4f
编写于
6月 21, 2023
作者:
H
Haojun Liao
提交者:
GitHub
6月 21, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #21805 from taosdata/enh/staticLib3.0
add static lib to 3.0
上级
e95b430e
ff3ad6c6
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
5740 addition
and
2 deletion
+5740
-2
.gitignore
.gitignore
+0
-1
cmake/cmake.define
cmake/cmake.define
+1
-1
cmake/cmake.platform
cmake/cmake.platform
+10
-0
cmake/rocksdb_CMakeLists.txt.in
cmake/rocksdb_CMakeLists.txt.in
+3
-0
contrib/CMakeLists.txt
contrib/CMakeLists.txt
+11
-0
deps/arm/rocksdb_static/librocksdb.a
deps/arm/rocksdb_static/librocksdb.a
+0
-0
deps/arm/rocksdb_static/rocksdb/c.h
deps/arm/rocksdb_static/rocksdb/c.h
+2844
-0
deps/x86/rocksdb_static/librocksdb.a
deps/x86/rocksdb_static/librocksdb.a
+0
-0
deps/x86/rocksdb_static/rocksdb/c.h
deps/x86/rocksdb_static/rocksdb/c.h
+2844
-0
source/dnode/vnode/CMakeLists.txt
source/dnode/vnode/CMakeLists.txt
+19
-0
source/libs/stream/CMakeLists.txt
source/libs/stream/CMakeLists.txt
+8
-0
未找到文件。
.gitignore
浏览文件 @
303fdc4f
...
...
@@ -16,7 +16,6 @@ debug/
release/
target/
debs/
deps/
rpms/
mac/
*.pyc
...
...
cmake/cmake.define
浏览文件 @
303fdc4f
cmake_minimum_required(VERSION 3.0)
set(CMAKE_VERBOSE_MAKEFILE O
FF
)
set(CMAKE_VERBOSE_MAKEFILE O
N
)
set(TD_BUILD_TAOSA_INTERNAL FALSE)
#set output directory
...
...
cmake/cmake.platform
浏览文件 @
303fdc4f
...
...
@@ -172,5 +172,15 @@ ENDIF()
MESSAGE(STATUS "Platform arch:" ${PLATFORM_ARCH_STR})
set(TD_DEPS_DIR "x86")
if (TD_LINUX)
IF (TD_ARM_64 OR TD_ARM_32)
set(TD_DEPS_DIR "arm")
ELSE()
set(TD_DEPS_DIR "x86")
ENDIF()
endif()
MESSAGE(STATUS "DEPS_DIR: " ${TD_DEPS_DIR})
MESSAGE("C Compiler: ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID}, ${CMAKE_C_COMPILER_VERSION})")
MESSAGE("CXX Compiler: ${CMAKE_CXX_COMPILER} (${CMAKE_C_COMPILER_ID}, ${CMAKE_CXX_COMPILER_VERSION})")
cmake/rocksdb_CMakeLists.txt.in
浏览文件 @
303fdc4f
# rocksdb
IF (NOT ${TD_LINUX})
ExternalProject_Add(rocksdb
GIT_REPOSITORY https://github.com/facebook/rocksdb.git
GIT_TAG v8.1.1
...
...
@@ -9,3 +10,5 @@ ExternalProject_Add(rocksdb
INSTALL_COMMAND ""
TEST_COMMAND ""
)
ENDIF(NOT ${TD_LINUX})
contrib/CMakeLists.txt
浏览文件 @
303fdc4f
...
...
@@ -78,10 +78,18 @@ if(${BUILD_WITH_LEVELDB})
endif
(
${
BUILD_WITH_LEVELDB
}
)
# rocksdb
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
}
)
ELSE
()
if
(
${
BUILD_WITH_ROCKSDB
}
)
#cat("${TD_SUPPORT_DIR}/rocksdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
add_definitions
(
-DUSE_ROCKSDB
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
ENDIF
(
NOT
${
TD_LINUX
}
)
# canonical-raft
if
(
${
BUILD_WITH_CRAFT
}
)
...
...
@@ -227,6 +235,8 @@ endif(${BUILD_WITH_LEVELDB})
# rocksdb
# To support rocksdb build on ubuntu: sudo apt-get install libgflags-dev
IF
(
NOT
${
TD_LINUX
}
)
if
(
${
BUILD_WITH_ROCKSDB
}
)
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"
)
...
...
@@ -288,6 +298,7 @@ if(${BUILD_WITH_ROCKSDB})
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
ENDIF
(
NOT
${
TD_LINUX
}
)
# lucene
# To support build on ubuntu: sudo apt-get install libboost-all-dev
if
(
${
BUILD_WITH_LUCENE
}
)
...
...
deps/arm/rocksdb_static/librocksdb.a
0 → 100644
浏览文件 @
303fdc4f
文件已添加
deps/arm/rocksdb_static/rocksdb/c.h
0 → 100644
浏览文件 @
303fdc4f
此差异已折叠。
点击以展开。
deps/x86/rocksdb_static/librocksdb.a
0 → 100644
浏览文件 @
303fdc4f
文件已添加
deps/x86/rocksdb_static/rocksdb/c.h
0 → 100644
浏览文件 @
303fdc4f
此差异已折叠。
点击以展开。
source/dnode/vnode/CMakeLists.txt
浏览文件 @
303fdc4f
...
...
@@ -80,6 +80,7 @@ IF (TD_VNODE_PLUGINS)
)
ENDIF
()
IF
(
NOT
${
TD_LINUX
}
)
target_include_directories
(
vnode
PUBLIC
"inc"
...
...
@@ -87,7 +88,25 @@ target_include_directories(
PUBLIC
"
${
TD_SOURCE_DIR
}
/include/libs/scalar"
PUBLIC
"
${
TD_SOURCE_DIR
}
/contrib/rocksdb/include"
)
ELSE
()
target_include_directories
(
vnode
PUBLIC
"inc"
PUBLIC
"src/inc"
PUBLIC
"
${
TD_SOURCE_DIR
}
/include/libs/scalar"
)
ENDIF
(
NOT
${
TD_LINUX
}
)
IF
(
TD_LINUX
)
target_include_directories
(
vnode
PUBLIC
"
${
TD_SOURCE_DIR
}
/deps/
${
TD_DEPS_DIR
}
/rocksdb_static"
)
target_link_directories
(
vnode
PUBLIC
"
${
TD_SOURCE_DIR
}
/deps/
${
TD_DEPS_DIR
}
/rocksdb_static"
)
target_link_libraries
(
vnode
PUBLIC os
...
...
source/libs/stream/CMakeLists.txt
浏览文件 @
303fdc4f
...
...
@@ -9,6 +9,14 @@ target_include_directories(
if
(
${
BUILD_WITH_ROCKSDB
}
)
IF
(
TD_LINUX
)
target_include_directories
(
stream
PUBLIC
"
${
TD_SOURCE_DIR
}
/deps/
${
TD_DEPS_DIR
}
/rocksdb_static"
)
target_link_directories
(
stream
PUBLIC
"
${
TD_SOURCE_DIR
}
/deps/
${
TD_DEPS_DIR
}
/rocksdb_static"
)
target_link_libraries
(
stream
PUBLIC rocksdb tdb
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录