xref: /aosp_15_r20/external/chromium-webview/Android.bp (revision 9e17ed14104519c7cce715bcc5c8517388ecc139)
1*9e17ed14SAndroid Build Coastguard Worker//
2*9e17ed14SAndroid Build Coastguard Worker// Copyright (C) 2014 The Android Open Source Project
3*9e17ed14SAndroid Build Coastguard Worker//
4*9e17ed14SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*9e17ed14SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*9e17ed14SAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*9e17ed14SAndroid Build Coastguard Worker//
8*9e17ed14SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*9e17ed14SAndroid Build Coastguard Worker//
10*9e17ed14SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*9e17ed14SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*9e17ed14SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*9e17ed14SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*9e17ed14SAndroid Build Coastguard Worker// limitations under the License.
15*9e17ed14SAndroid Build Coastguard Worker//
16*9e17ed14SAndroid Build Coastguard Worker
17*9e17ed14SAndroid Build Coastguard Worker// Install the prebuilt webview apk.
18*9e17ed14SAndroid Build Coastguard Workerpackage {
19*9e17ed14SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_chromium-webview_license"],
20*9e17ed14SAndroid Build Coastguard Worker}
21*9e17ed14SAndroid Build Coastguard Worker
22*9e17ed14SAndroid Build Coastguard Worker// Added automatically by a large-scale-change
23*9e17ed14SAndroid Build Coastguard Worker// See: http://go/android-license-faq
24*9e17ed14SAndroid Build Coastguard Workerlicense {
25*9e17ed14SAndroid Build Coastguard Worker    name: "external_chromium-webview_license",
26*9e17ed14SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
27*9e17ed14SAndroid Build Coastguard Worker    license_kinds: [
28*9e17ed14SAndroid Build Coastguard Worker        "SPDX-license-identifier-Unicode-DFS",
29*9e17ed14SAndroid Build Coastguard Worker    ],
30*9e17ed14SAndroid Build Coastguard Worker    // large-scale-change unable to identify any license_text files
31*9e17ed14SAndroid Build Coastguard Worker}
32*9e17ed14SAndroid Build Coastguard Worker
33*9e17ed14SAndroid Build Coastguard Workersoong_config_module_type {
34*9e17ed14SAndroid Build Coastguard Worker    name: "webview_app_import",
35*9e17ed14SAndroid Build Coastguard Worker    module_type: "android_app_import",
36*9e17ed14SAndroid Build Coastguard Worker    config_namespace: "webview",
37*9e17ed14SAndroid Build Coastguard Worker    value_variables: [
38*9e17ed14SAndroid Build Coastguard Worker        "release_package_webview_version",
39*9e17ed14SAndroid Build Coastguard Worker    ],
40*9e17ed14SAndroid Build Coastguard Worker    properties: [
41*9e17ed14SAndroid Build Coastguard Worker        "arch.arm.apk",
42*9e17ed14SAndroid Build Coastguard Worker        "arch.arm64.apk",
43*9e17ed14SAndroid Build Coastguard Worker        "arch.x86.apk",
44*9e17ed14SAndroid Build Coastguard Worker        "arch.x86_64.apk",
45*9e17ed14SAndroid Build Coastguard Worker    ],
46*9e17ed14SAndroid Build Coastguard Worker}
47*9e17ed14SAndroid Build Coastguard Worker
48*9e17ed14SAndroid Build Coastguard Workerwebview_app_import {
49*9e17ed14SAndroid Build Coastguard Worker    name: "webview",
50*9e17ed14SAndroid Build Coastguard Worker    product_specific: true,
51*9e17ed14SAndroid Build Coastguard Worker    default_dev_cert: true,
52*9e17ed14SAndroid Build Coastguard Worker    required: [
53*9e17ed14SAndroid Build Coastguard Worker        "libwebviewchromium_loader",
54*9e17ed14SAndroid Build Coastguard Worker        "libwebviewchromium_plat_support",
55*9e17ed14SAndroid Build Coastguard Worker    ],
56*9e17ed14SAndroid Build Coastguard Worker    soong_config_variables: {
57*9e17ed14SAndroid Build Coastguard Worker        release_package_webview_version: {
58*9e17ed14SAndroid Build Coastguard Worker            arch: {
59*9e17ed14SAndroid Build Coastguard Worker                arm: {
60*9e17ed14SAndroid Build Coastguard Worker                    apk: "%s/arm/webview.apk",
61*9e17ed14SAndroid Build Coastguard Worker                },
62*9e17ed14SAndroid Build Coastguard Worker                arm64: {
63*9e17ed14SAndroid Build Coastguard Worker                    apk: "%s/arm64/webview.apk",
64*9e17ed14SAndroid Build Coastguard Worker                },
65*9e17ed14SAndroid Build Coastguard Worker                x86: {
66*9e17ed14SAndroid Build Coastguard Worker                    apk: "%s/x86/webview.apk",
67*9e17ed14SAndroid Build Coastguard Worker                },
68*9e17ed14SAndroid Build Coastguard Worker                x86_64: {
69*9e17ed14SAndroid Build Coastguard Worker                    apk: "%s/x86_64/webview.apk",
70*9e17ed14SAndroid Build Coastguard Worker                },
71*9e17ed14SAndroid Build Coastguard Worker            },
72*9e17ed14SAndroid Build Coastguard Worker        },
73*9e17ed14SAndroid Build Coastguard Worker    },
74*9e17ed14SAndroid Build Coastguard Worker    optional_uses_libs: [
75*9e17ed14SAndroid Build Coastguard Worker        "androidx.window.extensions",
76*9e17ed14SAndroid Build Coastguard Worker        "android.ext.adservices",
77*9e17ed14SAndroid Build Coastguard Worker    ],
78*9e17ed14SAndroid Build Coastguard Worker}
79