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_defaults {
40    name: "lib_profiler_defaults",
41
42    srcs: [
43        "profiler.cc",
44    ],
45
46    include_dirs: ["."],
47
48    cflags: [
49        "-Werror",
50        "-Wall",
51    ],
52
53    shared_libs: [
54        "libcutils",
55        "liblog",
56        "libprotobuf-cpp-full",
57        "libutils",
58    ],
59
60    whole_static_libs: [
61        "lib_profiler_proto",
62    ],
63    export_static_lib_headers: [
64        "lib_profiler_proto",
65    ],
66    export_include_dirs: ["."],
67
68    owner: "google",
69    vendor: true,
70    host_supported: true,
71    rtti: true,
72}
73
74cc_library_shared {
75    name: "lib_profiler",
76    defaults: ["lib_profiler_defaults"],
77}
78
79cc_test_library {
80    name: "lib_profiler_for_test",
81    defaults: ["lib_profiler_defaults"],
82    shared: {
83        enabled: false,
84    },
85}
86