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
72
73
74
75
76
77
78
79
80
|
# Copyright 2017 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")
_jni_sources = [
"java/src/org/chromium/components/crash/browser/ChildProcessCrashObserver.java",
"java/src/org/chromium/components/crash/browser/PackagePaths.java",
"java/src/org/chromium/components/crash/CrashKeys.java",
]
generate_jni("jni_headers") {
sources = _jni_sources
}
java_cpp_enum("java_enums_srcjar") {
sources = [
"crash_keys_android.h",
]
}
android_library("java") {
deps = [
"//base:base_java",
]
srcjar_deps = [ ":java_enums_srcjar" ]
java_files = _jni_sources
}
source_set("crash_android") {
sources = [
"crash_keys_android.cc",
"crash_keys_android.h",
]
deps = [
":jni_headers",
"//base",
"//components/crash/core/common:crash_key",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"crash_keys_android_unittest.cc",
]
deps = [
":crash_android",
"//components/crash/core/common:crash_key",
"//testing/gtest",
]
}
_java_handler_jni_sources =
[ "java/src/org/chromium/components/crash/browser/CrashpadMain.java" ]
generate_jni("java_handler_jni_headers") {
sources = _java_handler_jni_sources
}
android_library("handler_java") {
deps = [
"//base:base_java",
]
java_files = _java_handler_jni_sources
}
static_library("crashpad_main") {
sources = [
"crashpad_main.cc",
]
deps = [
":java_handler_jni_headers",
"//base",
"//third_party/crashpad/crashpad/client",
"//third_party/crashpad/crashpad/handler",
]
}
|