#!/bin/bash function ban2() { echo "===========================================" echo "${1}" echo "===========================================" } export PATH="$PATH:$(pwd)/depot_tools" pushd skia ban2 "Building Skia" git clean -xfd git reset --hard git pull python tools/git-sync-deps 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 popd pushd aseprite git clean -xfd git reset --hard git pull rm -rf build mkdir build pushd build ban2 "Building Aseprite" 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