@@ -17,17 +17,19 @@ exit /b 0
1717
1818:build_adios2
1919 if exist adios2-stamp exit /b 0
20- curl -sLo adios2-2.10.2 .zip ^
21- https://github.com/ornladios/ADIOS2/archive/v2.10.2 .zip
22- powershell Expand-Archive adios2-2.10.2 .zip -DestinationPath dep-adios2
20+ curl -sLo adios2-2.11.0 .zip ^
21+ https://github.com/ornladios/ADIOS2/archive/v2.11.0 .zip
22+ powershell Expand-Archive adios2-2.11.0 .zip -DestinationPath dep-adios2
2323
24- curl -sLo dep-adios2/ADIOS2-2.10.2/patch.diff https://github.com/franzpoeschel/ADIOS2/commit/patches-fix-32-bit-builds.patch
24+ :: Patch Win32 on ADIOS 2.11.0 https://github.com/ornladios/ADIOS2/issues/4808
25+ curl -sLo dep-adios2/ADIOS2-2.11.0/patch.diff https://github.com/franzpoeschel/ADIOS2/commit/13e9747799e32841b29f166c2bcdfd82ee915f1a.patch
2526
2627 :: Use git-am for applying the patch,
2728 :: for some reason, python -m patch just silently does nothing.
2829 :: git-am requires a Git repository to apply a patch, but the release zip
2930 :: strips away any Git info, so we just quickly initialize a repository.
30- cd dep-adios2/ADIOS2-2.10.2
31+
32+ cd dep-adios2/ADIOS2-2.11.0
3133 git init
3234 git config user.email " tooling@tools.com"
3335 git config user.name " Tooling"
@@ -39,7 +41,7 @@ exit /b 0
3941
4042 cmake --version
4143
42- cmake -S dep-adios2/ADIOS2-2.10.2 -B build-adios2 ^
44+ cmake -S dep-adios2/ADIOS2-2.11.0 -B build-adios2 ^
4345 -DCMAKE_BUILD_TYPE=Release ^
4446 -DCMAKE_DISABLE_FIND_PACKAGE_LibFFI=TRUE ^
4547 -DBUILD_SHARED_LIBS=OFF ^
@@ -49,7 +51,7 @@ exit /b 0
4951 -DADIOS2_Blosc2_PREFER_SHARED=OFF ^
5052 -DADIOS2_USE_Blosc2=ON ^
5153 -DADIOS2_USE_BZip2=OFF ^
52- -DADIOS2_USE_Campaign=OFF ^
54+ -DADIOS2_USE_Campaign=ON ^
5355 -DADIOS2_USE_Fortran=OFF ^
5456 -DADIOS2_USE_HDF5=OFF ^
5557 -DADIOS2_USE_MHS=OFF ^
@@ -58,7 +60,8 @@ exit /b 0
5860 -DADIOS2_USE_Python=OFF ^
5961 -DADIOS2_USE_ZeroMQ=OFF ^
6062 -DADIOS2_USE_ZFP=ON ^
61- -DADIOS2_RUN_INSTALL_TEST=OFF
63+ -DADIOS2_RUN_INSTALL_TEST=OFF ^
64+ -DSQLite3_ROOT=%BUILD_PREFIX% /SQLite3
6265 if errorlevel 1 exit 1
6366:: TODO: Could NOT find HDF5 (missing: HDF5_LIBRARIES C)
6467:: -DADIOS2_USE_HDF5=ON
@@ -160,6 +163,52 @@ exit /b 0
160163 if errorlevel 1 exit 1
161164exit /b 0
162165
166+ :build_sqlite
167+ if exist sqlite-stamp exit /b 0
168+
169+ set SQLITE_VERSION = " 3510200"
170+
171+ curl -sLo sqlite-amalgamation-%SQLITE_VERSION% .zip ^
172+ https://www.sqlite.org/2026/sqlite-amalgamation-%SQLITE_VERSION% .zip
173+ if errorlevel 1 exit 1
174+
175+ powershell Expand-Archive sqlite-amalgamation-%SQLITE_VERSION% .zip -DestinationPath '.'
176+ if errorlevel 1 exit 1
177+
178+ cd sqlite-amalgamation-%SQLITE_VERSION%
179+ if errorlevel 1 exit 1
180+
181+ REM Create a minimal CMakeLists.txt
182+ (
183+ echo cmake_minimum_required(VERSION 3.10^ )
184+ echo project(sqlite3 C^ )
185+ echo add_library(sqlite3 STATIC sqlite3.c^ )
186+ echo target_compile_definitions(sqlite3 PRIVATE SQLITE_ENABLE_FTS3 SQLITE_ENABLE_FTS5 SQLITE_ENABLE_RTREE SQLITE_ENABLE_DBSTAT_VTAB SQLITE_ENABLE_RBU SQLITE_ENABLE_SESSION^ )
187+ echo set_property(TARGET sqlite3 PROPERTY MSVC_RUNTIME_LIBRARY " MultiThreaded$<$<CONFIG:Debug>:Debug>" ^ )
188+ echo install(TARGETS sqlite3 ARCHIVE DESTINATION lib^ )
189+ echo install(FILES sqlite3.h DESTINATION include^ )
190+ ) > CMakeLists.txt
191+
192+ :: build and install
193+ cmake -S . -B build ^
194+ -DCMAKE_INSTALL_PREFIX=%BUILD_PREFIX% /SQLite3
195+ if errorlevel 1 exit 1
196+
197+ cmake --build build --config Release
198+ if errorlevel 1 exit 1
199+
200+ cmake --install build --config Release
201+ if errorlevel 1 exit 1
202+
203+ :: cleanup
204+ cd ..
205+ rmdir /s /q sqlite-amalgamation-%SQLITE_VERSION%
206+ if errorlevel 1 exit 1
207+
208+ break > sqlite-stamp
209+ if errorlevel 1 exit 1
210+ exit /b 0
211+
163212:build_zfp
164213 if exist zfp-stamp exit /b 0
165214
@@ -225,6 +274,7 @@ exit /b 0
225274:main
226275call :install_buildessentials
227276call :build_zlib
277+ call :build_sqlite
228278:: build_bzip2
229279:: build_szip
230280call :build_zfp
0 commit comments