xref: /aosp_15_r20/system/core/trusty/utils/rpmb_dev/Android.bp (revision 00c7fec1bb09f3284aad6a6f96d2f63dfc3650ad)
1// Copyright (C) 2019 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//      http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package {
15    default_applicable_licenses: ["Android-Apache-2.0"],
16}
17
18cc_defaults {
19    name: "rpmb_dev.cc_defaults",
20    srcs: [
21        "rpmb_dev.c",
22    ],
23    shared_libs: [
24        "libcutils",
25        "liblog",
26        "libcrypto",
27    ],
28    cflags: [
29        "-Wall",
30        "-Werror",
31    ],
32}
33
34cc_binary {
35    name: "rpmb_dev",
36    defaults: ["rpmb_dev.cc_defaults"],
37    vendor: true,
38    host_supported: true,
39    init_rc: [
40        "rpmb_dev.rc",
41    ],
42}
43
44cc_binary {
45    name: "rpmb_dev.system",
46    defaults: ["rpmb_dev.cc_defaults"],
47    system_ext_specific: true,
48    init_rc: [
49        "rpmb_dev.system.rc",
50    ],
51}
52
53cc_binary {
54    name: "rpmb_dev.wv.system",
55    defaults: ["rpmb_dev.cc_defaults"],
56    system_ext_specific: true,
57    init_rc: [
58        "rpmb_dev.wv.system.rc",
59    ],
60}
61
62cc_binary {
63    name: "rpmb_dev.test.system",
64    defaults: ["rpmb_dev.cc_defaults"],
65    system_ext_specific: true,
66    init_rc: [
67        "rpmb_dev.test.system.rc",
68    ],
69}
70