8c80126987
Previously we were only generating used-by API-coverage for APEX modules.
This change adds support for APK-only modules such as NetworkStack and DocumentsUI.
Bug: b/216313756
Forrest Run: https://android-build.googleplex.com/builds/abtd/run/L10800000953846781
Test: TARGET_BUILD_VARIANT=userdebug PRODUCT=mainline_modules_x86 ./vendor/google/build/build_unbundled_coverage_mainline_module.sh -j16
Change-Id: Id17e4a55c2a52e9903632a654e778f8d54982dfc
Merged-In: Id17e4a55c2a52e9903632a654e778f8d54982dfc
(cherry picked from commit 56d75785bd
)
31 lines
1.3 KiB
Go
31 lines
1.3 KiB
Go
// Copyright 2021 Google Inc. All rights reserved.
|
|
//
|
|
// 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.
|
|
|
|
package apex
|
|
|
|
import "android/soong/android"
|
|
|
|
var PrepareForTestWithApexBuildComponents = android.GroupFixturePreparers(
|
|
android.FixtureRegisterWithContext(registerApexBuildComponents),
|
|
android.FixtureRegisterWithContext(registerApexKeyBuildComponents),
|
|
// Additional files needed in tests that disallow non-existent source files.
|
|
// This includes files that are needed by all, or at least most, instances of an apex module type.
|
|
android.MockFS{
|
|
// Needed by apex.
|
|
"system/core/rootdir/etc/public.libraries.android.txt": nil,
|
|
"build/soong/scripts/gen_ndk_backedby_apex.sh": nil,
|
|
// Needed by prebuilt_apex.
|
|
"build/soong/scripts/unpack-prebuilt-apex.sh": nil,
|
|
}.AddToFixture(),
|
|
)
|