-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildStochFit.bat
58 lines (39 loc) · 2.17 KB
/
buildStochFit.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
:: This script file builds all of the versions of STochFit. It requires the
:: Intel compiler, Microsoft Visual Studio, and the Intel MKL.
:: You will have to change the paths below if you have a different version.
SET MKLVER=10.0.2.019
SET UtilPath=%~dp0
SET MKLPath=%ProgramFiles%\Intel\MKL\%MKLVER%\tools\builder
SET VSPath=%ProgramFiles%\Microsoft Visual Studio 8\vc\bin
::Set the MSVC environmental variables
if "%MSVCDir%" == "" call "%VSPath%\vcvars32.bat"
::Make directories if they don't already exist
mkdir "%UtilPath%bin\Release"
mkdir "%UtilPath%bin\Debug"
mkdir "%UtilPath%bin\GIXOS"
::Make our custom MKL dll so we don't have to include the full library
copy "%UtilPath%bin\dlls\Myfuncs.txt" "%MKLPath%"
cd "%MKLPath%"
nmake ia32 export=Myfuncs.txt name=levmarmkl"
copy levmarmkl.dll "%UtilPath%bin\dlls"
copy levmarmkl.lib "%UtilPath%bin\dlls"
::Copy the dlls we need to the program directories
copy "%UtilPath%StochFit\StochFit\genf.ico" "%UtilPath%bin\Release"
copy "%UtilPath%bin\dlls\levmarmkl.dll" "%UtilPath%bin\Release"
copy "%UtilPath%bin\dlls\libguide40.dll" "%UtilPath%bin\Release"
copy "%UtilPath%bin\dlls\libmmd.dll" "%UtilPath%bin\Release"
copy "%UtilPath%bin\dlls\Model Independent Fitting Tutorial.pdf" "%UtilPath%bin\Release"
copy "%UtilPath%StochFit\StochFit\genf.ico" "%UtilPath%bin\GIXOS"
copy "%UtilPath%bin\dlls\levmarmkl.dll" "%UtilPath%bin\GIXOS"
copy "%UtilPath%bin\dlls\libguide40.dll" "%UtilPath%bin\GIXOS"
copy "%UtilPath%bin\dlls\libmmd.dll" "%UtilPath%bin\GIXOS"
copy "%UtilPath%bin\dlls\Model Independent Fitting Tutorial.pdf" "%UtilPath%bin\GIXOS"
copy "%UtilPath%StochFit\StochFit\genf.ico" "%UtilPath%bin\Debug"
copy "%UtilPath%bin\dlls\levmarmkl.dll" "%UtilPath%bin\Debug"
copy "%UtilPath%bin\dlls\libguide40.dll" "%UtilPath%bin\Debug"
copy "%UtilPath%bin\dlls\libmmdd.dll" "%UtilPath%bin\Debug"
copy "%UtilPath%bin\dlls\Model Independent Fitting Tutorial.pdf" "%UtilPath%bin\Debug"
cd %UtilPath%
::Build the StochFit front end
::"%ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /rebuild Debug StochFit.sln
::"%ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /rebuild Release StochFit.sln