Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Messij2001
oceanbase
提交
a6f3f128
O
oceanbase
项目概览
Messij2001
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a6f3f128
编写于
10月 09, 2021
作者:
S
SanmuWangZJU
提交者:
wangzelin.wzl
10月 09, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[liboblog-ce] won't compile liboblog unless compile with -DOB_BUILD_LIBOBLOG=ON
上级
e65a4c98
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
8 deletion
+25
-8
CMakeLists.txt
CMakeLists.txt
+0
-1
build.sh
build.sh
+1
-1
cmake/Env.cmake
cmake/Env.cmake
+2
-1
src/liboblog/CMakeLists.txt
src/liboblog/CMakeLists.txt
+18
-3
src/liboblog/src/CMakeLists.txt
src/liboblog/src/CMakeLists.txt
+1
-1
unittest/CMakeLists.txt
unittest/CMakeLists.txt
+3
-1
未找到文件。
CMakeLists.txt
浏览文件 @
a6f3f128
...
...
@@ -33,7 +33,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_subdirectory
(
deps/easy
)
add_subdirectory
(
deps/oblib
)
add_subdirectory
(
deps/logmessage
)
add_subdirectory
(
src
)
include
(
CMakeDependentOption
)
...
...
build.sh
浏览文件 @
a6f3f128
...
...
@@ -86,7 +86,7 @@ function prepare_build_dir
# dep_create
function
do_init
{
(
cd
$TOPDIR
/deps/3rd
&&
bash dep_create.sh
&&
cd
$TOPDIR
&&
git submodule update
--init
)
(
cd
$TOPDIR
/deps/3rd
&&
bash dep_create.sh
)
}
# make build directory && cmake && make (if need)
...
...
cmake/Env.cmake
浏览文件 @
a6f3f128
...
...
@@ -12,6 +12,7 @@ ob_define(OB_ENABLE_LIB_PCH ${OB_ENABLE_PCH})
ob_define
(
OB_ENABLE_SERVER_PCH
${
OB_ENABLE_PCH
}
)
ob_define
(
OB_ENALBE_UNITY ON
)
ob_define
(
OB_MAX_UNITY_BATCH_SIZE 30
)
ob_define
(
OB_BUILD_LIBOBLOG OFF
)
ob_define
(
OB_RELEASEID 1
)
...
...
@@ -25,7 +26,7 @@ set(LD_OPT "-Wl,--build-id=uuid")
set
(
BUILD_OPT
"
${
DEBUG_PREFIX
}
"
)
if
(
OB_USE_LLVM_LIBTOOLS
)
# use llvm-ar llvm-ranlib llvm-objcopy ld.lld...
# use llvm-ar llvm-ranlib llvm-objcopy ld.lld...
set
(
_CMAKE_TOOLCHAIN_PREFIX llvm-
)
set
(
_CMAKE_TOOLCHAIN_LOCATION
"
${
DEVTOOLS_DIR
}
/bin"
)
set
(
LD_BIN
"
${
DEVTOOLS_DIR
}
/bin/ld.lld"
)
...
...
src/liboblog/CMakeLists.txt
浏览文件 @
a6f3f128
add_definitions
(
-D_GLIBCXX_USE_CXX11_ABI=0
)
add_subdirectory
(
src
)
add_subdirectory
(
tests
)
message
(
STATUS
"OB_BUILD_LIBOBLOG
${
OB_BUILD_LIBOBLOG
}
"
)
if
(
OB_BUILD_LIBOBLOG
)
find_package
(
Git QUIET
)
if
(
GIT_FOUND
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update --init
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
RESULT_VARIABLE GIT_SUBMOD_RESULT
)
if
(
NOT GIT_SUBMOD_RESULT EQUAL
"0"
)
message
(
FATAL_ERROR
"git submodule update --init failed with
${
GIT_SUBMOD_RESULT
}
, please checkout submodules"
)
endif
()
add_subdirectory
(
${
PROJECT_SOURCE_DIR
}
/deps/logmessage
${
PROJECT_BINARY_DIR
}
/deps/logmessage EXCLUDE_FROM_ALL
)
add_definitions
(
-D_GLIBCXX_USE_CXX11_ABI=0
)
add_subdirectory
(
src
)
add_subdirectory
(
tests
)
else
()
message
(
"cannot find executable git"
)
endif
()
endif
()
src/liboblog/src/CMakeLists.txt
浏览文件 @
a6f3f128
add_library
(
oblog_base INTERFACE
)
target_include_directories
(
oblog_base INTERFACE
${
CMAKE_CURRENT_SOURCE_DIR
}
)
target_link_libraries
(
oblog_base
INTERFACE ob_base oblogmsg
INTERFACE ob_base oblogmsg
_static
)
add_library
(
oblog_miner INTERFACE
)
...
...
unittest/CMakeLists.txt
浏览文件 @
a6f3f128
...
...
@@ -29,4 +29,6 @@ add_subdirectory(observer)
add_subdirectory
(
share
)
add_subdirectory
(
rootserver
)
add_subdirectory
(
tools
)
add_subdirectory
(
liboblog
)
if
(
OB_BUILD_LIBOBLOG
)
add_subdirectory
(
liboblog
)
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录