• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2021 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
17// Prebuilt generated using 'generated_prebuilts.sh'
18package {
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22cc_prebuilt_library_shared {
23    name: "neuralnetworks_sample_sl_driver_prebuilt",
24
25    shared_libs: [
26        "libbase",
27        "libcutils",
28        "liblog",
29        "libnativewindow",
30    ],
31    proprietary: true,
32    vendor: true,
33    // libnativewindow versioning trips this check. b/181227567 for fixing
34    allow_undefined_symbols: true,
35    target: {
36        android_x86_64: {
37            srcs: ["android_x86_64/neuralnetworks_sample_sl_driver_prebuilt.so"],
38        },
39        android_x86: {
40            srcs: ["android_x86/neuralnetworks_sample_sl_driver_prebuilt.so"],
41        },
42        android_arm64: {
43            srcs: ["android_arm64/neuralnetworks_sample_sl_driver_prebuilt.so"],
44        },
45        android_arm: {
46            srcs: ["android_arm/neuralnetworks_sample_sl_driver_prebuilt.so"],
47        },
48    },
49    apex_available: ["//apex_available:platform"],
50}
51
52cc_defaults {
53    name: "NeuralNetworksShimDriverAidl_defaults",
54    defaults: ["neuralnetworks_defaults"],
55    header_libs: [
56        "libneuralnetworks_headers",
57    ],
58    cflags: [
59        "-DNN_COMPATIBILITY_LIBRARY_BUILD",
60    ],
61    static_libs: [
62        "android.hardware.common-V2-ndk_platform",
63        "android.hardware.graphics.common-V2-ndk_platform",
64        "android.hardware.neuralnetworks-V1-ndk_platform",
65        "libaidlcommonsupport",
66        "libarect",
67        "libcutils",
68        "libneuralnetworks_shim_static",
69        "neuralnetworks_supportlibrary_loader",
70        "neuralnetworks_utils_hal_aidl",
71        "neuralnetworks_utils_hal_common",
72    ],
73    shared_libs: [
74        "libbase",
75        "libbinder_ndk",
76        "libhidlbase",
77        "libhidlmemory",
78        "liblog",
79        "libnativewindow",
80        "libutils",
81        "neuralnetworks_sample_sl_driver_prebuilt",
82    ],
83
84}
85
86cc_defaults {
87    name: "NeuralNetworksShimDriverAidl_server_defaults",
88    defaults: ["NeuralNetworksShimDriverAidl_defaults"],
89    relative_install_path: "hw",
90    proprietary: true,
91}
92
93cc_binary {
94    name: "android.hardware.neuralnetworks-shim-service-sample",
95    srcs: ["ShimServiceSample.cpp"],
96    defaults: ["NeuralNetworksShimDriverAidl_server_defaults"],
97    init_rc: ["config/android.hardware.neuralnetworks-shim-service-sample.rc"],
98    vintf_fragments: ["config/android.hardware.neuralnetworks-shim-service-sample.xml"],
99}
100