2024-03-14 15:52:27 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-04-19 05:01:11 -07:00
|
|
|
function ban2()
|
|
|
|
{
|
|
|
|
echo "==========================================="
|
|
|
|
echo "${1}"
|
|
|
|
echo "==========================================="
|
|
|
|
}
|
|
|
|
|
2024-03-14 15:52:27 -07:00
|
|
|
export PATH="$PATH:$(pwd)/depot_tools"
|
|
|
|
pushd skia
|
|
|
|
|
2024-04-19 05:01:11 -07:00
|
|
|
ban2 "Building Skia"
|
2024-03-14 18:47:56 -07:00
|
|
|
git clean -xfd
|
|
|
|
git reset --hard
|
2024-04-19 05:01:11 -07:00
|
|
|
git pull
|
2024-03-14 18:47:56 -07:00
|
|
|
|
2024-03-14 15:52:27 -07:00
|
|
|
python tools/git-sync-deps
|
2024-03-14 17:06:02 -07:00
|
|
|
gn gen out/Release-x64 --args="is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false"
|
|
|
|
ninja -C out/Release-x64 skia modules
|
2024-03-14 15:52:27 -07:00
|
|
|
|
|
|
|
popd
|
2024-03-14 17:06:02 -07:00
|
|
|
|
|
|
|
|
|
|
|
pushd aseprite
|
|
|
|
|
2024-03-14 18:47:56 -07:00
|
|
|
git clean -xfd
|
|
|
|
git reset --hard
|
2024-04-19 05:01:11 -07:00
|
|
|
git pull
|
2024-03-14 18:47:56 -07:00
|
|
|
|
|
|
|
rm -rf build
|
2024-03-14 17:06:02 -07:00
|
|
|
mkdir build
|
|
|
|
pushd build
|
|
|
|
|
2024-04-19 05:01:11 -07:00
|
|
|
ban2 "Building Aseprite"
|
2024-03-14 17:06:02 -07:00
|
|
|
cmake -G Ninja -DLAF_BACKEND=skia -DSKIA_DIR=../../skia -DSKIA_LIBRARY_DIR=../../skia/out/Release-x64 -DSKIA_LIBRARY=../../skia/out/Release-x64/libskia.a ..
|
|
|
|
ninja aseprite
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|