I am on the
chrome/m135 branch and I’m currently trying to build the skia
libwindow.a support library found in
skia/tools/window and I can’t seem to figure out the right configuration options to `gn` to make it build. I have to set
skia_enable_tools to and
skia_enable_ganesh to
true to get it to attempt to build it, but it fails to compile several files. I’ve tried various combinations of
skia_enable_graphite,
skia_use_dawn and
skia_use_gl but it is very unhappy. I'm doing this on MacOS.
Is there a magical combination of build configs I haven't figured yet, or is the library broken? Any help appreciated.
An example compilation error is...
[910/951] compile ../../../src/skia/tools/gpu/BackendSurfaceFactory.cpp
FAILED: obj/tools/gpu/gpu_tool_utils.BackendSurfaceFactory.o
clang++ -MD -MF obj/tools/gpu/gpu_tool_utils.BackendSurfaceFactory.o.d -DSK_ENABLE_DISCRETE_GPU -DNDEBUG -DSK_USE_INTERNAL_VULKAN_HEADERS -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_AVX512_OPTS -DSK_TYPEFACE_FACTORY_CORETEXT -DSK_FONTMGR_CORETEXT_AVAILABLE -DSK_GL -DSK_METAL -DSK_DAWN -DSK_CODEC_ENCODES_JPEG -DSK_CODEC_ENCODES_PNG -DSK_CODEC_ENCODES_PNG_WITH_LIBPNG -DSK_CODEC_DECODES_JPEG -DSK_CODEC_DECODES_ICO -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_PNG_WITH_LIBPNG -DSK_HAS_WUFFS_LIBRARY -DSK_CODEC_DECODES_GIF -DSK_XML -DSK_CODEC_DECODES_BMP -DSK_CODEC_DECODES_WBMP -DSK_ENABLE_PRECOMPILE -DSK_ASSUME_GL=1 -DSK_GANESH -DSK_GRAPHITE -DSK_DISABLE_TRACING -DSK_USE_PERFETTO -DSK_ENABLE_API_AVAILABLE -I../../../src/skia/include/third_party/vulkan -Igen/third_party/externals/dawn/include -I../../../src/skia/third_party/externals/dawn/include -I../../../src/skia -Wno-attributes -ffp-contract=off -fPIC -fvisibility=hidden -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -target x86_64-apple-macos10.15 -fstrict-aliasing -O3 -mmacosx-version-min=10.15 -Wno-microsoft-cast -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -c ../../../src/skia/tools/gpu/BackendSurfaceFactory.cpp -o obj/tools/gpu/gpu_tool_utils.BackendSurfaceFactory.o
../../../src/skia/tools/gpu/BackendSurfaceFactory.cpp:89:44: error: no member named 'createTestingOnlyBackendRenderTarget' in 'GrGpu'
89 | auto bert = dContext->priv().getGpu()->createTestingOnlyBackendRenderTarget(
| ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../../../src/skia/tools/gpu/BackendSurfaceFactory.cpp:97:18: error: no member named 'deleteTestingOnlyBackendRenderTarget' in 'GrGpu'
97 | gpu->deleteTestingOnlyBackendRenderTarget(rc->fRenderTarget);
| ~~~ ^
2 errors generated.