Skip to content

Commit e49cf78

Browse files
committed
grpc shared library seems to wrok
1 parent ffe38dc commit e49cf78

4 files changed

Lines changed: 44 additions & 6 deletions

File tree

example/143_ryzen_monitor/source01/setup01_configure.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ cmake -G Ninja \
77
-DBUILD_GMOCK=OFF \
88
-DBUILD_TESTS=OFF \
99
-DGLFW_BUILD_WAYLAND=OFF \
10-
-DDEP_DIR=/home/martin/src \
10+
-DDEP_DIR=/home/kiel/src \
1111
-DCMAKE_UNITY_BUILD=ON \
1212
-DCMAKE_UNITY_BUILD_MODE=GROUP \
13+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
1314
..

example/192_grpc_lib/plan/task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- [ ] Factory Export: `create_instance` export
2121
- [x] **Phase 6: The Client Application (Alpha)**
2222
- [x] Main Logic: Execution loop (direct link to implementation)
23-
- [/] **Phase 7: Verification & Optimization**
24-
- [/] Sanitizer Runs: Fix any detected issues
25-
- [ ] Release Build: Link-time and Graphite optimizations
26-
- [ ] Final Polish: Shell script to run the demo
23+
- [x] **Phase 7: Verification & Optimization**
24+
- [x] Sanitizer Runs: Fix any detected issues
25+
- [x] Release Build: Link-time and Graphite optimizations
26+
- [x] Final Polish: Shell script to run the demo

example/192_grpc_lib/run_demo.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
# Simple script to run the gRPC Plugin Demo
4+
5+
BUILD_DIR="build/debug-sanitized"
6+
BETA_SERVER="./$BUILD_DIR/src/beta/beta_server"
7+
ALPHA_REMOTE="./$BUILD_DIR/src/alpha/alpha_remote"
8+
ALPHA_LOCAL="./$BUILD_DIR/src/alpha/alpha_local"
9+
10+
echo "------------------------------------------------"
11+
echo "Starting Remote Demo (Alpha -> Libtwo -> Beta)"
12+
echo "------------------------------------------------"
13+
14+
# Start the server in the background
15+
$BETA_SERVER &
16+
SERVER_PID=$!
17+
18+
# Give the server a moment to start
19+
sleep 2
20+
21+
# Run the remote client
22+
$ALPHA_REMOTE
23+
24+
# Kill the server
25+
kill $SERVER_PID
26+
wait $SERVER_PID 2>/dev/null
27+
28+
echo ""
29+
echo "------------------------------------------------"
30+
echo "Starting Local Demo (Alpha -> Libone)"
31+
echo "------------------------------------------------"
32+
33+
# Run the local client
34+
$ALPHA_LOCAL
35+
36+
echo ""
37+
echo "Demo Complete."

example/192_grpc_lib/src/beta/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <iostream>
1+
u#include <iostream>
22
#include <memory>
33
#include <string>
44
#include <vector>

0 commit comments

Comments
 (0)