mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-04-06 18:04:00 +08:00
use vendored libyuv from dependencies (#37512)
* vendor libyuv from dependencies * relock libyuv to latest vendor branch * install cmake in macOS setup when missing * lock * unused? * rm that * no yuv for the larch
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "common/util.h"
|
||||
#include "third_party/libyuv/include/libyuv.h"
|
||||
#include "libyuv.h"
|
||||
#include "tools/replay/py_downloader.h"
|
||||
#include "tools/replay/util.h"
|
||||
#include "system/hardware/hw.h"
|
||||
|
||||
@@ -113,12 +113,24 @@ function install_python_deps() {
|
||||
source .venv/bin/activate
|
||||
}
|
||||
|
||||
function install_macos_deps() {
|
||||
if ! command -v brew > /dev/null 2>&1; then
|
||||
echo "homebrew not found, skipping macOS system dependency install"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if ! command -v cmake > /dev/null 2>&1; then
|
||||
brew install cmake
|
||||
fi
|
||||
}
|
||||
|
||||
# --- Main ---
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
install_ubuntu_deps
|
||||
echo "[ ] installed system dependencies t=$SECONDS"
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
install_macos_deps
|
||||
if [[ $SHELL == "/bin/zsh" ]]; then
|
||||
RC_FILE="$HOME/.zshrc"
|
||||
elif [[ $SHELL == "/bin/bash" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user