Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b6f5378

Browse files
HalCanarySkia Commit-Bot
authored andcommitted
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 <[email protected]> Commit-Queue: Hal Canary <[email protected]>
1 parent ff1c492 commit b6f5378

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

BUILD.gn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,10 @@ if (skia_enable_tools) {
15651565
public_deps = [
15661566
":gpu_tool_utils",
15671567
]
1568+
if (skia_enable_skshaper) {
1569+
deps += [ "modules/skshaper" ]
1570+
defines = [ "SK_USING_SKSHAPER" ]
1571+
}
15681572
}
15691573

15701574
import("gn/tests.gni")
@@ -1590,6 +1594,10 @@ if (skia_enable_tools) {
15901594
public_deps = [
15911595
":gpu_tool_utils", # Test.h #includes headers from this target.
15921596
]
1597+
if (skia_enable_skshaper) {
1598+
deps += [ "modules/skshaper" ]
1599+
defines = [ "SK_USING_SKSHAPER" ]
1600+
}
15931601
}
15941602

15951603
import("gn/bench.gni")

gn/skia.gni

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
declare_args() {
66
skia_use_icu = !is_fuchsia && !is_ios
7+
skia_enable_skshaper = true
78
}

modules/skshaper/BUILD.gn

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
declare_args() {
7-
skia_enable_skshaper = true
8-
}
9-
106
import("../../gn/skia.gni")
117

128
config("public_config") {

0 commit comments

Comments
 (0)