This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/utilities/mesh/conversion/Optional/Allwmake

29 lines
522 B
Text
Raw Normal View History

#!/bin/sh
# Build optional components (eg, may depend on third-party libraries)
set -x
# run from this directory only
cd ${0%/*} || exit 1
if [ "`uname -s`" == Darwin ]; then
WM_SHARED_SUFFIX=dylib
else
WM_SHARED_SUFFIX=so
fi
# build libccmio if required
if [ ! -e $FOAM_LIBBIN/libccmio.$WM_SHARED_SUFFIX ]
then
(
cd $WM_THIRD_PARTY_DIR && ./AllwmakeLibccmio
)
fi
# if the library built okay, the headers must exist too
if [ -e $FOAM_LIBBIN/libccmio.$WM_SHARED_SUFFIX ]
then
wmake ccm26ToFoam
fi
# end