mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: adjust make scripts for darwin
- handling of dead links (find -L -delete unsupported) - remove ignore case flag on 's/../../i' used in have_scotch script. It is unneeded and not tolerated by Darwin's sed. - avoid embedded comments in EXE_INC (Make/options files), which do not work well with the OSX LLVM cpp. It strips out the comments but also removes the continuation char. STYLE: adjust notes about paraview library locations
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
|
/* Add to EXE_INC as required:
|
||||||
|
-g -DFULLDEBUG -O0
|
||||||
|
*/
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
/* -g -DFULLDEBUG -O0 */ \
|
|
||||||
-I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/mesh/snappyHexMesh/lnInclude \
|
-I$(LIB_SRC)/mesh/snappyHexMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/fileFormats/lnInclude \
|
-I$(LIB_SRC)/fileFormats/lnInclude \
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
|
/* Add to EXE_INC as required:
|
||||||
|
-DFULLDEBUG -g -O0
|
||||||
|
*/
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
/* -DFULLDEBUG -g -O0 */ \
|
|
||||||
${COMP_FLAGS} \
|
${COMP_FLAGS} \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
|
|||||||
@ -1,8 +1,11 @@
|
|||||||
|
/* Add to EXE_INC as required:
|
||||||
|
-DDEBUG_ZIPUP
|
||||||
|
-DDEBUG_CHAIN
|
||||||
|
-DDEBUG_ORDER
|
||||||
|
*/
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude
|
||||||
/* -DDEBUG_ZIPUP */ \
|
|
||||||
/* -DDEBUG_CHAIN */ \
|
|
||||||
/* -DDEBUG_ORDER */
|
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lmeshTools
|
-lmeshTools
|
||||||
|
|||||||
@ -28,18 +28,17 @@
|
|||||||
# For central installations not located under ThirdParty, the environment
|
# For central installations not located under ThirdParty, the environment
|
||||||
# values must be set manually. For example,
|
# values must be set manually. For example,
|
||||||
#
|
#
|
||||||
# setenv ParaView_DIR /opt/paraview/paraview-5.4.1
|
# setenv ParaView_DIR /opt/paraview/paraview-5.5.0
|
||||||
# setenv ParaView_INCLUDE_DIR $ParaView_DIR/include/paraview-5.4
|
# setenv ParaView_INCLUDE_DIR $ParaView_DIR/include/paraview-5.5
|
||||||
# setenv PV_PLUGIN_PATH $FOAM_LIBBIN/paraview-5.4
|
# setenv PV_PLUGIN_PATH $FOAM_LIBBIN/paraview-5.5
|
||||||
#
|
#
|
||||||
# setenv PATH ${ParaView_DIR}/bin:${PATH}
|
# setenv PATH $ParaView_DIR/bin:${PATH}
|
||||||
# setenv LD_LIBRARY_PATH ${ParaView_DIR}/lib/paraview-5.4:${LD_LIBRARY_PATH}
|
# setenv LD_LIBRARY_PATH $ParaView_DIR/lib:$LD_LIBRARY_PATH
|
||||||
# unsetenv ParaView_VERSION # avoid using ThirdParty settings
|
# unsetenv ParaView_VERSION # avoid using ThirdParty settings
|
||||||
#
|
#
|
||||||
# In newer versions (paraview 5.5), the contents of the lib/ changed
|
# In paraview-5.4 and earlier, the libraries were in the sub-directory:
|
||||||
# and now need to include that as well:
|
|
||||||
#
|
#
|
||||||
# setenv LD_LIBRARY_PATH ${ParaView_DIR}/lib:${ParaView_DIR}/lib/paraview-5.5:${LD_LIBRARY_PATH}
|
# setenv LD_LIBRARY_PATH $ParaView_DIR/lib/paraview-5.4:$LD_LIBRARY_PATH
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||||
@ -50,7 +49,7 @@ set cmake_version=cmake-system
|
|||||||
|
|
||||||
# END OF (NORMAL) USER EDITABLE PART
|
# END OF (NORMAL) USER EDITABLE PART
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
set pv_api=auto # Either auto or pair of digits (eg, '5.4' etc)
|
set pv_api=auto # Either auto or pair of (major.minor) digits
|
||||||
|
|
||||||
if (! $?ParaView_DIR ) setenv ParaView_DIR
|
if (! $?ParaView_DIR ) setenv ParaView_DIR
|
||||||
if (! $?WM_COMPILER_LIB_ARCH ) setenv WM_COMPILER_LIB_ARCH
|
if (! $?WM_COMPILER_LIB_ARCH ) setenv WM_COMPILER_LIB_ARCH
|
||||||
|
|||||||
@ -34,7 +34,7 @@
|
|||||||
#
|
#
|
||||||
# When _foamAddLibAuto is unset (eg, called from makeCGAL):
|
# When _foamAddLibAuto is unset (eg, called from makeCGAL):
|
||||||
# - boost_version / cgal_version variables are retained.
|
# - boost_version / cgal_version variables are retained.
|
||||||
# - the LD_LIBRARY_PATH is not adjusted.
|
# - the lib-path is not adjusted.
|
||||||
#
|
#
|
||||||
# Can also disable by renaming/removing this file or by creating an empty
|
# Can also disable by renaming/removing this file or by creating an empty
|
||||||
# file with the same name at a user or site location.
|
# file with the same name at a user or site location.
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
# Note
|
# Note
|
||||||
# When _foamAddLibAuto is unset (eg, called from makeFFTW):
|
# When _foamAddLibAuto is unset (eg, called from makeFFTW):
|
||||||
# - fftw_version variable is retained.
|
# - fftw_version variable is retained.
|
||||||
# - LD_LIBRARY_PATH is not adjusted.
|
# - the lib-path is not adjusted.
|
||||||
#
|
#
|
||||||
# Can also disable by renaming/removing this file or by creating an empty
|
# Can also disable by renaming/removing this file or by creating an empty
|
||||||
# file with the same name at a user or site location.
|
# file with the same name at a user or site location.
|
||||||
|
|||||||
@ -28,18 +28,17 @@
|
|||||||
# For central installations not located under ThirdParty, the environment
|
# For central installations not located under ThirdParty, the environment
|
||||||
# values must be set manually. For example,
|
# values must be set manually. For example,
|
||||||
#
|
#
|
||||||
# export ParaView_DIR=/opt/paraview/paraview-5.4.1
|
# export ParaView_DIR=/opt/paraview/paraview-5.5.0
|
||||||
# export ParaView_INCLUDE_DIR=$ParaView_DIR/include/paraview-5.4
|
# export ParaView_INCLUDE_DIR=$ParaView_DIR/include/paraview-5.5
|
||||||
# export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-5.4
|
# export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-5.5
|
||||||
#
|
#
|
||||||
# export PATH=$ParaView_DIR/bin:$PATH
|
# export PATH=$ParaView_DIR/bin:$PATH
|
||||||
# export LD_LIBRARY_PATH=$ParaView_DIR/lib/paraview-5.4:$LD_LIBRARY_PATH
|
# export LD_LIBRARY_PATH=$ParaView_DIR/lib:$LD_LIBRARY_PATH
|
||||||
# unset ParaView_VERSION # avoid using ThirdParty settings
|
# unset ParaView_VERSION # avoid using ThirdParty settings
|
||||||
#
|
#
|
||||||
# In newer versions (paraview 5.5), the contents of the lib/ changed
|
# In paraview-5.4 and earlier, the libraries were in the sub-directory:
|
||||||
# and now need to include that as well:
|
|
||||||
#
|
#
|
||||||
# export LD_LIBRARY_PATH=$ParaView_DIR/lib:$ParaView_DIR/lib/paraview-5.5:$LD_LIBRARY_PATH
|
# export LD_LIBRARY_PATH=$ParaView_DIR/lib/paraview-5.4:$LD_LIBRARY_PATH
|
||||||
#
|
#
|
||||||
# Note
|
# Note
|
||||||
# When _foamAddLib is unset (eg, called from makeParaView or from foamPV):
|
# When _foamAddLib is unset (eg, called from makeParaView or from foamPV):
|
||||||
@ -53,7 +52,7 @@ cmake_version=cmake-system
|
|||||||
|
|
||||||
# END OF (NORMAL) USER EDITABLE PART
|
# END OF (NORMAL) USER EDITABLE PART
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
pv_api=auto # Either auto or pair of digits (eg, '5.4' etc)
|
pv_api=auto # Either auto or pair of (major.minor) digits
|
||||||
|
|
||||||
# Compiler-specific location for ThirdParty installations
|
# Compiler-specific location for ThirdParty installations
|
||||||
archDir="$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER"
|
archDir="$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER"
|
||||||
|
|||||||
@ -106,7 +106,6 @@ Operating system '$WM_ARCH' has incomplete support in this OpenFOAM release.
|
|||||||
For further assistance, please contact www.OpenFOAM.com
|
For further assistance, please contact www.OpenFOAM.com
|
||||||
===============================================================================
|
===============================================================================
|
||||||
INCOMPLETE
|
INCOMPLETE
|
||||||
echo "Darwin support ($WM_ARCH) is incomplete" 1>&2
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
SunOS)
|
SunOS)
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
|
/* Add to EXE_INC as required:
|
||||||
|
-DWITH_MONITORING -DDEBUG_MONITORING
|
||||||
|
-DDEBUG_BAFFLES
|
||||||
|
-DDEBUG_CCMIOREAD
|
||||||
|
*/
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
/* -DWITH_MONITORING -DDEBUG_MONITORING */ \
|
|
||||||
/* -DDEBUG_BAFFLES */ \
|
|
||||||
/* -DDEBUG_CCMIOREAD */ \
|
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/fileFormats/lnInclude \
|
-I$(LIB_SRC)/fileFormats/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
|
/* Add to EXE_INC as required:
|
||||||
|
-DFULLDEBUG -O0 -g
|
||||||
|
*/
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
/* -DFULLDEBUG -O0 -g */ \
|
|
||||||
-I$(LIB_SRC)/fileFormats/lnInclude \
|
-I$(LIB_SRC)/fileFormats/lnInclude \
|
||||||
-I$(LIB_SRC)/surfMesh/lnInclude \
|
-I$(LIB_SRC)/surfMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/sampling/lnInclude \
|
-I$(LIB_SRC)/sampling/lnInclude \
|
||||||
|
|||||||
@ -118,7 +118,7 @@ have_scotch()
|
|||||||
# Ensure consistent sizes between OpenFOAM and scotch header
|
# Ensure consistent sizes between OpenFOAM and scotch header
|
||||||
# extract 'typedef int64_t SCOTCH_Num' or equivalent
|
# extract 'typedef int64_t SCOTCH_Num' or equivalent
|
||||||
label=$(sed -ne \
|
label=$(sed -ne \
|
||||||
's/^.*typedef *\([^ ]*\) *SCOTCH_Num.*/\1/ip' \
|
's/^.*typedef *\([^ ]*\) *SCOTCH_Num.*/\1/p' \
|
||||||
"$header")
|
"$header")
|
||||||
: ${label:=unknown} # Failsafe value
|
: ${label:=unknown} # Failsafe value
|
||||||
|
|
||||||
|
|||||||
@ -67,10 +67,7 @@ USAGE
|
|||||||
# Parse arguments and options
|
# Parse arguments and options
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Default 'find' option
|
# Option for 'ln'
|
||||||
unset findOpt
|
|
||||||
|
|
||||||
# Default 'ln' option
|
|
||||||
lnOpt="-s"
|
lnOpt="-s"
|
||||||
|
|
||||||
unset update silentOpt
|
unset update silentOpt
|
||||||
@ -149,14 +146,22 @@ fi
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Remove any broken links first (this helps when file locations have moved)
|
# Remove any broken links first (this helps when file locations have moved)
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
case "$WM_ARCH" in
|
||||||
|
darwin*)
|
||||||
|
find -L . -type l -exec rm -- {} \+
|
||||||
|
;;
|
||||||
|
*)
|
||||||
find -L . -type l -delete
|
find -L . -type l -delete
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Create links, avoid recreating links unless necessary
|
# Create links, avoid recreating links unless necessary
|
||||||
# things placed in the 'noLink' directory are skipped
|
# things placed in the 'noLink' directory are skipped
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
find .. $findOpt \
|
find .. \
|
||||||
\( -name lnInclude -o -name Make -o -name config -o -name noLink \) \
|
\( -name lnInclude -o -name Make -o -name config -o -name noLink \) \
|
||||||
-prune \
|
-prune \
|
||||||
-o \( \
|
-o \( \
|
||||||
|
|||||||
Reference in New Issue
Block a user