build_dgl.bat 634 Bytes
Newer Older
1
2
3
@ECHO OFF
SETLOCAL EnableDelayedExpansion

4
CALL mkvirtualenv --system-site-packages %BUILD_TAG%
5
6
7
8
9
10
DEL /S /Q build
DEL /S /Q _download
MD build

PUSHD build
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
11
cmake -DCMAKE_CXX_FLAGS="/DDGL_EXPORTS" -DUSE_OPENMP=ON -Dgtest_force_shared_crt=ON -DBUILD_CPP_TEST=1 -DCMAKE_CONFIGURATION_TYPES="Release" .. -G "Visual Studio 15 2017 Win64" || EXIT /B 1
12
13
msbuild dgl.sln || EXIT /B 1
COPY Release\dgl.dll .
VoVAllen's avatar
VoVAllen committed
14
COPY Release\runUnitTests.exe .
15
16
17
18
POPD

PUSHD python
DEL /S /Q build *.egg-info dist
19
pip install -e . || EXIT /B 1
20
21
22
23
POPD

ENDLOCAL
EXIT /B