Make task capnp-compile to compile from .capnp files in the project.
This commit is contained in:
parent
a379aa89ac
commit
73b5d565de
1 changed files with 10 additions and 0 deletions
10
Makefile.am
10
Makefile.am
|
|
@ -80,3 +80,13 @@ capn_test_CXXFLAGS = -std=gnu++11 -pthread
|
|||
capn_test_LDADD = libcapnp_c.la $(GTEST_LDADD)
|
||||
capn_test_LDFLAGS = -pthread
|
||||
TESTS = capn-test
|
||||
|
||||
CAPNP_SCHEMA_FILES := $(shell find . -type f -name \*.capnp)
|
||||
|
||||
CAPNP ?= capnp
|
||||
.PHONY: capnp-compile
|
||||
capnp-compile:
|
||||
$(CAPNP) compile \
|
||||
--output=./capnpc-c \
|
||||
-Icompiler \
|
||||
$(CAPNP_SCHEMA_FILES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue