skiabuild/libavalonia.skia
James Walmsley faaed646a2 [LIB] Added some quick build instructions. 2022-05-03 19:36:13 +01:00
..
CMakeLists.txt [LIB] Added some quick build instructions. 2022-05-03 19:36:13 +01:00
README.md [LIB] Added some quick build instructions. 2022-05-03 19:36:13 +01:00
avalonia.skia.cpp [AVALONIA] Renamed testlib to avalonia.skia - Start the main library here. 2022-04-04 18:21:40 +00:00
libavalonia.skia.version [AVALONIA] Added symbol versions and build variants. 2022-04-04 22:18:51 +00:00
meson.build [AVALONIA] Added symbol versions and build variants. 2022-04-04 22:18:51 +00:00
testprog.c [LIB] Renamed test project to libavalonia.skia 2022-04-04 17:56:23 +01:00

README.md

Build

Download the latest pre-built libskia from: https://github.com/AvaloniaUI/skiabuild/releases

(Choose avalonia.skia-v0.3.0-linux-x86_64-linux-gnu-sysroot.tar.gz)

Copy this to:

mkdir -p libavalonia.skia/pre-built/
cp ~/Downloads/avalonia.skia-v0.3.0-linux-x86_64-linux-gnu-sysroot.tar.gz libavalonia.skia/pre-built/
cd libavalonia.skia/pre-built
tar xvf ./avalonia.skia-v0.3.0-linux-x86_64-linux-gnu-sysroot.tar.gz

Then build as usual:

cd libavalonia.skia
mkdir build
cd build

cmake -GNinja ..
ninja

This currently creates a test-program:

./avalonia.skia.testprog

ls -la

-rw-r--r-- 1 james james    10929 May  3 19:28 skia-c-example.png  

md5sum ./skia-c-example.png
8cb81a6c6ad6af7e01b274b879ca012c  ./skia-c-example.png