Files
MX_Pmodule/scripts/Compiler/boost/build

49 lines
896 B
Bash
Executable File

#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
# :TODO: detect compiler
TOOLSET=gcc
function em.configure() {
cd "${MODULE_SRCDIR}"
"${MODULE_SRCDIR}"/bootstrap.sh \
--prefix="${PREFIX}" \
--with-toolset=${TOOLSET} \
--with-libraries=all \
--with-python-root="${PYTHON_PREFIX}" \
|| exit 1
}
function em.build() {
cd "${MODULE_SRCDIR}"
./b2 \
--build-type=minimal \
--build-dir="${MODULE_BUILDDIR}" \
--layout=system \
--without-mpi \
variant=release \
link=static \
threading=multi \
stage
}
function em.install() {
cd "${MODULE_SRCDIR}"
./b2 \
--build-type=minimal \
--build-dir="${MODULE_BUILDDIR}" \
--layout=system \
--without-mpi \
variant=release \
link=static \
threading=multi \
install
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}" 'Python'
em.make_all