Files
third_party_libtiff/install.sh
T
wxc d3cff9dd09 add build.gn
Signed-off-by: wxc <wangxiaocai@huawei.com>
2025-12-04 11:28:45 +08:00

21 lines
303 B
Bash
Executable File

#!/bin/bash
SRC_DIR="$1"
CODE_DIR="$2"
set -e
if [ "$SRC_DIR" == "" ] || [ "$CODE_DIR" == "" ]; then
exit 1
fi
mkdir -p $CODE_DIR
cp -r $SRC_DIR/* $CODE_DIR
rm -rf $CODE_DIR/.git
CURRENT_DIR=$(pwd)
cd $CODE_DIR
sh ./autogen.sh
sh ./configure
cmake . -DCMAKE_BUILD_TYPE=Release
cd "$CURRENT_DIR"