summaryrefslogtreecommitdiff
path: root/chromium/components/translate/content/renderer/BUILD.gn
blob: bae4efd5362c5eab3a69ad9429a4c0d792b4a2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2014 The Chromium Authors. All rights reserved.
# 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")

static_library("renderer") {
  sources = [
    "per_frame_translate_agent.cc",
    "per_frame_translate_agent.h",
    "translate_agent.cc",
    "translate_agent.h",
  ]

  deps = [
    "//base",
    "//components/translate/content/common",
    "//components/translate/core/common",
    "//components/translate/core/language_detection",
    "//content/public/common",
    "//content/public/renderer",
    "//services/service_manager/public/cpp",
    "//third_party/blink/public:blink",
    "//url",
    "//v8",
  ]

  public_deps = [ "//third_party/blink/public:blink_headers" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "translate_agent_unittest.cc" ]
  deps = [
    ":renderer",
    "//base",
    "//testing/gtest",
  ]
}