blob: 713c50dde313e41a5bdbec30ba38cad299d87675 [file] [log] [blame]
# 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("chinese_script_classifier") {
sources = [
"chinese_script_classifier.cc",
"chinese_script_classifier.h",
]
deps = [
"//base",
"//third_party/icu",
]
}
static_library("language_detection") {
sources = [
"language_detection_util.cc",
"language_detection_util.h",
]
deps = [
":chinese_script_classifier",
"//base",
"//components/language/core/common",
"//components/translate/core/common",
"//third_party/cld_3/src/src:cld_3",
"//third_party/icu",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"chinese_script_classifier_test.cc",
"language_detection_util_unittest.cc",
]
deps = [
":chinese_script_classifier",
":language_detection",
"//base",
"//components/translate/core/common",
"//testing/gtest",
"//third_party/icu",
"//url",
]
}