blob: d291ec001daf03795beb60bb772699e0fc6f4366 [file] [log] [blame]
Colin Crossbc2dc312018-10-26 22:34:06 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Joe Onorato255ffff2020-01-17 01:30:02 -080015
16cc_defaults {
17 name: "libincidentpriv_defaults",
Colin Crossbc2dc312018-10-26 22:34:06 -070018
19 cflags: [
20 "-Wall",
21 "-Werror",
22 "-Wno-missing-field-initializers",
23 "-Wno-unused-variable",
24 "-Wunused-parameter",
25 ],
26
27 shared_libs: [
28 "libbinder",
29 "liblog",
30 "libutils",
Joe Onorato99598ee2019-02-11 15:55:13 +000031 "libprotobuf-cpp-lite",
32 ],
33
34 static_libs: [
35 "libplatformprotos",
36 ],
37
38 whole_static_libs: [
39 "libincidentcompanion",
Colin Crossbc2dc312018-10-26 22:34:06 -070040 ],
41
42 aidl: {
Joe Onorato99598ee2019-02-11 15:55:13 +000043 include_dirs: [
44 "frameworks/base/core/java",
45 "frameworks/native/libs/incidentcompanion/binder",
46 ],
Colin Crossbc2dc312018-10-26 22:34:06 -070047 export_aidl_headers: true,
48 },
49
50 srcs: [
51 ":libincident_aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -070052 "src/IncidentReportArgs.cpp",
53 ],
Joe Onorato255ffff2020-01-17 01:30:02 -080054}
55
56cc_library_shared {
57 name: "libincidentpriv",
58 defaults: ["libincidentpriv_defaults"],
59 export_include_dirs: ["include_priv"],
60}
61
62cc_library_shared {
63 name: "libincident",
64
65 cflags: [
66 "-Wall",
67 "-Werror",
68 "-Wno-missing-field-initializers",
69 "-Wno-unused-variable",
70 "-Wunused-parameter",
71 ],
72
73 shared_libs: [
74 "libbinder",
75 "liblog",
76 "libutils",
77 "libincidentpriv",
78 ],
79
80 srcs: [
81 "src/incident_report.cpp",
82 ],
Colin Crossbc2dc312018-10-26 22:34:06 -070083
Colin Crossbc2dc312018-10-26 22:34:06 -070084 export_include_dirs: ["include"],
Joe Onorato255ffff2020-01-17 01:30:02 -080085
86 stubs: {
87 symbol_file: "libincident.map.txt",
88 versions: [
89 "30",
90 ],
91 },
Joe Onorato99598ee2019-02-11 15:55:13 +000092}
Joe Onorato255ffff2020-01-17 01:30:02 -080093
94cc_test {
95 name: "libincident_test",
Joe Onorato084aa3c2020-03-20 16:25:14 -070096 test_config: "AndroidTest.xml",
Joe Onorato255ffff2020-01-17 01:30:02 -080097 defaults: ["libincidentpriv_defaults"],
Ruchir Rastogidd5d2872020-06-09 17:22:53 -070098 test_suites: ["device-tests", "mts"],
99 compile_multilib: "both",
100 multilib: {
101 lib64: {
102 suffix: "64",
103 },
104 lib32: {
105 suffix: "32",
106 },
107 },
108 require_root: true,
Joe Onorato255ffff2020-01-17 01:30:02 -0800109
110 include_dirs: [
111 "frameworks/base/libs/incident/include",
112 "frameworks/base/libs/incident/include_priv",
113 ],
114
115 srcs: [
116 "tests/IncidentReportArgs_test.cpp",
117 "tests/IncidentReportRequest_test.cpp",
Joe Onorato255ffff2020-01-17 01:30:02 -0800118 ],
119
120 shared_libs: [
121 "libincident",
122 ],
123
124 static_libs: [
125 "libgmock",
126 ],
127}
128
129
130