From 8eeaad1c4c7c9429915d3ba9548dccef852a79a8 Mon Sep 17 00:00:00 2001 From: Chandan Paul Date: Tue, 3 Dec 2024 14:12:36 -0500 Subject: [PATCH] FDS Build: Add --no-libs option for WINDOWS --- Build/Scripts/build_thirdparty_libs.bat | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/Build/Scripts/build_thirdparty_libs.bat b/Build/Scripts/build_thirdparty_libs.bat index ed3fd617043..5741c32b1c3 100644 --- a/Build/Scripts/build_thirdparty_libs.bat +++ b/Build/Scripts/build_thirdparty_libs.bat @@ -6,6 +6,7 @@ call ..\Scripts\set_compilers.bat set clean_hypre= set clean_sundials= set clean_fds= +set no_libs= set stopscript=0 set FDS_BUILDDIR=%CD% @@ -42,6 +43,11 @@ goto eof set clean_sundials=--clean-sundials set valid=1 ) + if /I "%1" EQU "--no-libs" ( + set no_libs=--no-libs + set clean_fds=--clean-fds + set valid=1 + ) if /I "%1" EQU "-help" ( call :usage set stopscript=1 @@ -74,6 +80,7 @@ echo --clean-all - rebuild all libraries, remove .obj and .mod files from t echo --clean-fds - remove .obj and .mod files from the fds build directory echo --clean-hypre - rebuild hypre library echo --clean-sundials - rebuild sundials library +echo --no-libs - build without thirdparty libs echo --help - display this message exit /b @@ -91,13 +98,17 @@ set SCRIPTDIR=%~dp0 cd %SCRIPTDIR% SET SCRIPTDIR=%CD% +if "x%no_libs%" == "x" ( + :: Call HYPRE and SUNDIALS build script + cd %SCRIPTDIR%\HYPRE + call build_hypre %clean_hypre% - -::Call HYPRE and SUNDIALS build script -cd %SCRIPTDIR%\HYPRE -call build_hypre %clean_hypre% - -cd %SCRIPTDIR%\SUNDIALS -call build_sundials %clean_sundials% + cd %SCRIPTDIR%\SUNDIALS + call build_sundials %clean_sundials% +) else ( + set SUNDIALS_HOME= + set HYPRE_HOME= + echo Building FDS without third-party libraries. +) cd %CURDIR_3RDPARTY%