summaryrefslogtreecommitdiff
path: root/chromium/components/minidump_uploader/BUILD.gn
blob: 36ed46e423209befa9bf5c4e91f1149fdb23c786 (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
68
69
70
71
# Copyright 2016 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("minidump_uploader_jni_headers") {
  sources = [ "android/java/src/org/chromium/components/minidump_uploader/CrashReportMimeWriter.java" ]
}

static_library("minidump_uploader") {
  sources = [
    "rewrite_minidumps_as_mimes.cc",
    "rewrite_minidumps_as_mimes.h",
  ]

  deps = [
    ":minidump_uploader_jni_headers",
    "//base",
    "//third_party/crashpad/crashpad/client",
    "//third_party/crashpad/crashpad/handler",
    "//third_party/crashpad/crashpad/snapshot",
    "//third_party/crashpad/crashpad/util",
  ]
}

android_library("minidump_uploader_java") {
  deps = [
    "//base:base_java",
    "//base:jni_java",
    "//third_party/android_deps:androidx_annotation_annotation_java",
  ]

  sources = [
    "android/java/src/org/chromium/components/minidump_uploader/CrashFileManager.java",
    "android/java/src/org/chromium/components/minidump_uploader/CrashReportMimeWriter.java",
    "android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadCallable.java",
    "android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadJob.java",
    "android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadJobImpl.java",
    "android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadJobService.java",
    "android/java/src/org/chromium/components/minidump_uploader/MinidumpUploader.java",
    "android/java/src/org/chromium/components/minidump_uploader/MinidumpUploaderDelegate.java",
    "android/java/src/org/chromium/components/minidump_uploader/util/CrashReportingPermissionManager.java",
    "android/java/src/org/chromium/components/minidump_uploader/util/HttpURLConnectionFactory.java",
    "android/java/src/org/chromium/components/minidump_uploader/util/HttpURLConnectionFactoryImpl.java",
    "android/java/src/org/chromium/components/minidump_uploader/util/NetworkPermissionUtil.java",
  ]
  annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}

android_library("minidump_uploader_javatests") {
  testonly = true
  deps = [
    ":minidump_uploader_java",
    "//base:base_java",
    "//base:base_java_test_support",
    "//third_party/android_deps:androidx_test_runner_java",
    "//third_party/android_support_test_runner:runner_java",
    "//third_party/junit",
  ]
  sources = [
    "android/javatests/src/org/chromium/components/minidump_uploader/CrashFileManagerTest.java",
    "android/javatests/src/org/chromium/components/minidump_uploader/CrashTestRule.java",
    "android/javatests/src/org/chromium/components/minidump_uploader/MinidumpUploadCallableTest.java",
    "android/javatests/src/org/chromium/components/minidump_uploader/MinidumpUploadJobImplTest.java",
    "android/javatests/src/org/chromium/components/minidump_uploader/MinidumpUploadTestUtility.java",
    "android/javatests/src/org/chromium/components/minidump_uploader/MinidumpUploaderTest.java",
    "android/javatests/src/org/chromium/components/minidump_uploader/TestMinidumpUploadJobImpl.java",
    "android/javatests/src/org/chromium/components/minidump_uploader/TestMinidumpUploaderDelegate.java",
  ]
}