29 lines
506 B
Bash
Executable File
29 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
# Build script for gstreamerViewer
|
|
|
|
set -e # Exit on error
|
|
|
|
echo "=== Building gstreamerViewer ==="
|
|
|
|
# Create build directory if it doesn't exist
|
|
if [ ! -d "build" ]; then
|
|
echo "Creating build directory..."
|
|
mkdir -p build
|
|
fi
|
|
|
|
cd build
|
|
|
|
echo "Running CMake..."
|
|
cmake ..
|
|
|
|
echo "Building with make..."
|
|
make -j$(nproc)
|
|
|
|
echo ""
|
|
echo "=== Build successful! ==="
|
|
echo "Executable: $(pwd)/gstreamerViewer"
|
|
echo ""
|
|
echo "To run the application:"
|
|
echo " cd build && ./gstreamerViewer"
|
|
echo ""
|