forked from JetBrains/Rkernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_rwrapper.bat
More file actions
21 lines (14 loc) · 823 Bytes
/
build_rwrapper.bat
File metadata and controls
21 lines (14 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set R_HOME=C:\intellij\rplugin\rwrapper\R-4.1.0
set R_INCLUDE=C:\intellij\rplugin\rwrapper\R-4.1.0\include
set PATH=C:\intellij\rplugin\rwrapper\R-4.1.0\bin;C:\intellij\rplugin\rwrapper\R-4.1.0\bin\x64;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd.bat" -arch=amd64
cd rwrapper
call clone_dependency.bat
mkdir gens\protos
XCOPY ..\protos\* Rkernel-proto /s /i
call Rscript.exe dll2lib.R
rmdir /S /Q build
mkdir build
cd build
..\cmake-distro\bin\cmake.exe .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM="C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -G Ninja
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe"