From 9fefd1039055bdf7561d17b4d12a16cf9c5d63ab Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 16 Mar 2019 21:54:52 -0700 Subject: build-system: add script to build only libdivecomputer This is used on LGTM (and initially got lost when I merged those changes). Signed-off-by: Dirk Hohndel --- scripts/build-libdivecomputer.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 scripts/build-libdivecomputer.sh (limited to 'scripts/build-libdivecomputer.sh') diff --git a/scripts/build-libdivecomputer.sh b/scripts/build-libdivecomputer.sh new file mode 100755 index 000000000..e3f50b2ca --- /dev/null +++ b/scripts/build-libdivecomputer.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# this should be run from the subsurface directory + +if [ ! -d libdivecomputer/src ] ; then + git submodule init + git submodule update --recursive +fi + +mkdir -p libdivecomputer/build +cd libdivecomputer/build + +if [ ! -f ../configure ] ; then + # this is not a typo + # in some scenarios it appears that autoreconf doesn't copy the + # ltmain.sh file; running it twice, however, fixes that problem + autoreconf --install .. + autoreconf --install .. +fi + +../configure --disable-examples --prefix=$INSTALL_ROOT + + +make -j4 +make install -- cgit v1.2.3-70-g09d2