Files
DisplayFlow/scripts/setup_dependencies.sh
huanglinhuan 91ae52eeb3 暂存文件
2025-12-12 21:54:52 +08:00

27 lines
591 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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!"