• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 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// ==========================================================
20package {
21    default_applicable_licenses: ["Android-Apache-2.0"],
22}
23
24cc_library_host_shared {
25    name: "libstats_proto_host",
26    srcs: [
27        "atoms.proto",
28        "atom_field_options.proto",
29        "enums/**/*.proto",
30        "message/*.proto",
31    ],
32
33    proto: {
34        type: "full",
35        export_proto_headers: true,
36        include_dirs: [
37            "external/protobuf/src",
38        ],
39    },
40}
41
42filegroup {
43    name: "libstats_atoms_proto",
44    srcs: [
45        "atoms.proto",
46    ],
47}
48
49filegroup {
50    name: "libstats_internal_protos",
51    srcs: [
52        "atoms.proto",
53        "atom_field_options.proto",
54    ],
55}
56
57
58filegroup {
59    name: "libstats_atom_enum_protos",
60    srcs: [
61        "enums/**/*.proto",
62    ],
63}
64
65filegroup {
66    name: "libstats_atom_message_protos",
67    srcs: [
68        "message/*.proto",
69    ],
70}
71