blob: f1bf10cfa767405c956ac95f4348f49bf4484c10 [file] [log] [blame]
Yao Chend54f9dd2017-10-17 17:37:48 +00001//
2// Copyright (C) 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// ==========================================================
18// Build the library for use on the host
19// ==========================================================
20cc_library_host_shared {
21 name: "libstats_proto_host",
22 srcs: [
Stefan Lafonae2df012017-11-14 09:17:21 -080023 "src/atoms.proto",
Yao Chen9c1debe2018-02-19 14:39:19 -080024 "src/atom_field_options.proto",
Yao Chend54f9dd2017-10-17 17:37:48 +000025 ],
26
27 shared_libs: [
28 "libplatformprotos",
29 ],
30
31 proto: {
32 type: "full",
33 export_proto_headers: true,
Yao Chen9c1debe2018-02-19 14:39:19 -080034 include_dirs: [
35 "external/protobuf/src",
36 ],
Yao Chend54f9dd2017-10-17 17:37:48 +000037 },
Joe Onorato62c220b2017-11-18 20:32:56 -080038
39 export_shared_lib_headers: [
40 "libplatformprotos",
41 ]
42
Yao Chend54f9dd2017-10-17 17:37:48 +000043}
44
Joe Onorato62c220b2017-11-18 20:32:56 -080045
gopinath17593b02018-10-26 16:00:34 -070046// ==== java proto device library (for test only) ==============================
47java_library {
48 name: "statsdprotolite",
49 no_framework_libs: true,
50 proto: {
51 type: "lite",
52 include_dirs: ["external/protobuf/src"],
53 },
54
55 srcs: [
56 "src/stats_log.proto",
57 "src/statsd_config.proto",
58 "src/perfetto/perfetto_config.proto",
59 "src/atoms.proto",
60 ],
61
62 static_libs: [
63 "platformprotoslite",
64 ],
65 // Protos have lots of MissingOverride and similar.
66 errorprone: {
67 javacflags: ["-XepDisableAllChecks"],
68 },
69}
70
71