-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.bat
54 lines (44 loc) · 1.32 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
:: Windows Build for Heclib/DSS and javaHeclib
::
call vs_env.bat
echo on
SET DSS_PLATFORM_DIR=x64
:: set version and build_number for javaheclib.dll
set build_number=9999
if not "%1" == "" (set build_number=%1)
echo %build_number%
dssVersion.exe heclib\heclib_c\src\headers\hecdssInternal.h %build_number% > heclib\javaheclib\version_build.h
cd heclib\heclib_f
nmake -f Makefile.win DEBUG=1 clean all
nmake -f Makefile.win clean all
cd %~dp0
msbuild dss.sln /p:Configuration=Release /p:Platform=x64
if NOT %ERRORLEVEL% == 0 exit /b -1
msbuild dss.sln /p:Configuration=Debug /p:Platform=x64
if NOT %ERRORLEVEL% == 0 exit /b -1
cd %~dp0\test\Fortran
call build.bat
cd %~dp0
del heclib.zip
del javaHeclib.zip
mkdir release64
cd release64
del /f *.dll *.lib
copy ..\heclib\javaHeclib\x64\Release\javaHeclib.dll
copy ..\heclib\hecdss\x64\Release\hecdss.dll
copy ..\heclib\heclib_c\x64\Release\heclib_c.lib
copy ..\heclib\heclib_f\x64\Release\heclib_f.lib
7z a ..\javaHeclib.zip javaHeclib.dll
7z a ..\hecdss.zip hecdss.dll
cd ..
7z a -tzip heclib.zip release64
mkdir debug64
cd debug64
del /f *.dll *.lib
copy ..\heclib\javaHeclib\x64\Debug\javaHeclib.dll
copy ..\heclib\hecdss\x64\Debug\hecdss.dll
copy ..\heclib\heclib_c\x64\Debug\heclib_c.lib
copy ..\heclib\heclib_f\x64\Debug\heclib_f.lib
cd ..
7z a -tzip heclib.zip debug64
cd %~dp0