xref: /aosp_15_r20/system/core/trusty/storage/proxy/Android.bp (revision 00c7fec1bb09f3284aad6a6f96d2f63dfc3650ad)
1//
2// Copyright (C) 2016 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    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_defaults {
22    name: "storageproxyd.defaults",
23    srcs: [
24        "checkpoint_handling.cpp",
25        "ipc.c",
26        "rpmb.c",
27        "storage.c",
28        "proxy.c",
29        "watchdog.cpp",
30    ],
31
32    shared_libs: [
33        "libbase",
34        "libbinder_ndk",
35        "libcutils",
36        "liblog",
37        "libhardware_legacy",
38    ],
39    header_libs: [
40        "libgsi_headers",
41    ],
42
43    static_libs: [
44        "libfstab",
45        "libtrustystorageinterface",
46        "libtrusty",
47    ],
48    cflags: [
49        "-Wall",
50        "-Werror",
51    ],
52}
53
54cc_binary {
55    name: "storageproxyd",
56    defaults: ["storageproxyd.defaults"],
57    vendor: true,
58    // vendor variant requires this flag
59    cflags: ["-DVENDOR_FS_READY_PROPERTY"],
60}
61
62cc_binary {
63    name: "storageproxyd.system",
64    defaults: ["storageproxyd.defaults"],
65    system_ext_specific: true,
66}
67