blob: 94203f4feccdb1b2a73fddd582446b4be260430a [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
gopinatha9864fd2018-08-22 16:45:57 -070046// ==== java proto device library (for test only) ==============================
47java_library {
48 name: "statsdprotolite",
Chenjie Yu159e4f82018-08-29 11:49:11 -070049 no_framework_libs: true,
gopinatha9864fd2018-08-22 16:45:57 -070050 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/atoms.proto",
59 ],
60
61 static_libs: [
62 "platformprotoslite",
63 ],
64 // Protos have lots of MissingOverride and similar.
65 errorprone: {
66 javacflags: ["-XepDisableAllChecks"],
67 },
68}