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
c5dbaae2
Commit
c5dbaae2
authored
Jan 03, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary proto generating code
parent
1ac67120
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
CMakeLists.txt
CMakeLists.txt
+1
-23
CMakeLists.txt
src/CMakeLists.txt
+0
-1
No files found.
CMakeLists.txt
View file @
c5dbaae2
...
...
@@ -121,26 +121,6 @@ foreach(PROTO ${PROTOS})
)
endforeach
()
file
(
GLOB brpc_PROTOS
"src/brpc/*.proto"
)
foreach
(
PROTO
${
brpc_PROTOS
}
)
get_filename_component
(
PROTO_WE
${
PROTO
}
NAME_WE
)
list
(
APPEND PROTO_SRCS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/brpc/
${
PROTO_WE
}
.pb.cc"
)
execute_process
(
COMMAND
${
PROTOBUF_PROTOC_EXECUTABLE
}
${
PROTO_FLAGS
}
--cpp_out=
${
CMAKE_CURRENT_BINARY_DIR
}
--proto_path=
${
PROTOBUF_INCLUDE_DIR
}
--proto_path=
${
CMAKE_SOURCE_DIR
}
/src --proto_path=
${
CMAKE_SOURCE_DIR
}
/src/brpc/
${
PROTO
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
endforeach
()
file
(
GLOB brpc_policy_PROTOS
"src/brpc/policy/*.proto"
)
foreach
(
PROTO
${
brpc_policy_PROTOS
}
)
get_filename_component
(
PROTO_WE
${
PROTO
}
NAME_WE
)
list
(
APPEND PROTO_SRCS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/brpc/policy/
${
PROTO_WE
}
.pb.cc"
)
execute_process
(
COMMAND
${
PROTOBUF_PROTOC_EXECUTABLE
}
${
PROTO_FLAGS
}
--cpp_out=
${
CMAKE_CURRENT_BINARY_DIR
}
--proto_path=
${
PROTOBUF_INCLUDE_DIR
}
--proto_path=
${
CMAKE_SOURCE_DIR
}
/src --proto_path=
${
CMAKE_SOURCE_DIR
}
/src/brpc/policy
${
PROTO
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
endforeach
()
set
(
BUTIL_SOURCES
${
CMAKE_SOURCE_DIR
}
/src/butil/third_party/dmg_fp/g_fmt.cc
${
CMAKE_SOURCE_DIR
}
/src/butil/third_party/dmg_fp/dtoa_wrapper.cc
...
...
@@ -289,15 +269,13 @@ set(SOURCES
${
BRPC_SOURCES4
}
${
PROTO_SRCS
}
)
ADD_SUBDIRECTORY
(
src
)
if
(
BUILD_EXAMPLE
)
ADD_SUBDIRECTORY
(
example
)
endif
()
if
(
BUILD_UNIT_TESTS
)
ADD_SUBDIRECTORY
(
test
)
#enable_testing()
#add_test(NAME test_butil COMMAND test_butil)
endif
()
#install directory
...
...
src/CMakeLists.txt
View file @
c5dbaae2
...
...
@@ -39,4 +39,3 @@ install(TARGETS brpc
LIBRARY DESTINATION lib
${
LIBSUFFIX
}
ARCHIVE DESTINATION lib
${
LIBSUFFIX
}
)
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