1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
7 source_set("language_detection") {
9 "language_detection_util.cc",
10 "language_detection_util.h",
15 "//components/translate/core/common",
19 if (cld_version == 1) {
20 deps += [ "//third_party/cld" ]
21 } else if (cld_version == 2) {
22 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
24 assert(false, "Need a CLD version")
28 source_set("unit_tests") {
31 "language_detection_util_unittest.cc",
34 ":language_detection",