1// Copyright (C) 2020 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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_library_shared {
20    name: "cf_metrics_proto",
21    vendor_available: true,
22
23    srcs: [
24        "common.proto",
25        "cf_log.proto",
26        "cf_metrics_event.proto",
27        "clientanalytics.proto",
28    ],
29
30    shared_libs: [
31        "libprotobuf-cpp-full",
32    ],
33
34    proto: {
35        export_proto_headers: true,
36        type: "full",
37        canonical_path_from_root: false,
38        include_dirs: ["external/protobuf/src"],
39    },
40
41    cppflags: [
42        "-Werror",
43        "-Wno-unused-parameter",
44        "-Wno-format",
45        "-Wno-c++98-compat-pedantic",
46        "-Wno-float-conversion",
47        "-Wno-disabled-macro-expansion",
48        "-Wno-float-equal",
49        "-Wno-sign-conversion",
50        "-Wno-padded",
51        "-Wno-old-style-cast",
52        "-Wno-undef",
53    ],
54
55    defaults: ["cuttlefish_host"],
56}
57