xref: /aosp_15_r20/frameworks/native/libs/arect/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1// Copyright (C) 2017 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: ["frameworks_native_libs_arect_license"],
17    default_team: "trendy_team_android_core_graphics_stack",
18}
19
20// Added automatically by a large-scale-change
21// See: http://go/android-license-faq
22license {
23    name: "frameworks_native_libs_arect_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33ndk_headers {
34    name: "libarect_headers_for_ndk",
35    from: "include/android",
36    to: "android",
37    srcs: ["include/android/*.h"],
38    license: "NOTICE",
39}
40
41cc_library_headers {
42    name: "libarect_headers",
43    host_supported: true,
44    vendor_available: true,
45    min_sdk_version: "29",
46    // TODO(b/153609531): remove when no longer needed.
47    native_bridge_supported: true,
48    export_include_dirs: ["include"],
49    apex_available: [
50        "//apex_available:platform",
51        "com.android.media",
52        "com.android.media.swcodec",
53    ],
54    llndk: {
55        llndk_headers: true,
56    },
57}
58
59cc_library_static {
60    name: "libarect",
61    host_supported: true,
62    vendor_available: true,
63    // TODO(b/153609531): remove when no longer needed.
64    native_bridge_supported: true,
65    export_include_dirs: ["include"],
66    target: {
67        windows: {
68            enabled: true,
69        },
70    },
71    min_sdk_version: "29",
72    // static link, so it won't straddle a module boundary at runtime.
73    apex_available: [
74        "//apex_available:platform",
75        "com.android.media",
76        "com.android.media.swcodec",
77        "com.android.neuralnetworks",
78    ],
79
80}
81