xref: /aosp_15_r20/cts/tests/tests/neuralnetworks/tflite_delegate/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2019 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    // See: http://go/android-license-faq
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20// The "CtsTfliteNnapiDelegateTests_static" has been moved to
21// external/tensorflow/Android.bp, due to the fact that the srcs files
22// are not in the current directory.
23
24// Build the actual CTS module with the static lib above.
25// This is necessary for the build system to pickup the AndroidTest.xml.
26
27cc_test {
28    name: "CtsTfliteNnapiDelegateTestCases",
29    team: "trendy_team_machine_learning",
30    compile_multilib: "both",
31    multilib: {
32        lib32: {
33            suffix: "32",
34        },
35        lib64: {
36            suffix: "64",
37        },
38    },
39    whole_static_libs: ["TfliteNnapiDelegateTests_static"],
40    shared_libs: [
41        "libandroid",
42        "liblog",
43        "libneuralnetworks",
44    ],
45    static_libs: [
46        "libgtest_ndk_c++",
47        "libgmock_ndk",
48        "libtflite_static",
49    ],
50    // Tag this module as a cts test artifact
51    test_suites: [
52        "cts",
53        "mts",
54        "mts-neuralnetworks",
55        "mcts-neuralnetworks",
56        "general-tests",
57    ],
58    sdk_version: "current",
59    stl: "c++_static",
60}
61