Debian Codegraph @

tests/SurfaceViewBufferTests/Android.bp

raw
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
15 package {
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
24 android_test {
25 name: "SurfaceViewBufferTests",
26 srcs: ["**/*.java","**/*.kt"],
27 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",
45 "cts-wm-util",
46 "CtsSurfaceValidatorLib",
47 ],
48 }
49
50 cc_library_shared {
51 name: "libsurface_jni",
52 srcs: [
53 "cpp/SurfaceProxy.cpp",
54 ],
55 shared_libs: [
56 "libutils",
57 "libui",
58 "libgui",
59 "liblog",
60 "libandroid",
61 ],
62 include_dirs: [
63 "system/core/include"
64 ],
65 stl: "libc++_static",
66 cflags: [
67 "-Werror",
68 "-Wall",
69 ],
70 }