# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
assert(use_blink)
static_library("browser") {
sources = [
"distillability_driver.cc",
"distillability_driver.h",
"distillable_page_utils.cc",
"distillable_page_utils.h",
"distiller_javascript_service_impl.cc",
"distiller_javascript_service_impl.h",
"distiller_javascript_utils.cc",
"distiller_javascript_utils.h",
"distiller_page_web_contents.cc",
"distiller_page_web_contents.h",
"dom_distiller_viewer_source.cc",
"dom_distiller_viewer_source.h",
"uma_helper.cc",
"uma_helper.h",
]
public_deps = [
"//components/dom_distiller/core",
"//content/public/browser",
]
deps = [
"//base",
"//components/back_forward_cache",
"//components/dom_distiller/content/common/mojom",
"//components/resources",
"//components/strings",
"//content/public/browser",
"//content/public/common",
"//mojo/public/cpp/bindings",
"//net",
"//services/service_manager/public/cpp",
"//skia",
"//third_party/blink/public:blink_headers",
"//ui/base",
"//ui/display",
"//ui/gfx",
"//url",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
if (is_android) {
sources += [ "distillable_page_utils_android.cc" ]
deps += [ "android:jni_headers" ]
}
}
source_set("unit_tests") {
testonly = true
sources = [
"dom_distiller_viewer_source_unittest.cc",
"uma_helper_unittest.cc",
]
deps = [
":browser",
"//base/test:test_support",
"//content/test:test_support",
"//testing/gtest",
]
}
source_set("test_support") {
testonly = true
sources = [
"test_distillability_observer.cc",
"test_distillability_observer.h",
]
deps = [ ":browser" ]
}