blob: 48031de15f5407a1a8301bfec1a3226b30c34187 [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
15android_test {
16 name: "SurfaceViewBufferTests",
17 srcs: ["**/*.java","**/*.kt"],
18 manifest: "AndroidManifest.xml",
19 test_config: "AndroidTest.xml",
20 platform_apis: true,
21 certificate: "platform",
22 use_embedded_native_libs: true,
23 jni_libs: [
24 "libsurface_jni",
25 ],
26
27 static_libs: [
28 "androidx.appcompat_appcompat",
29 "androidx.test.rules",
30 "androidx.test.runner",
31 "androidx.test.ext.junit",
32 "kotlin-stdlib",
33 "kotlinx-coroutines-android",
34 "flickerlib",
35 "truth-prebuilt",
Vishnu Naira47f8912020-11-11 18:25:48 -080036 "cts-wm-util",
37 "CtsSurfaceValidatorLib",
Vishnu Nair57928e62020-09-16 19:01:04 -070038 ],
39}
40
41cc_library_shared {
42 name: "libsurface_jni",
43 srcs: [
44 "cpp/SurfaceProxy.cpp",
45 ],
46 shared_libs: [
47 "libutils",
Vishnu Naira47f8912020-11-11 18:25:48 -080048 "libui",
Vishnu Nair57928e62020-09-16 19:01:04 -070049 "libgui",
50 "liblog",
51 "libandroid",
52 ],
53 include_dirs: [
54 "system/core/include"
55 ],
56 stl: "libc++_static",
57 cflags: [
58 "-Werror",
59 "-Wall",
60 ],
61}