summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/feedback/android/BUILD.gn
blob: 2270b73acda849b51865d8e8c70a0b02e0dfb604 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2020 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/rules.gni")

generate_jni("jni_headers") {
  sources = [
    "java/src/org/chromium/chrome/browser/feedback/ProcessIdFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/SystemInfoFeedbackSource.java",
  ]
}

source_set("android") {
  sources = [
    "process_id_feedback_source.cc",
    "process_id_feedback_source.h",
    "system_info_feedback_source.cc",
  ]
  deps = [
    ":jni_headers",
    "//base",
    "//content/public/browser",
    "//gpu/config",
  ]
}

android_library("java") {
  sources = [
    "java/src/org/chromium/chrome/browser/feedback/AsyncFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/AsyncFeedbackSourceAdapter.java",
    "java/src/org/chromium/chrome/browser/feedback/FeedbackCollector.java",
    "java/src/org/chromium/chrome/browser/feedback/FeedbackContextFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/FeedbackReporter.java",
    "java/src/org/chromium/chrome/browser/feedback/FeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/FragmentHelpAndFeedbackLauncher.java",
    "java/src/org/chromium/chrome/browser/feedback/HelpAndFeedbackLauncher.java",
    "java/src/org/chromium/chrome/browser/feedback/HistogramFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/IMEFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/InterestFeedFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/LowEndDeviceFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/PermissionFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/ProcessIdFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/ScreenshotSource.java",
    "java/src/org/chromium/chrome/browser/feedback/StaticScreenshotSource.java",
    "java/src/org/chromium/chrome/browser/feedback/SystemInfoFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/UrlFeedbackSource.java",
    "java/src/org/chromium/chrome/browser/feedback/VariationsFeedbackSource.java",
  ]
  deps = [
    ":java_resources",
    "//base:base_java",
    "//base:jni_java",
    "//chrome/browser/profiles/android:java",
    "//components/browser_ui/util/android:java",
    "//components/variations/android:variations_java",
    "//content/public/android:content_java",
    "//net/android:net_java",
    "//third_party/android_deps:androidx_annotation_annotation_java",
  ]
  annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
  resources_package = "org.chromium.chrome.browser.feedback"
}

android_resources("java_resources") {
  sources = [ "java/res/values/strings.xml" ]
}