blob: 647da2abd213edf2d02daed89c3e3351c2b42f2e [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",
36 ],
37}
38
39cc_library_shared {
40 name: "libsurface_jni",
41 srcs: [
42 "cpp/SurfaceProxy.cpp",
43 ],
44 shared_libs: [
45 "libutils",
46 "libgui",
47 "liblog",
48 "libandroid",
49 ],
50 include_dirs: [
51 "system/core/include"
52 ],
53 stl: "libc++_static",
54 cflags: [
55 "-Werror",
56 "-Wall",
57 ],
58}