summaryrefslogtreecommitdiffstats
path: root/components/translate/content/browser/BUILD.gn
blob: d94c3387f5a4e56ca0524e88546fa254e044638e (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
# 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("browser") {
  sources = [
    "browser_cld_data_provider.h",
    "content_translate_driver.cc",
    "content_translate_driver.h",
  ]

  deps = [
    "//base",
    "//components/translate/core/browser",
    "//content/public/browser",
  ]

  if (cld2_data_source == "standalone" || cld2_data_source == "component") {
    sources += [
      "data_file_browser_cld_data_provider.cc",
      "data_file_browser_cld_data_provider.h",
    ]
  } else if (cld2_data_source == "static") {
    sources += [
      "static_browser_cld_data_provider.cc",
      "static_browser_cld_data_provider.h",
    ]
  }
}