| 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 static_library("chinese_script_classifier") { |
| 8 sources = [ |
| 9 "chinese_script_classifier.cc", |
| 10 "chinese_script_classifier.h", |
| 11 ] |
| 12 |
| 13 deps = [ |
| 14 "//base", |
| 15 "//third_party/icu", |
| 16 ] |
| 17 } |
| 18 |
| 7 static_library("language_detection") { | 19 static_library("language_detection") { |
| 8 sources = [ | 20 sources = [ |
| 9 "language_detection_util.cc", | 21 "language_detection_util.cc", |
| 10 "language_detection_util.h", | 22 "language_detection_util.h", |
| 11 ] | 23 ] |
| 12 | 24 |
| 13 deps = [ | 25 deps = [ |
| 26 ":chinese_script_classifier", |
| 14 "//base", | 27 "//base", |
| 15 "//components/translate/core/common", | 28 "//components/translate/core/common", |
| 16 "//third_party/cld", | 29 "//third_party/cld", |
| 30 "//third_party/icu", |
| 17 "//url", | 31 "//url", |
| 18 ] | 32 ] |
| 19 } | 33 } |
| 20 | 34 |
| 21 source_set("unit_tests") { | 35 source_set("unit_tests") { |
| 22 testonly = true | 36 testonly = true |
| 23 sources = [ | 37 sources = [ |
| 38 "chinese_script_classifier_test.cc", |
| 24 "language_detection_util_unittest.cc", | 39 "language_detection_util_unittest.cc", |
| 25 ] | 40 ] |
| 26 deps = [ | 41 deps = [ |
| 42 ":chinese_script_classifier", |
| 27 ":language_detection", | 43 ":language_detection", |
| 28 "//base", | 44 "//base", |
| 29 "//components/translate/core/common", | 45 "//components/translate/core/common", |
| 30 "//testing/gtest", | 46 "//testing/gtest", |
| 47 "//third_party/icu", |
| 31 "//url", | 48 "//url", |
| 32 ] | 49 ] |
| 33 } | 50 } |
| OLD | NEW |