blob: 055d6258d1ac7c1c048ccba05e79cca2c8966846 [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",
Kean Mariottif9969f72023-06-09 12:53:23 +000026 srcs: [
27 "**/*.java",
28 "**/*.kt",
29 ],
Vishnu Nair57928e62020-09-16 19:01:04 -070030 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",
Kean Mariottif9969f72023-06-09 12:53:23 +000047 "flickerlib-trace_processor_shell",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +000048 "truth",
Vishnu Naira47f8912020-11-11 18:25:48 -080049 "cts-wm-util",
50 "CtsSurfaceValidatorLib",
Vishnu Nair57928e62020-09-16 19:01:04 -070051 ],
52}
53
54cc_library_shared {
55 name: "libsurface_jni",
56 srcs: [
57 "cpp/SurfaceProxy.cpp",
58 ],
59 shared_libs: [
60 "libutils",
Vishnu Naira47f8912020-11-11 18:25:48 -080061 "libui",
Vishnu Nair57928e62020-09-16 19:01:04 -070062 "libgui",
63 "liblog",
64 "libandroid",
65 ],
66 include_dirs: [
Kean Mariottif9969f72023-06-09 12:53:23 +000067 "system/core/include",
Vishnu Nair57928e62020-09-16 19:01:04 -070068 ],
69 stl: "libc++_static",
70 cflags: [
71 "-Werror",
72 "-Wall",
73 ],
74}