xref: /aosp_15_r20/external/modp_b64/Android.bp (revision c3cd14fb6370b1f0a2b85e79eb9b360b8782fd16)
1// Copyright (C) 2015 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: ["external_modp_b64_license"],
17}
18
19// Added automatically by a large-scale-change
20// See: http://go/android-license-faq
21license {
22    name: "external_modp_b64_license",
23    visibility: [":__subpackages__"],
24    license_kinds: [
25        "SPDX-license-identifier-BSD",
26    ],
27    license_text: [
28        "LICENSE",
29    ],
30}
31
32cc_library_static {
33    name: "libmodpb64",
34    host_supported: true,
35    ramdisk_available: true,
36    recovery_available: true,
37    vendor_available: true,
38    srcs: ["modp_b64.cc"],
39
40    cflags: [
41        "-Wall",
42        "-Werror",
43    ],
44    local_include_dirs: ["modp_b64"],
45    export_include_dirs: ["."],
46    min_sdk_version: "30",
47    apex_available: [
48        "//apex_available:platform",
49        "com.android.btservices",
50        "com.android.nfcservices",
51    ],
52    target: {
53        windows: {
54            enabled: true,
55        },
56    },
57}
58
59cc_library_static {
60    name: "libmodpb64_ndk",
61    vendor_available: false,
62    srcs: ["modp_b64.cc"],
63
64    cflags: [
65        "-Wall",
66        "-Werror",
67    ],
68    local_include_dirs: ["modp_b64"],
69    export_include_dirs: ["."],
70    sdk_version: "current",
71    stl: "c++_static",
72}
73