"vscode:/vscode.git/clone" did not exist on "66eb240d15d62a3153bd14941057fe6f7ff893ba"
build_dgl.bat 816 Bytes
Newer Older
1
2
3
@ECHO OFF
SETLOCAL EnableDelayedExpansion

4
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
5
CALL mkvirtualenv --system-site-packages %BUILD_TAG%
6
7
8
9
DEL /S /Q build
DEL /S /Q _download
MD build

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

15
PUSHD build
16
cmake -DCMAKE_CXX_FLAGS="/DDGL_EXPORTS" -DUSE_AVX=ON -DUSE_OPENMP=ON -DBUILD_TORCH=ON -Dgtest_force_shared_crt=ON -DDMLC_FORCE_SHARED_CRT=ON -DBUILD_CPP_TEST=1 -DCMAKE_CONFIGURATION_TYPES="Release" .. -G "Visual Studio 16 2019" || EXIT /B 1
17
msbuild dgl.sln /m /nr:false || EXIT /B 1
18
COPY /Y Release\runUnitTests.exe .
19
20
POPD

21
22
CALL workon %BUILD_TAG%

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

ENDLOCAL
EXIT /B