AFAICT, only gm/etc1 uses third_party/etc1
The need for -Ithird_party/gif has already been
rewritten away, and we can do the same for etc1.
Change-Id: I97408652682b5ec406647108056e7a1ea6a56c29
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/210131
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index bee44bc..320c0c5 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -136,11 +136,6 @@
config("skia_private") {
visibility = [ ":*" ]
- include_dirs = [
- "third_party/etc1",
- "third_party/gif",
- ]
-
defines = [ "SK_GAMMA_APPLY_TO_A8" ]
if (skia_use_fixed_gamma_text) {
defines += [
@@ -946,7 +941,6 @@
"src/sfnt/SkOTTable_name.cpp",
"src/sfnt/SkOTUtils.cpp",
"src/utils/mac/SkStream_mac.cpp",
- "third_party/etc1/etc1.cpp",
]
defines = []
@@ -1614,10 +1608,17 @@
]
}
+ test_lib("etc1") {
+ sources = [
+ "third_party/etc1/etc1.cpp",
+ ]
+ }
+
import("gn/gm.gni")
test_lib("gm") {
sources = gm_sources
deps = [
+ ":etc1",
":flags",
":skia",
":tool_utils",