| 1 |
// |
| 2 |
// Copyright (C) 2012 The Android Open Source Project |
| 3 |
// |
| 4 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
// you may not use this file except in compliance with the License. |
| 6 |
// You may obtain a copy of the License at |
| 7 |
// |
| 8 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
// |
| 10 |
// Unless required by applicable law or agreed to in writing, software |
| 11 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
// See the License for the specific language governing permissions and |
| 14 |
// limitations under the License. |
| 15 |
// |
| 16 |
|
| 17 |
// This package provides the system interfaces allowing WebView to render. |
| 18 |
|
| 19 |
// Native support library (libwebviewchromium_plat_support.so) - does NOT link |
| 20 |
// any native chromium code. |
| 21 |
package { |
| 22 |
default_applicable_licenses: [ |
| 23 |
"frameworks_base_native_webview_plat_support_license", |
| 24 |
], |
| 25 |
} |
| 26 |
|
| 27 |
// Added automatically by a large-scale-change that took the approach of |
| 28 |
// 'apply every license found to every target'. While this makes sure we respect |
| 29 |
// every license restriction, it may not be entirely correct. |
| 30 |
// |
| 31 |
// e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 32 |
// |
| 33 |
// Please consider splitting the single license below into multiple licenses, |
| 34 |
// taking care not to lose any license_kind information, and overriding the |
| 35 |
// default license using the 'licenses: [...]' property on targets as needed. |
| 36 |
// |
| 37 |
// For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 38 |
// to attach the license to, and including a comment whether the files may be |
| 39 |
// used in the current project. |
| 40 |
// See: http://go/android-license-faq |
| 41 |
license { |
| 42 |
name: "frameworks_base_native_webview_plat_support_license", |
| 43 |
visibility: [":__subpackages__"], |
| 44 |
license_kinds: [ |
| 45 |
"SPDX-license-identifier-Apache-2.0", |
| 46 |
"SPDX-license-identifier-BSD", |
| 47 |
], |
| 48 |
license_text: [ |
| 49 |
"LICENSE", |
| 50 |
], |
| 51 |
} |
| 52 |
|
| 53 |
cc_library_shared { |
| 54 |
name: "libwebviewchromium_plat_support", |
| 55 |
|
| 56 |
srcs: [ |
| 57 |
"draw_functor.cpp", |
| 58 |
"draw_gl_functor.cpp", |
| 59 |
"functor_utils.cpp", |
| 60 |
"jni_entry_point.cpp", |
| 61 |
"graphics_utils.cpp", |
| 62 |
"graphic_buffer_impl.cpp", |
| 63 |
], |
| 64 |
|
| 65 |
header_libs: [ "libhwui_internal_headers" ], |
| 66 |
|
| 67 |
shared_libs: [ |
| 68 |
"libandroidfw", |
| 69 |
"libcutils", |
| 70 |
"libhwui", |
| 71 |
"liblog", |
| 72 |
"libnativehelper", |
| 73 |
"libui", |
| 74 |
"libutils", |
| 75 |
"libvulkan", |
| 76 |
], |
| 77 |
|
| 78 |
// To remove warnings from skia header files |
| 79 |
cflags: ["-Wno-unused-parameter"], |
| 80 |
} |