summaryrefslogtreecommitdiff
path: root/chromium/components/language/android/BUILD.gn
blob: 07bf91b2b746d230523d1de9b46b38d9a359b6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2018 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/android/config.gni")
import("//build/config/android/rules.gni")

generate_jni("jni_headers") {
  sources = [
    "java/src/org/chromium/components/language/AndroidLanguageMetricsBridge.java",
    "java/src/org/chromium/components/language/GeoLanguageProviderBridge.java",
  ]
}

source_set("language_bridge") {
  sources = [
    "android_language_metrics_bridge.cc",
    "geo_language_provider_bridge.cc",
  ]
  deps = [
    ":jni_headers",
    "//base",
    "//components/language/content/browser:browser",
  ]
}

android_library("language_bridge_java") {
  sources = [
    "java/src/org/chromium/components/language/AndroidLanguageMetricsBridge.java",
    "java/src/org/chromium/components/language/GeoLanguageProviderBridge.java",
  ]

  deps = [
    "//base:base_java",
    "//base:jni_java",
  ]
  annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}