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

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

Quan (Andy) Gan's avatar
Quan (Andy) Gan committed
9
10
11
12
13
SET _MSPDBSRV_ENDPOINT_=%BUILD_TAG%
SET TMP=%WORKSPACE%\\tmp
SET TEMP=%WORKSPACE%\\tmp
SET TMPDIR=%WORKSPACE%\\tmp

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

PUSHD python
DEL /S /Q build *.egg-info dist
24
pip install -e . || EXIT /B 1
25
26
27
28
POPD

ENDLOCAL
EXIT /B