• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2017 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
17cc_library {
18    name: "android.hardware.confirmationui-support-lib",
19    vendor_available: true,
20    host_supported: true,
21    vndk: {
22        enabled: true,
23    },
24    srcs: [
25        "src/cbor.cpp",
26        "src/confirmationui_utils.cpp",
27    ],
28    export_include_dirs: [
29        "include",
30    ]
31}
32
33cc_test {
34    name: "android.hardware.confirmationui-support-lib-tests",
35    srcs: [
36        "test/gtest_main.cpp",
37        "test/android_cbor_test.cpp",
38        "test/msg_formatting_test.cpp",
39    ],
40    static_libs: [
41        "libgtest",
42        "android.hardware.confirmationui-support-lib",
43    ],
44    shared_libs: [
45        "android.hardware.confirmationui@1.0",
46        "android.hardware.keymaster@4.0",
47        "libhidlbase",
48    ],
49    test_suites: ["general-tests"],
50    clang: true,
51    cflags: [ "-O0" ],
52}
53