Make sure the following have been installed:
See the instructions here.
We use the open-source gyp tool to generate XCode projects (and analogous build scripts on other platforms) from our multiplatform "gyp" files.
Before building, make sure that gyp knows to create an XCode project or ninja build files. If you leave GYP_GENERATORS undefined it will assume the following default:
GYP_GENERATORS="ninja,xcode"
Or you can set it to ninja
or xcode
alone, if you like.
You can then generate the Xcode projects and ninja build files by running:
./gyp_skia
ninja -C out/Debug dm out/Debug/dm
The usual mode you want for testing is Debug mode (SK_DEBUG is defined, and debug symbols are included in the binary). If you would like to build the Release version instead:
ninja -C out/Release dm out/Release/dm
In this case, we will build with the "Release" configuration, since we are running performance tests.
ninja -C out/Release nanobench out/Release/nanobench [ --skps path/to/*.skp ]