| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 | 6 |
| 7 source_set("language_detection") { | 7 static_library("language_detection") { |
| 8 sources = [ | 8 sources = [ |
| 9 "language_detection_util.cc", | 9 "language_detection_util.cc", |
| 10 "language_detection_util.h", | 10 "language_detection_util.h", |
| 11 ] | 11 ] |
| 12 | 12 |
| 13 deps = [ | 13 deps = [ |
| 14 "//base", | 14 "//base", |
| 15 "//components/translate/core/common", | 15 "//components/translate/core/common", |
| 16 "//third_party/cld_2", | 16 "//third_party/cld_2", |
| 17 "//url", | 17 "//url", |
| 18 ] | 18 ] |
| 19 } | 19 } |
| 20 | 20 |
| 21 source_set("unit_tests") { | 21 source_set("unit_tests") { |
| 22 testonly = true | 22 testonly = true |
| 23 sources = [ | 23 sources = [ |
| 24 "language_detection_util_unittest.cc", | 24 "language_detection_util_unittest.cc", |
| 25 ] | 25 ] |
| 26 deps = [ | 26 deps = [ |
| 27 ":language_detection", | 27 ":language_detection", |
| 28 "//base", | 28 "//base", |
| 29 "//components/translate/core/common", | 29 "//components/translate/core/common", |
| 30 "//testing/gtest", | 30 "//testing/gtest", |
| 31 "//url", | 31 "//url", |
| 32 ] | 32 ] |
| 33 } | 33 } |
| OLD | NEW |