Skip to content

Commit

Permalink
Add Zlib, add DCPLib to setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed Oct 22, 2024
1 parent dd30e08 commit 71c1e22
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
6 changes: 6 additions & 0 deletions dependencies/dependencies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
</releasefile>
</dependency>

<dependency name="zlib">
<releasefile sha256="72af66d44fcc14c22013b46b814d5d2514673dda3d115e64b690c1ad636e7b17">
<url>https://github.com/madler/zlib/releases/download/v1.3.1/zlib131.zip</url>
</releasefile>
</dependency>

<dependency name="libzip">
<releasefile sha256="242083351e0a568e6ae69ca05f8eb76ed028807bf39cd8fcb4ea58d409ae0f3f">
<url>https://github.com/nih-at/libzip/archive/v1.7.3.zip</url>
Expand Down
6 changes: 3 additions & 3 deletions dependencies/setupAll.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ start /wait cmd /c setupZeroMQ.bat
start /wait cmd /c setupKatex.bat
start /wait cmd /c setupTclap.bat
start /wait cmd /c setupHDF5.bat
start /wait cmd /c setupXerces.sh
start /wait cmd /c setupLibzip.sh

start /wait cmd /c setupXerces.bat
start /wait cmd /c setupLibzip.bat
start /wait cmd /c setupDCPLib.bat
1 change: 1 addition & 0 deletions dependencies/setupAll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
./setupHDF5.sh
./setupXerces.sh
./setupLibzip.sh
./setupDCPLib.sh
25 changes: 25 additions & 0 deletions dependencies/setupZlib.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@ECHO OFF
REM Bat script building libzip dependency automatically

setlocal
set basedir=%~dp0
set name=zlib
set codedir=%basedir%\%name%-code
set builddir=%basedir%\%name%-build
set installdir=%basedir%\%name%

call setHopsanBuildPaths.bat

mkdir %builddir%
cd %builddir%
cmake -Wno-dev -G %HOPSAN_BUILD_CMAKE_GENERATOR% -DCMAKE_INSTALL_PREFIX="%installdir%" %codedir%
cmake --build . --config Release --parallel 8
cmake --build . --config Release --target install

cd %basedir%
echo.
echo setupZlib.bat done
if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" (
pause
)
endlocal

0 comments on commit 71c1e22

Please sign in to comment.