mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-09 23:04:07 +00:00
Add missing copyright header to CMakeLists.txt. Rename build directory to tools. Update Travis CI and AppVeyor scripts. Ignore variants of build directory. Ignore CMakeSettings.json used with CMake integration for VS2017. Ignore Visual Studio and Visual Studio Code local settings folder.
20 lines
866 B
Bash
20 lines
866 B
Bash
# Must be run from project directory, can be run locally for testing.
|
|
# Uses default python interpreter and patches project-config.jam as a
|
|
# workaround for a bug in the boost build scripts.
|
|
BOOST_VERSION=1.66.0
|
|
if [[ -z "${TRAVIS_BUILD_DIR}" ]]; then
|
|
TRAVIS_BUILD_DIR=/tmp
|
|
fi
|
|
BOOST_DIR=${TRAVIS_BUILD_DIR}/deps/boost-${BOOST_VERSION}
|
|
PROJECT_DIR=$(pwd)
|
|
echo "Boost: ${BOOST_DIR}"
|
|
mkdir -p ${BOOST_DIR}
|
|
if [[ -z "$(ls -A ${BOOST_DIR})" ]]; then
|
|
BOOST_URL="http://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/boost_${BOOST_VERSION//\./_}.tar.gz"
|
|
{ wget --quiet -O - ${BOOST_URL} | tar --strip-components=1 -xz -C ${BOOST_DIR}; } || exit 1
|
|
( cd ${BOOST_DIR}
|
|
./bootstrap.sh > /dev/null
|
|
(./b2 install --prefix=${BOOST_DIR} --with-serialization | grep -v -e common\.copy -e common\.mkdir) )
|
|
fi
|
|
ls ${BOOST_DIR}/lib | grep libboost || exit 1
|