Skip to content

Commit

Permalink
build-system: add script to build only libdivecomputer
Browse files Browse the repository at this point in the history
This is used on LGTM (and initially got lost when I merged those changes).

Signed-off-by: Dirk Hohndel <[email protected]>
  • Loading branch information
dirkhh committed Mar 17, 2019
1 parent 0a25b32 commit 3d193c7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/build-libdivecomputer.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3d193c7

Please sign in to comment.