db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
28 lines
522 B
Bash
Executable file
28 lines
522 B
Bash
Executable file
#!/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
|