third_party: build scripts for libyuv and maplibre-native-qt (#31988)
	
		
	
				
					
				
			* updated maplibre build.sh * refactored libyuv build.shpull/214/head
							parent
							
								
									86acfbb4f2
								
							
						
					
					
						commit
						245cbe97c7
					
				
				 4 changed files with 37 additions and 10 deletions
			
			
		@ -0,0 +1 @@ | 
				
			||||
libyuv/ | 
				
			||||
@ -1,12 +1,39 @@ | 
				
			||||
#!/usr/bin/env bash | 
				
			||||
set -e | 
				
			||||
 | 
				
			||||
git clone https://chromium.googlesource.com/libyuv/libyuv | 
				
			||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" | 
				
			||||
 | 
				
			||||
ARCHNAME=$(uname -m) | 
				
			||||
if [ -f /TICI ]; then | 
				
			||||
  ARCHNAME="larch64" | 
				
			||||
fi | 
				
			||||
 | 
				
			||||
if [[ "$OSTYPE" == "darwin"* ]]; then | 
				
			||||
  ARCHNAME="Darwin" | 
				
			||||
fi | 
				
			||||
 | 
				
			||||
cd $DIR | 
				
			||||
if [ ! -d libyuv ]; then | 
				
			||||
  git clone --single-branch https://chromium.googlesource.com/libyuv/libyuv | 
				
			||||
fi | 
				
			||||
 | 
				
			||||
cd libyuv | 
				
			||||
git reset --hard 4a14cb2e81235ecd656e799aecaaf139db8ce4a2 | 
				
			||||
git checkout 4a14cb2e81235ecd656e799aecaaf139db8ce4a2 | 
				
			||||
 | 
				
			||||
# build | 
				
			||||
cmake . | 
				
			||||
make -j$(nproc) | 
				
			||||
 | 
				
			||||
INSTALL_DIR="$DIR/$ARCHNAME" | 
				
			||||
rm -rf $INSTALL_DIR | 
				
			||||
mkdir -p $INSTALL_DIR | 
				
			||||
 | 
				
			||||
rm -rf $DIR/include | 
				
			||||
mkdir -p $INSTALL_DIR/lib | 
				
			||||
cp $DIR/libyuv/libyuv.a $INSTALL_DIR/lib | 
				
			||||
cp -r $DIR/libyuv/include $DIR | 
				
			||||
 | 
				
			||||
## To create universal binary on Darwin: | 
				
			||||
## ``` | 
				
			||||
## lipo -create -output Darwin/libyuv.a path-to-x64/libyuv.a path-to-arm64/libyuv.a | 
				
			||||
## ``` | 
				
			||||
## ``` | 
				
			||||
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue