Skip to content

Commit ab3df28

Browse files
authored
Merge pull request #13827 from cxp484/master
FDS Build: Add --no-libs option for WINDOWS
2 parents 6fcf6bc + 8eeaad1 commit ab3df28

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

Build/Scripts/build_thirdparty_libs.bat

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ call ..\Scripts\set_compilers.bat
66
set clean_hypre=
77
set clean_sundials=
88
set clean_fds=
9+
set no_libs=
910
set stopscript=0
1011
set FDS_BUILDDIR=%CD%
1112

@@ -42,6 +43,11 @@ goto eof
4243
set clean_sundials=--clean-sundials
4344
set valid=1
4445
)
46+
if /I "%1" EQU "--no-libs" (
47+
set no_libs=--no-libs
48+
set clean_fds=--clean-fds
49+
set valid=1
50+
)
4551
if /I "%1" EQU "-help" (
4652
call :usage
4753
set stopscript=1
@@ -74,6 +80,7 @@ echo --clean-all - rebuild all libraries, remove .obj and .mod files from t
7480
echo --clean-fds - remove .obj and .mod files from the fds build directory
7581
echo --clean-hypre - rebuild hypre library
7682
echo --clean-sundials - rebuild sundials library
83+
echo --no-libs - build without thirdparty libs
7784
echo --help - display this message
7885
exit /b
7986

@@ -91,13 +98,17 @@ set SCRIPTDIR=%~dp0
9198
cd %SCRIPTDIR%
9299
SET SCRIPTDIR=%CD%
93100

101+
if "x%no_libs%" == "x" (
102+
:: Call HYPRE and SUNDIALS build script
103+
cd %SCRIPTDIR%\HYPRE
104+
call build_hypre %clean_hypre%
94105

95-
96-
::Call HYPRE and SUNDIALS build script
97-
cd %SCRIPTDIR%\HYPRE
98-
call build_hypre %clean_hypre%
99-
100-
cd %SCRIPTDIR%\SUNDIALS
101-
call build_sundials %clean_sundials%
106+
cd %SCRIPTDIR%\SUNDIALS
107+
call build_sundials %clean_sundials%
108+
) else (
109+
set SUNDIALS_HOME=
110+
set HYPRE_HOME=
111+
echo Building FDS without third-party libraries.
112+
)
102113

103114
cd %CURDIR_3RDPARTY%

0 commit comments

Comments
 (0)