Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
b15789d8
Commit
b15789d8
authored
Dec 10, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pkg-config support.
parent
40d86592
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
6 deletions
+32
-6
Makefile.am
c++/Makefile.am
+3
-0
capnp-rpc.pc.in
c++/capnp-rpc.pc.in
+11
-0
capnp.pc.in
c++/capnp.pc.in
+11
-0
configure.ac
c++/configure.ac
+1
-1
test.sh
c++/samples/test.sh
+6
-5
No files found.
c++/Makefile.am
View file @
b15789d8
...
...
@@ -117,6 +117,9 @@ includekjparsedir = $(includekjdir)/parse
dist_includecapnp_DATA
=
$(public_capnpc_inputs)
pkgconfigdir
=
$(libdir)
/pkgconfig
pkgconfig_DATA
=
capnp.pc capnp-rpc.pc
includekj_HEADERS
=
\
src/kj/common.h
\
src/kj/units.h
\
...
...
c++/capnp-rpc.pc.in
0 → 100644
View file @
b15789d8
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Cap'n Proto RPC
Description: Fast object-oriented RPC system
Version: @VERSION@
Libs: -L${libdir} -lcapnp-rpc -lkj-async
Requires: capnp = @VERSION@
Cflags: -I${includedir}
c++/capnp.pc.in
0 → 100644
View file @
b15789d8
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Cap'n Proto
Description: Insanely fast serialization system
Version: @VERSION@
Libs: -L${libdir} -lcapnp -lkj @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
Libs.private: @LIBS@
Cflags: -I${includedir} @PTHREAD_CFLAGS@
c++/configure.ac
View file @
b15789d8
...
...
@@ -59,5 +59,5 @@ CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
ac_configure_args="$ac_configure_args 'CXX=$CXX'"
AC_CONFIG_SUBDIRS([gtest])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile
capnp.pc capnp-rpc.pc
])
AC_OUTPUT
c++/samples/test.sh
View file @
b15789d8
...
...
@@ -6,16 +6,17 @@
set
-exuo
pipefail
capnpc
-oc
++ addressbook.capnp
c++
-std
=
c++11
-Wall
addressbook.c++ addressbook.capnp.c++
-lcapnp
-lkj
-pthread
-o
addressbook
c++
-std
=
c++11
-Wall
addressbook.c++ addressbook.capnp.c++
\
$(
pkg-config
--cflags
--libs
capnp
)
-o
addressbook
./addressbook write | ./addressbook
read
./addressbook dwrite | ./addressbook dread
rm
addressbook addressbook.capnp.c++ addressbook.capnp.h
capnpc
-oc
++ calculator.capnp
c++
-std
=
c++11
-Wall
calculator-client.c++ calculator.capnp.c++
-lcapnp-rpc
-lcapnp
-lkj-async
\
-lkj
-pthread
-o
calculator-client
c++
-std
=
c++11
-Wall
calculator-server.c++ calculator.capnp.c++
-lcapnp-rpc
-lcapnp
-lkj-async
\
-lkj
-pthread
-o
calculator-server
c++
-std
=
c++11
-Wall
calculator-client.c++ calculator.capnp.c++
\
$(
pkg-config
--cflags
--libs
capnp-rpc
)
-o
calculator-client
c++
-std
=
c++11
-Wall
calculator-server.c++ calculator.capnp.c++
\
$(
pkg-config
--cflags
--libs
capnp-rpc
)
-o
calculator-server
rm
-f
/tmp/capnp-calculator-example-
$$
./calculator-server unix:/tmp/capnp-calculator-example-
$$
&
sleep
0.1
...
...
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