blob: dc75f00e7cdc0185534073151b253104ab6fa4c7 [file] [log] [blame]
Vishnu Nair57928e62020-09-16 19:01:04 -07001// 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
Bob Badourd5949582021-02-23 13:18:34 -080015package {
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
Vishnu Nair57928e62020-09-16 19:01:04 -070024android_test {
25 name: "SurfaceViewBufferTests",
Diwas Sharma706df9c2023-09-01 00:45:16 +000026 srcs: ["**/*.java","**/*.kt"],
Vishnu Nair57928e62020-09-16 19:01:04 -070027 manifest: "AndroidManifest.xml",
28 test_config: "AndroidTest.xml",
29 platform_apis: true,
30 certificate: "platform",
31 use_embedded_native_libs: true,
32 jni_libs: [
33 "libsurface_jni",
34 ],
35
36 static_libs: [
37 "androidx.appcompat_appcompat",
38 "androidx.test.rules",
39 "androidx.test.runner",
40 "androidx.test.ext.junit",
41 "kotlin-stdlib",
42 "kotlinx-coroutines-android",
43 "flickerlib",
44 "truth-prebuilt",
Vishnu Naira47f8912020-11-11 18:25:48 -080045 "cts-wm-util",
46 "CtsSurfaceValidatorLib",
Vishnu Nair57928e62020-09-16 19:01:04 -070047 ],
48}
49
50cc_library_shared {
51 name: "libsurface_jni",
52 srcs: [
53 "cpp/SurfaceProxy.cpp",
54 ],
55 shared_libs: [
56 "libutils",
Vishnu Naira47f8912020-11-11 18:25:48 -080057 "libui",
Vishnu Nair57928e62020-09-16 19:01:04 -070058 "libgui",
59 "liblog",
60 "libandroid",
61 ],
62 include_dirs: [
Diwas Sharma706df9c2023-09-01 00:45:16 +000063 "system/core/include"
Vishnu Nair57928e62020-09-16 19:01:04 -070064 ],
65 stl: "libc++_static",
66 cflags: [
67 "-Werror",
68 "-Wall",
69 ],
70}