-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_modular_build.sh
More file actions
executable file
·35 lines (27 loc) · 1 KB
/
test_modular_build.sh
File metadata and controls
executable file
·35 lines (27 loc) · 1 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
#!/bin/bash
# Test script for building messaging_system with modular dependencies
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BUILD_DIR="$SCRIPT_DIR/build_modular_test"
# Clean previous build
rm -rf "$BUILD_DIR"
mkdir -p "$BUILD_DIR"
# Source setup script
source "$SCRIPT_DIR/setup_external_deps.sh"
# Configure with external modular dependencies
cd "$BUILD_DIR"
echo "Configuring messaging_system with external modular dependencies..."
cmake .. \
-DUSE_INTERNAL_THREAD_SYSTEM=OFF \
-DUSE_EXTERNAL_LOGGER_SYSTEM=ON \
-DUSE_EXTERNAL_MONITORING_SYSTEM=ON \
-DThreadSystemCore_ROOT="$THREAD_SYSTEM_ROOT/core/build/install" \
-DLoggerSystem_ROOT="$LOGGER_SYSTEM_ROOT/build/install" \
-DMonitoringSystem_ROOT="$MONITORING_SYSTEM_ROOT/build/install" \
-DBUILD_MESSAGING_SAMPLES=OFF \
-DUSE_UNIT_TEST=OFF
# Build
echo "Building..."
make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 2)
echo "Build completed successfully!"
echo "Build directory: $BUILD_DIR"