Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
333f0a77
Commit
333f0a77
authored
Aug 15, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bazel command line options
parent
d101f3cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
build_in_travis_ci.sh
build_in_travis_ci.sh
+2
-3
No files found.
CMakeLists.txt
View file @
333f0a77
...
...
@@ -356,7 +356,7 @@ file(GLOB_RECURSE BVAR_SOURCES "${PROJECT_SOURCE_DIR}/src/bvar/*.cpp")
file
(
GLOB_RECURSE BTHREAD_SOURCES
"
${
PROJECT_SOURCE_DIR
}
/src/bthread/*.cpp"
)
file
(
GLOB_RECURSE JSON2PB_SOURCES
"
${
PROJECT_SOURCE_DIR
}
/src/json2pb/*.cpp"
)
file
(
GLOB_RECURSE BRPC_SOURCES
"
${
PROJECT_SOURCE_DIR
}
/src/brpc/*.cpp"
)
file
(
GLOB_RECURSE THRIFT_SOURCES
"thrift*.cpp"
)
file
(
GLOB_RECURSE THRIFT_SOURCES
"
${
PROJECT_SOURCE_DIR
}
/src/brpc/
thrift*.cpp"
)
if
(
WITH_THRIFT
)
message
(
"brpc compile with thrift proctol"
)
...
...
build_in_travis_ci.sh
View file @
333f0a77
...
...
@@ -39,12 +39,11 @@ elif [ "$PURPOSE" = "compile-with-cmake" ]; then
elif
[
"
$PURPOSE
"
=
"compile-with-bazel"
]
;
then
bazel build
-j
12
-c
opt
--copt
-DHAVE_ZLIB
=
1 //...
elif
[
"
$PURPOSE
"
=
"compile-with-make-all-options"
]
;
then
init_make_config
"--with-thrift --with-glog --with-mesalink"
&&
\
make
-j4
&&
sh tools/make_all_examples
init_make_config
"--with-thrift --with-glog --with-mesalink"
&&
make
-j4
elif
[
"
$PURPOSE
"
=
"compile-with-cmake-all-options"
]
;
then
rm
-rf
bld
&&
mkdir
bld
&&
cd
bld
&&
cmake
-DWITH_MESALINK
=
ON
-DWITH_GLOG
=
ON
-DWITH_THRIFT
=
ON ..
&&
make
-j4
elif
[
"
$PURPOSE
"
=
"compile-with-bazel-all-options"
]
;
then
bazel build
-j
12
-c
opt
--define
with_mesalink
=
true
with_glog
=
tru
e
with_thrift
=
true
--copt
-DHAVE_ZLIB
=
1 //...
bazel build
-j
12
-c
opt
--define
with_mesalink
=
true
--define
with_glog
=
true
--defin
e
with_thrift
=
true
--copt
-DHAVE_ZLIB
=
1 //...
else
echo
"Unknown purpose=
\"
$PURPOSE
\"
"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment