summaryrefslogtreecommitdiffstats
path: root/python/conda/libastra/bld.bat
blob: eafadac82d3a52b866b0f8c784a223482bcfeab6 (plain)
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
@echo off

set R=%SRC_DIR%

set B_VC=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\
rem call "%B_VC%\vcvars64.bat"

set B_BV=1_69
set B_BOOST=E:\wjp\boost_%B_BV%_0

cd /D "%B_BOOST%\lib64-msvc-14.0"

mkdir "%R%\lib\x64"
mkdir "%R%\bin\x64\Release_CUDA"

copy boost_unit_test_framework-vc140-mt-x64-%B_BV%.lib "%R%\lib\x64"
copy libboost_chrono-vc140-mt-x64-%B_BV%.lib "%R%\lib\x64"
copy libboost_date_time-vc140-mt-x64-%B_BV%.lib "%R%\lib\x64"
copy libboost_system-vc140-mt-x64-%B_BV%.lib "%R%\lib\x64"
copy libboost_thread-vc140-mt-x64-%B_BV%.lib "%R%\lib\x64"

cd %B_BOOST%

xcopy /i /e /q /y boost "%R%\lib\include\boost"

cd /D %R%

msbuild astra_vc14.sln /p:Configuration=Release_CUDA /p:Platform=x64 /t:astra_vc14

copy bin\x64\Release_CUDA\AstraCuda64.dll "%LIBRARY_BIN%"
copy bin\x64\Release_CUDA\AstraCuda64.lib "%LIBRARY_LIB%"
copy "%CUDA_PATH%\bin\cudart64_90.dll" "%LIBRARY_BIN%"
copy "%CUDA_PATH%\bin\cufft64_90.dll" "%LIBRARY_BIN%"