-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_examples.sh
More file actions
54 lines (45 loc) · 1.38 KB
/
build_examples.sh
File metadata and controls
54 lines (45 loc) · 1.38 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Build examples for all Rocket Welder SDK libraries
set -e
echo "========================================="
echo "Building Rocket Welder SDK Examples"
echo "========================================="
# Get the directory of this script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# First ensure libraries are built
echo ""
echo "Ensuring libraries are built first..."
"$SCRIPT_DIR/build.sh"
# Build C++ examples
echo ""
echo "Building C++ examples..."
echo "-----------------------------------------"
cd "$SCRIPT_DIR/cpp"
./build_examples.sh
# Build C# examples
echo ""
echo "Building C# examples..."
echo "-----------------------------------------"
cd "$SCRIPT_DIR/csharp"
./build_examples.sh
# Build Python examples
echo ""
echo "Building Python examples..."
echo "-----------------------------------------"
cd "$SCRIPT_DIR/python"
./build_examples.sh
echo ""
echo "========================================="
echo "Examples built successfully!"
echo "========================================="
echo ""
echo "Examples location:"
echo " - C++: cpp/build/examples/"
echo " - C#: csharp/examples/SimpleClient/bin/"
echo " - Python: python/examples/"
echo ""
echo "To run examples:"
echo " C++: cpp/build/examples/simple_client"
echo " C#: dotnet run --project csharp/examples/SimpleClient"
echo " Python: python python/examples/simple_client.py"
echo ""