• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 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    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_native_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_native_license"],
22}
23
24cc_defaults {
25    name: "libgpumemtracer_deps",
26    shared_libs: [
27        "libbase",
28        "liblog",
29        "libutils",
30    ],
31    static_libs: [
32        "libgpumem",
33        "libperfetto_client_experimental",
34    ],
35}
36
37cc_library_static {
38    name: "libgpumemtracer",
39    defaults: [
40        "libgpumemtracer_deps",
41        "libgpumem_deps",
42    ],
43    srcs: [
44        "GpuMemTracer.cpp",
45    ],
46    export_include_dirs: ["include"],
47    export_static_lib_headers: [
48        "libperfetto_client_experimental",
49    ],
50    cppflags: [
51        "-Wall",
52        "-Werror",
53        "-Wformat",
54        "-Wthread-safety",
55        "-Wunused",
56        "-Wunreachable-code",
57    ],
58}
59