Last active
March 25, 2021 04:37
-
-
Save yonderbread/fa8ccca8b61aadc9b19c67d624636b47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Store initial working directory path | |
export START_PATH=$PWD | |
# Get dependencies | |
sudo apt-get install -y git g++ cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev | |
# Build skia | |
mkdir $HOME/deps | |
cd $HOME/deps | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
git clone -b aseprite-m81 https://github.com/aseprite/skia.git | |
export PATH="${PWD}/depot_tools:${PATH}" | |
cd skia | |
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" | |
ninja -C out/Release-x64 skia modules | |
# Build aseprite | |
cd $START_PATH && git clone --recursive https://github.com/aseprite/aseprite | |
cd aseprite && mkdir build && cd build && cmake \ | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
-DLAF_BACKEND=skia \ | |
-DSKIA_DIR=$HOME/deps/skia \ | |
-DSKIA_LIBRARY_DIR=$HOME/deps/skia/out/Release-x64 \ | |
-DSKIA_LIBRARY=$HOME/deps/skia/out/Release-x64/libskia.a \ | |
-G Ninja \ | |
.. && ninja aseprite | |
echo "Compilation finished. Aseprite binary and resources are in `bin` directory" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment