-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.bat
59 lines (46 loc) · 1.68 KB
/
build.bat
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
REM rmdir /S /Q build64
rem
rem cd src\mpc-vm-service\slice
rem call build.bat
rem cd ..\..\..\
rem
rem cd src\mpc-vm-service\proto
rem call build.bat
rem cd ..\..\..\
rem
rem
rem echo "building x64 ..."
rem mkdir build64
rem cd build64
rem cmake .. -G"Visual Studio 15 2017 Win64" -DOPENSSL_ROOT_DIR=D:/PATH/openssl -DBOOST_INCLUDEDIR=D:/PATH/boost/include
rem cd ..
rem
rem
rem echo "building Win32 ..."
rem mkdir build32
rem cd build32
rem cmake .. -DOPENSSL_ROOT_DIR=D:/PATH/openssl
rem cd ..
rem
rem 64 bit
mkdir build
cd build
cmake .. -G"Visual Studio 15 2017 Win64" -DOPENSSL_ROOT_DIR=D:/PATH/openssl64 -DBOOST_INCLUDEDIR=D:/PATH/boost/include -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=target -DPROJECT_NAME=platon-mpc-vm
cd ..
mkdir build_without-platon
cd build_without-platon
cmake .. -G"Visual Studio 15 2017 Win64" -DOPENSSL_ROOT_DIR=D:/PATH/openssl64 -DBOOST_INCLUDEDIR=D:/PATH/boost/include -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=target -DRUN_WITHOUT_PLATON=1 -DPROJECT_NAME=platon-mpc-vm-without
cd ..
::exit
mkdir build_relic
cd build_relic
cmake .. -G"Visual Studio 15 2017 Win64" -DOPENSSL_ROOT_DIR=D:/PATH/openssl64 -DBOOST_INCLUDEDIR=D:/PATH/boost/include -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=target -DOT_NP_USE_RELIC_WIN=1 -DPROJECT_NAME=platon-mpc-vm-relic
cd ..
mkdir build_relic_without-platon
cd build_relic_without-platon
cmake .. -G"Visual Studio 15 2017 Win64" -DOPENSSL_ROOT_DIR=D:/PATH/openssl64 -DBOOST_INCLUDEDIR=D:/PATH/boost/include -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=target -DOT_NP_USE_RELIC_WIN=1 -DRUN_WITHOUT_PLATON=1 -DPROJECT_NAME=platon-mpc-vm-relic-without
cd ..
rem 32 bit
rem pause 5 seconds
ping 127.0.0.1 -n 5 > nul