Last active
March 14, 2021 13:58
-
-
Save AnthonyDS/fe526549ed55104af9200ca29aae0267 to your computer and use it in GitHub Desktop.
Установка библиотеки Skia для 2D графики
This file contains 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
# Создаём директорию под библиотеку 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 | |
tools/install_dependencies.sh | |
# Собираем библиотеку | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment