SkShaper: enable for unit and render tests
New tests that use skshaper should hide behind SK_USING_SKSHAPER define.
Change-Id: Ifcd726d931e3eb1ff209085a63e8129c9cd5596d
Reviewed-on: https://skia-review.googlesource.com/c/192026
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 9372a9b..b194f2f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1565,6 +1565,10 @@
public_deps = [
":gpu_tool_utils",
]
+ if (skia_enable_skshaper) {
+ deps += [ "modules/skshaper" ]
+ defines = [ "SK_USING_SKSHAPER" ]
+ }
}
import("gn/tests.gni")
@@ -1590,6 +1594,10 @@
public_deps = [
":gpu_tool_utils", # Test.h #includes headers from this target.
]
+ if (skia_enable_skshaper) {
+ deps += [ "modules/skshaper" ]
+ defines = [ "SK_USING_SKSHAPER" ]
+ }
}
import("gn/bench.gni")