Trên GitHub, aseprite/skia đã đạt 274 sao, ngôn ngữ C++. Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Skia is a 2D graphic library developed by Google Inc., you can find
the official website in skia.org.
This fork is used to compile Skia automatically for
laf and
Aseprite using GitHub Actions.
Building Skia
In the following sections you will find straightforward steps to
compile Skia. You can always check the official Skia
instructions and select the OS you are
building for. Aseprite and
laf use the aseprite-m124 branch.
So remember to checkout that specific branch.
These are the platform-specific steps to compile Skia:
Skia on Windows
Skia on macOS
Skia on Linux
After this you should have all Skia libraries compiled. After that,
when you compile laf or Aseprite remember to add
-DSKIA_DIR=$HOME/deps/skia parameter to your cmake call and all
other parameters.
Skia on Windows
Download
Google depot tools
and uncompress it in some place like C:\deps\depot_tools.
It's recommended to compile Skia with Clang
to get better performance. So you will need to download Clang,
and install it on a folder like C:\deps\llvm (a folder without whitespaces).
The command above is required while attempting to compile the 64-bit version of skia. When compiling the 32-bit version, it is possible to open a developer command prompt instead.
Then:
set PATH=C:\deps\depot_tools;%PATH%
cd C:\deps\depot_tools
gclient sync
(The gclient command might print an error like
Error: client not configured; see 'gclient config'.
Just ignore it.)
cd C:\deps
git clone -b aseprite-m124 https://github.com/aseprite/skia.git
cd skia
set GIT_EXECUTABLE=git.bat
python3 tools/git-sync-deps
python3 bin/fetch-ninja
(The tools/git-sync-deps will take some minutes because it downloads
a lot of packages, please wait and re-run the same command in case it
fails.)
Finally, if you've downloaded Clang, use this command:
If you haven't installed Clang, and want to compile Skia with MSVC
(anyway it's not recommended because the performance penalty is too
big), you can use the following commands instead:
These steps will create a deps folder in your home directory with a
couple of subdirectories needed to build Skia (you can change the
$HOME/deps with other directory). Some of these commands will take
several minutes to finish:
These steps will create a deps folder in your home directory with a
couple of subdirectories needed to build Skia (you can change the
$HOME/deps with other directory). Some of these commands will take
several minutes to finish:
is_trivial_abi: As we are mixing MSVC/Clang, the Windows
compilation needs the is_trivial_abi=false option as indicated
here,
in other case we can get an infinite loop SkOnce::operator()
-MT: We are creating a static-linked version of Skia library,
that's why we have the extra_cflags=["-MTd"] option, so we don't
need to distribute the MSVC C++ runtime DLLs.
-frtti: On macOS we've detected a strange bug
where linking object files compiled with -frtti and -fno-rtti
(the default Skia option) breaks the normal function of
std::exception hierarchy. That's why we're compiling with run-time
type information extra_cflags_cc=["-frtti"].
Có — aseprite/skia phát hành theo license BSD-3-Clause, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/aseprite/skia.
aseprite/skia là gì?
aseprite/skia (aseprite/skia) là dự án C++ trên GitHub. Theo mô tả gốc: Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
Đọc thêm về aseprite/skia ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/aseprite/skia là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về skia?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về skia.