blob: 512b8c439dcf158e72e69582cbedd4b840c5efd9 [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",
96 defaults: ["libincidentpriv_defaults"],
97 test_suites: ["device-tests"],
98
99 include_dirs: [
100 "frameworks/base/libs/incident/include",
101 "frameworks/base/libs/incident/include_priv",
102 ],
103
104 srcs: [
105 "tests/IncidentReportArgs_test.cpp",
106 "tests/IncidentReportRequest_test.cpp",
107 "tests/c_api_compile_test.c",
108 ],
109
110 shared_libs: [
111 "libincident",
112 ],
113
114 static_libs: [
115 "libgmock",
116 ],
117}
118
119
120