Merge branch 'issue-capnproto-build' into 'main'

parameterize install capnproto

See merge request veilid/veilid!16
This commit is contained in:
John Smith 2023-02-26 00:54:30 +00:00
commit a6c5c2f372
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ deps-base:
deps-capnp: deps-capnp:
FROM +deps-base FROM +deps-base
COPY scripts/earthly/install_capnproto.sh / COPY scripts/earthly/install_capnproto.sh /
RUN /bin/bash /install_capnproto.sh; rm /install_capnproto.sh RUN /bin/bash /install_capnproto.sh 1; rm /install_capnproto.sh
# Install protoc # Install protoc
deps-protoc: deps-protoc:

View File

@ -5,7 +5,7 @@ curl -O https://capnproto.org/capnproto-c++-0.10.2.tar.gz
tar zxf capnproto-c++-0.10.2.tar.gz tar zxf capnproto-c++-0.10.2.tar.gz
cd capnproto-c++-0.10.2 cd capnproto-c++-0.10.2
./configure --without-openssl ./configure --without-openssl
make -j6 check make -j$1 check
if [ "$EUID" -ne 0 ]; then if [ "$EUID" -ne 0 ]; then
if command -v checkinstall &> /dev/null; then if command -v checkinstall &> /dev/null; then
sudo checkinstall -y sudo checkinstall -y