Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 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 | |
Bob Badour | d594958 | 2021-02-23 13:18:34 -0800 | [diff] [blame] | 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 | |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 24 | android_test { |
| 25 | name: "SurfaceViewBufferTests", |
Kean Mariotti | f9969f7 | 2023-06-09 12:53:23 +0000 | [diff] [blame] | 26 | srcs: [ |
| 27 | "**/*.java", |
| 28 | "**/*.kt", |
| 29 | ], |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 30 | 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 Mariotti | f9969f7 | 2023-06-09 12:53:23 +0000 | [diff] [blame] | 47 | "flickerlib-trace_processor_shell", |
Krzysztof KosiĆski | 60b7087 | 2023-10-06 20:11:39 +0000 | [diff] [blame] | 48 | "truth", |
Vishnu Nair | a47f891 | 2020-11-11 18:25:48 -0800 | [diff] [blame] | 49 | "cts-wm-util", |
| 50 | "CtsSurfaceValidatorLib", |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 51 | ], |
| 52 | } |
| 53 | |
| 54 | cc_library_shared { |
| 55 | name: "libsurface_jni", |
| 56 | srcs: [ |
| 57 | "cpp/SurfaceProxy.cpp", |
| 58 | ], |
| 59 | shared_libs: [ |
| 60 | "libutils", |
Vishnu Nair | a47f891 | 2020-11-11 18:25:48 -0800 | [diff] [blame] | 61 | "libui", |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 62 | "libgui", |
| 63 | "liblog", |
| 64 | "libandroid", |
| 65 | ], |
| 66 | include_dirs: [ |
Kean Mariotti | f9969f7 | 2023-06-09 12:53:23 +0000 | [diff] [blame] | 67 | "system/core/include", |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 68 | ], |
| 69 | stl: "libc++_static", |
| 70 | cflags: [ |
| 71 | "-Werror", |
| 72 | "-Wall", |
| 73 | ], |
| 74 | } |