Files
DisplayFlow/scripts/setup_dependencies.sh

27 lines
591 B
Bash
Raw Permalink Normal View History

2025-12-12 21:54:52 +08:00
#!/bin/bash
# 依赖安装脚本Linux/macOS
set -e
echo "Setting up DisplayFlow dependencies..."
# 检查 CMake 版本
CMAKE_VERSION=$(cmake --version | head -n1 | cut -d' ' -f3)
echo "CMake version: $CMAKE_VERSION"
# 检查是否使用 vcpkg
if [ -d "vcpkg" ]; then
echo "Using vcpkg for dependency management"
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install flatbuffers
echo "Dependencies installed via vcpkg"
else
echo "Dependencies will be fetched via CMake FetchContent"
echo "No manual installation required"
fi
echo "Dependency setup complete!"