• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 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
17package {
18    // See: http://go/android-license-faq
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22cc_library_static {
23    name: "lib_profiler_proto",
24    srcs: [
25        "profiler.proto",
26    ],
27    rtti: false,
28    proto: {
29        type: "lite",
30        canonical_path_from_root: true,
31        export_proto_headers: true,
32    },
33
34    owner: "google",
35    vendor: true,
36    host_supported: true,
37}
38
39cc_library_shared {
40    name:
41      "lib_profiler",
42
43    srcs: [
44        "profiler.cc",
45    ],
46
47    include_dirs: ["."],
48
49    cflags: [
50        "-Werror",
51        "-Wall",
52    ],
53
54    shared_libs: [
55        "libcutils",
56        "liblog",
57        "libprotobuf-cpp-full",
58        "libutils",
59    ],
60
61    whole_static_libs: [
62        "lib_profiler_proto",
63    ],
64    export_static_lib_headers: [
65        "lib_profiler_proto",
66    ],
67    export_include_dirs: ["."],
68
69    owner: "google",
70    vendor: true,
71    host_supported: true,
72    rtti: true,
73}
74