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
6301cdef
Commit
6301cdef
authored
Aug 21, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.pb.h depends on .proto as well
parent
3d85e0a0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
8 deletions
+6
-8
Makefile
Makefile
+2
-4
Makefile
example/echo_c++/Makefile
+1
-1
Makefile
example/http_c++/Makefile
+1
-1
Makefile
example/multi_threaded_echo_c++/Makefile
+1
-1
Makefile
test/Makefile
+1
-1
No files found.
Makefile
View file @
6301cdef
...
@@ -184,9 +184,7 @@ BASE_SOURCES = \
...
@@ -184,9 +184,7 @@ BASE_SOURCES = \
src/base/containers/case_ignored_flat_map.cpp
\
src/base/containers/case_ignored_flat_map.cpp
\
src/base/iobuf.cpp
src/base/iobuf.cpp
BASE_PROTOS
=
$
(
filter %.proto,
$(BASE_SOURCES)
)
BASE_OBJS
=
$
(
addsuffix .o,
$
(
basename
$(BASE_SOURCES)
))
BASE_CFAMILIES
=
$
(
filter-out %.proto,
$(BASE_SOURCES)
)
BASE_OBJS
=
$
(
BASE_PROTOS:.proto
=
.pb.o
)
$
(
addsuffix .o,
$
(
basename
$(BASE_CFAMILIES)
))
BASE_DEBUG_OBJS
=
$
(
BASE_OBJS:.o
=
.dbg.o
)
BASE_DEBUG_OBJS
=
$
(
BASE_OBJS:.o
=
.dbg.o
)
BVAR_DIRS
=
src/bvar src/bvar/detail
BVAR_DIRS
=
src/bvar src/bvar/detail
...
@@ -308,7 +306,7 @@ output/bin:protoc-gen-mcpack
...
@@ -308,7 +306,7 @@ output/bin:protoc-gen-mcpack
@
mkdir
-p
$@
@
mkdir
-p
$@
@
cp
$^
$@
@
cp
$^
$@
%.pb.cc
:
%.proto
%.pb.cc
%.pb.h
:
%.proto
@
echo
"Generating
$@
"
@
echo
"Generating
$@
"
@
$(PROTOC)
--cpp_out
=
./src
--proto_path
=
./src
--proto_path
=
$(PROTOBUF_HDR)
$<
@
$(PROTOC)
--cpp_out
=
./src
--proto_path
=
./src
--proto_path
=
$(PROTOBUF_HDR)
$<
...
...
example/echo_c++/Makefile
View file @
6301cdef
...
@@ -33,7 +33,7 @@ echo_server:$(PROTO_OBJS) $(SERVER_OBJS)
...
@@ -33,7 +33,7 @@ echo_server:$(PROTO_OBJS) $(SERVER_OBJS)
@
echo
"Linking
$@
"
@
echo
"Linking
$@
"
@
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
@
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
%.pb.cc
:
%.proto
%.pb.cc
%.pb.h
:
%.proto
@
echo
"Generating
$@
"
@
echo
"Generating
$@
"
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
$(PROTOC_EXTRA_ARGS)
$<
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
$(PROTOC_EXTRA_ARGS)
$<
...
...
example/http_c++/Makefile
View file @
6301cdef
...
@@ -43,7 +43,7 @@ http_server:$(PROTO_OBJS) $(SERVER_OBJS)
...
@@ -43,7 +43,7 @@ http_server:$(PROTO_OBJS) $(SERVER_OBJS)
@
echo
"Linking
$@
"
@
echo
"Linking
$@
"
@
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
@
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
%.pb.cc
:
%.proto
%.pb.cc
%.pb.h
:
%.proto
@
echo
"Generating
$@
"
@
echo
"Generating
$@
"
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
$<
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
$<
...
...
example/multi_threaded_echo_c++/Makefile
View file @
6301cdef
...
@@ -37,7 +37,7 @@ echo_server:$(PROTO_OBJS) $(SERVER_OBJS)
...
@@ -37,7 +37,7 @@ echo_server:$(PROTO_OBJS) $(SERVER_OBJS)
@
echo
"Linking
$@
"
@
echo
"Linking
$@
"
@
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
@
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
%.pb.cc
:
%.proto
%.pb.cc
%.pb.h
:
%.proto
@
echo
"Generating
$@
"
@
echo
"Generating
$@
"
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
$(PROTOC_EXTRA_ARGS)
$<
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
$(PROTOC_EXTRA_ARGS)
$<
...
...
test/Makefile
View file @
6301cdef
...
@@ -199,7 +199,7 @@ brpc_%_unittest:$(TEST_PROTO_OBJS) brpc_%_unittest.o ../libbase.dbg.a ../libbvar
...
@@ -199,7 +199,7 @@ brpc_%_unittest:$(TEST_PROTO_OBJS) brpc_%_unittest.o ../libbase.dbg.a ../libbvar
@
echo
"Linking
$@
"
@
echo
"Linking
$@
"
@
$(CXX)
-o
$@
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
@
$(CXX)
-o
$@
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
%.pb.cc
:
%.proto
%.pb.cc
%.pb.h
:
%.proto
@
echo
"Generating
$@
"
@
echo
"Generating
$@
"
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
--proto_path
=
../src
--proto_path
=
$(PROTOBUF_HDR)
$<
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
--proto_path
=
../src
--proto_path
=
$(PROTOBUF_HDR)
$<
...
...
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