| # Copyright 2019 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # TODO(crbug.com/41432508): this does not compile when blink is not enabled, |
| # where JPEGCodec (used by ImageProcessor) is not |
| # supported. We should use an alternative encoding |
| # scheme or support JPEGCodec in those cases. |
| import("//build/config/features.gni") |
| if (use_blink) { |
| static_library("core") { |
| sources = [ |
| "page_annotator.cc", |
| "page_annotator.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//services/image_annotation/public/cpp", |
| "//skia", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "page_annotator_unittest.cc" ] |
| |
| deps = [ |
| ":core", |
| "//base", |
| "//base/test:test_support", |
| "//services/image_annotation/public/cpp", |
| "//skia", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |
| } |