blob: a1d15efe0fb982cbe33d0856d98c6740a8aa01c1 (
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
|
# 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")
source_set("language_detection") {
sources = [
"language_detection_util.cc",
"language_detection_util.h",
]
deps = [
"//base",
"//components/translate/core/common",
"//url",
]
if (cld_version == 1) {
deps += [ "//third_party/cld" ]
} else if (cld_version == 2) {
deps += [ "//third_party/cld_2:cld2_platform_impl" ]
} else {
assert(false, "Need a CLD version")
}
}
source_set("unit_tests") {
testonly = true
sources = [
"language_detection_util_unittest.cc",
]
deps = [
":language_detection",
"//testing/gtest",
]
}
|