-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstructions.txt
More file actions
32 lines (22 loc) · 1.65 KB
/
instructions.txt
File metadata and controls
32 lines (22 loc) · 1.65 KB
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
- Install
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
git pull
./vcpkg update
./vcpkg install grpc:x64-windows
./vcpkg install protobuf:x64-windows
./vcpkg install boost:x64-windows
./vcpkg install openssl:x64-windows
- Compile proto files
- & "R:\C++\Projects\load-balancer\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe" -I . --cpp_out=proto proto/load_balancer.proto
- & "R:\C++\Projects\load-balancer\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe" -I . --cpp_out=proto proto/admin_service.proto
- & "R:\C++\Projects\load-balancer\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe" --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc="R:\C++\Projects\load-balancer\vcpkg\installed\x64-windows\tools\grpc\grpc_cpp_plugin.exe" proto/load_balancer.proto
- & "R:\C++\Projects\load-balancer\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe" --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc="R:\C++\Projects\load-balancer\vcpkg\installed\x64-windows\tools\grpc\grpc_cpp_plugin.exe" proto/admin_service.proto
- Javascript protoc
- & "R:\C++\Projects\load-balancer\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe" -I=. proto/admin_service.proto --js_out=import_style=commonjs,binary:./generated --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./generated
- Build
- rmdir build && cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="R:/C++/Projects/load-balancer/vcpkg/scripts/buildsystems/vcpkg.cmake"
- cmake --build build --config Release
- Run
./load_balancer --backend-path ./backend_server --port 50050 --min-servers 3 --max-servers 6 --start-port 51000