widevine currenty uses `use_source_config_var` and product variables to ensure that products gets the correct selection of source or prebuilts of widevine apex. `use_source_config_var` is being deprecated from Soong to unfiy the mechanisms for source vs prebuilt selection. This CL transitions widevine to a different mechanism `prefer` for prebuilt selection to aid the deprecation. Test: lunch cf_x86_64_phone-trunk_staging-userdebug; m nothing; aninja -t path droid vendor/widevine/libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks; // no path exists, i.e. uses source Test: lunch osprey-trunk_staging-userdebug; m nothing; aninja -t path droid vendor/widevine/libwvdrmengine/apex/prebuilt/com.google.android.widevine.nonupdatable.apks; // path exists; i.e. uses prebuilts Bug: 332379718 Change-Id: I78800aee49f1de83ea2ce8160923362871806d87
79 lines
2.4 KiB
Plaintext
79 lines
2.4 KiB
Plaintext
// Copyright (C) 2023 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
|
|
// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
|
|
// DEPENDING ON IT IN YOUR PROJECT. ***
|
|
package {
|
|
default_team: "trendy_team_media_framework_drm",
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "vendor_widevine_license"
|
|
// to get the below license kinds:
|
|
// legacy_proprietary (by exception only)
|
|
default_applicable_licenses: ["vendor_widevine_license"],
|
|
}
|
|
|
|
soong_config_module_type {
|
|
name: "widevine_apex_set",
|
|
module_type: "apex_set",
|
|
config_namespace: "widevine",
|
|
bool_variables: ["source_build"],
|
|
properties: ["prefer"],
|
|
}
|
|
|
|
widevine_apex_set {
|
|
name: "com.google.android.widevine.nonupdatable",
|
|
apex_name: "com.google.android.widevine",
|
|
owner: "google",
|
|
set: "com.google.android.widevine.nonupdatable.apks",
|
|
vendor: true,
|
|
prefer: true,
|
|
soong_config_variables: {
|
|
source_build: {
|
|
prefer: false,
|
|
},
|
|
},
|
|
}
|
|
|
|
widevine_apex_set {
|
|
name: "com.google.android.widevine.lazy",
|
|
apex_name: "com.google.android.widevine.lazy",
|
|
owner: "google",
|
|
set: "com.google.android.widevine.lazy.apks",
|
|
vendor: true,
|
|
prefer: true,
|
|
soong_config_variables: {
|
|
source_build: {
|
|
prefer: false,
|
|
},
|
|
},
|
|
}
|
|
|
|
apex_set {
|
|
name: "com.google.android.widevine-wv_341113000",
|
|
apex_name: "com.google.android.widevine",
|
|
owner: "google",
|
|
set: "com.google.android.widevine.nonupdatable-wv_341113000.apks",
|
|
vendor: true,
|
|
}
|
|
|
|
apex_set {
|
|
name: "com.google.android.widevine-11546836",
|
|
apex_name: "com.google.android.widevine",
|
|
owner: "google",
|
|
set: "dev/com.google.android.widevine.nonupdatable-11546836.apks",
|
|
vendor: true,
|
|
}
|