How do I compile skia HelloWorld program?
I went through this guide - it doesn't mention how to build example/HelloWorld
The version I have checked out is:
c7b263b603107acdb16b6570989e1ce5a2c7eb4e
I see mentions of it inside the .gn
files but I am not sure how to invoke that specific item.
The HelloWorld program will be build as part of the normal Skia build process (Reference) for debug builds.
In the Skia source directory:
Sync the third-party dependencies with python2 tools/git-sync-deps
Generate the build files with bin/gn gen out/Debug
.
python
and python-config
to /usr/bin/python2
and /usr/bin/python2-config
, then prepending this temporary directory to the $PATH
).Start the build process with ninja -C out/Debug
. This will build all targets including HelloWorld
.
HelloWorld
(and its dependencies), you could directly invoke ninja -C out/Debug HelloWorld
.The resulting binary is in out/Debug/HelloWorld
.