1// Copyright (C) 2013 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    default_applicable_licenses: [
18        "hardware_google_graphics_common_libmemtrack_license",
19    ],
20}
21
22license {
23    name: "hardware_google_graphics_common_libmemtrack_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33// HAL module implementation stored in
34// hw/<POWERS_HARDWARE_MODULE_ID>.<ro.hardware>.so
35
36soong_config_module_type {
37    name: "memtrack_cc_library_shared",
38    module_type: "cc_library_shared",
39    config_namespace: "ANDROID",
40    value_variables: ["target_board_platform"],
41    properties: [
42        "name",
43    ],
44}
45
46memtrack_cc_library_shared {
47    name: "memtrack.target_board_platform",
48    relative_install_path: "hw",
49    header_libs: [
50        "libcutils_headers",
51        "libsystem_headers",
52        "libhardware_headers",
53    ],
54    shared_libs: [
55        "liblog",
56        "libion_google",
57    ],
58    srcs: [
59        "memtrack_exynos.cpp",
60        "mali.cpp",
61        "ion.cpp",
62        "dmabuf.cpp",
63    ],
64    soong_config_variables: {
65        target_board_platform: {
66            name: "memtrack.%s",
67            conditions_default: {
68                name: "memtrack.target_board_platform",
69            },
70        },
71    },
72    proprietary: true,
73}
74