xref: /aosp_15_r20/frameworks/base/tests/SurfaceViewBufferTests/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1// Copyright (C) 2020 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    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_base_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_base_license"],
22}
23
24android_test {
25    name: "SurfaceViewBufferTests",
26    srcs: [
27        "**/*.java",
28        "**/*.kt",
29    ],
30    manifest: "AndroidManifest.xml",
31    test_config: "AndroidTest.xml",
32    platform_apis: true,
33    certificate: "platform",
34    use_embedded_native_libs: true,
35    jni_libs: [
36        "libsurface_jni",
37    ],
38
39    static_libs: [
40        "androidx.appcompat_appcompat",
41        "androidx.test.rules",
42        "androidx.test.runner",
43        "androidx.test.ext.junit",
44        "kotlin-stdlib",
45        "kotlinx-coroutines-android",
46        "flickerlib",
47        "flickerlib-trace_processor_shell",
48        "truth",
49        "cts-wm-util",
50        "CtsSurfaceValidatorLib",
51    ],
52}
53
54cc_library_shared {
55    name: "libsurface_jni",
56    srcs: [
57        "cpp/SurfaceProxy.cpp",
58    ],
59    shared_libs: [
60        "libutils",
61        "libui",
62        "libgui",
63        "liblog",
64        "libandroid",
65    ],
66    include_dirs: [
67        "system/core/include",
68    ],
69    stl: "libc++_static",
70    cflags: [
71        "-Werror",
72        "-Wall",
73    ],
74}
75