| Index: BUILD.gn
|
| diff --git a/BUILD.gn b/BUILD.gn
|
| index 91c2b43ecedea5f87bb75572ae06d60c302d941f..0d15f3169c54d6730fe2750a30d2ca6411a37690 100644
|
| --- a/BUILD.gn
|
| +++ b/BUILD.gn
|
| @@ -65,6 +65,9 @@ config("skia_private") {
|
| "SK_HAS_PNG_LIBRARY",
|
| "SK_HAS_WEBP_LIBRARY",
|
|
|
| + # TODO(halcanary): make this the default; this is the value Android uses.
|
| + "SK_SFNTLY_SUBSETTER=\"sample/chromium/font_subsetter.h\"",
|
| +
|
| "TURBO_HAS_565",
|
| "TURBO_HAS_CROP",
|
| "TURBO_HAS_SKIP",
|
| @@ -171,6 +174,7 @@ component("skia") {
|
| "//third_party/libjpeg_turbo",
|
| "//third_party/libpng",
|
| "//third_party/libwebp",
|
| + "//third_party/sfntly",
|
| "//third_party/zlib",
|
| ]
|
|
|
| @@ -364,8 +368,8 @@ test_lib("gpu_tool_utils") {
|
|
|
| if (is_linux) {
|
| sources += [
|
| - "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
|
| - "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp",
|
| + "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
|
| + "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp",
|
| ]
|
| libs += [
|
| "GL",
|
| @@ -374,8 +378,8 @@ test_lib("gpu_tool_utils") {
|
| ]
|
| } else if (is_mac) {
|
| sources += [
|
| - "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
|
| - "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp",
|
| + "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
|
| + "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp",
|
| ]
|
| libs += [ "OpenGL.framework" ]
|
| }
|
| @@ -458,8 +462,8 @@ test_lib("tests") {
|
| rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only
|
| rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
|
| rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete
|
| - rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
|
| - rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work
|
| + rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
|
| + rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work
|
| rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
|
| rebase_path("tests/skia_test.cpp"), # alternate main
|
| ]
|
| @@ -544,4 +548,16 @@ if (!is_component_build) { # Our test tools use many non-SK_API APIs...
|
| ]
|
| testonly = true
|
| }
|
| +
|
| + executable("sktexttopdf") {
|
| + sources = [
|
| + "tools/SkShaper_harfbuzz.cpp",
|
| + "tools/using_skia_and_harfbuzz.cpp",
|
| + ]
|
| + deps = [
|
| + ":skia",
|
| + "//third_party/harfbuzz",
|
| + ]
|
| + testonly = true
|
| + }
|
| }
|
|
|