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", |
Diwas Sharma | 706df9c | 2023-09-01 00:45:16 +0000 | [diff] [blame] | 26 | srcs: ["**/*.java","**/*.kt"], |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 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", |
Vishnu Nair | a47f891 | 2020-11-11 18:25:48 -0800 | [diff] [blame] | 45 | "cts-wm-util", |
| 46 | "CtsSurfaceValidatorLib", |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 47 | ], |
| 48 | } |
| 49 | |
| 50 | cc_library_shared { |
| 51 | name: "libsurface_jni", |
| 52 | srcs: [ |
| 53 | "cpp/SurfaceProxy.cpp", |
| 54 | ], |
| 55 | shared_libs: [ |
| 56 | "libutils", |
Vishnu Nair | a47f891 | 2020-11-11 18:25:48 -0800 | [diff] [blame] | 57 | "libui", |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 58 | "libgui", |
| 59 | "liblog", |
| 60 | "libandroid", |
| 61 | ], |
| 62 | include_dirs: [ |
Diwas Sharma | 706df9c | 2023-09-01 00:45:16 +0000 | [diff] [blame] | 63 | "system/core/include" |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 64 | ], |
| 65 | stl: "libc++_static", |
| 66 | cflags: [ |
| 67 | "-Werror", |
| 68 | "-Wall", |
| 69 | ], |
| 70 | } |