xref: /aosp_15_r20/system/core/trusty/utils/trusty-ut-ctrl/Android.bp (revision 00c7fec1bb09f3284aad6a6f96d2f63dfc3650ad)
1// Copyright (C) 2018 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    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_defaults {
20    name: "trusty-ut-ctrl.defaults",
21
22    srcs: ["ut-ctrl.c"],
23    shared_libs: [
24        "libc",
25        "liblog",
26    ],
27    static_libs: [
28        "libtrusty",
29    ],
30    cflags: [
31        "-Wall",
32        "-Werror",
33    ],
34}
35
36cc_binary {
37    name: "trusty-ut-ctrl",
38    defaults: ["trusty-ut-ctrl.defaults"],
39    vendor: true,
40}
41
42cc_binary {
43    name: "trusty-ut-ctrl.system",
44    defaults: ["trusty-ut-ctrl.defaults"],
45    system_ext_specific: true,
46}
47