blob: 3bfbf5da1cec24cfbdecf9d93e893ce3b39e7c2a [file] [log] [blame]
# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_android) {
import("//build/config/android/rules.gni")
}
static_library("common") {
sources = [
"language_detection_details.cc",
"language_detection_details.h",
"translate_constants.cc",
"translate_constants.h",
"translate_errors.h",
"translate_metrics.cc",
"translate_metrics.h",
"translate_switches.cc",
"translate_switches.h",
"translate_util.cc",
"translate_util.h",
]
deps = [
"//base",
"//components/language/core/common",
"//components/language_detection/core:core",
"//third_party/metrics_proto",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"translate_metrics_unittest.cc",
"translate_util_unittest.cc",
]
deps = [
":common",
"//base",
"//testing/gtest",
"//third_party/metrics_proto",
"//url",
]
}
if (is_android) {
java_cpp_enum("translate_infobar_event_enum") {
sources = [ "translate_metrics.h" ]
}
android_library("translate_infobar_event_enum_java") {
deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
srcjar_deps = [ ":translate_infobar_event_enum" ]
}
}