Merge pull request #86 from litghost/add_install_target

Add install target for capnp-java and the java.capnp include file.
This commit is contained in:
David Renshaw 2020-09-23 20:51:22 -04:00 committed by GitHub
commit b60bc1e714
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,8 @@ CAPNP_PREFIX=$(shell dirname $(shell which capnp))/..
CAPNP_CXX_FLAGS=-I $(CAPNP_PREFIX)/include -L $(CAPNP_PREFIX)/lib -lkj -lcapnp
endif
PREFIX ?= /usr/local
CXX=g++
CXX_FLAGS=-std=c++14 $(CAPNP_CXX_FLAGS)
@ -22,6 +24,11 @@ clean :
capnpc-java : $(CAPNPC_JAVA_SOURCES)
$(CXX) $(CAPNPC_JAVA_SOURCES) $(CXX_FLAGS) -o capnpc-java
install:
mkdir -p ${PREFIX}/bin
mkdir -p ${PREFIX}/include/capnp/
cp capnpc-java ${PREFIX}/bin
cp compiler/src/main/schema/capnp/java.capnp ${PREFIX}/include/capnp/
MINGW_LIBS=~/src/capnproto/c++/build-mingw/.libs/libcapnp.a ~/src/capnproto/c++/build-mingw/.libs/libkj.a
MINGW_CXX=i686-w64-mingw32-g++