Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e7b7f083 authored by Paul Duffin's avatar Paul Duffin Committed by Android Build Coastguard Worker
Browse files

java_sdk_library_import: Copy all prebuilt properties to child modules

Previously, only the prefer property was copied from the
java_sdk_library_import module to its child modules which meant that if
the use_source_config_var property was used to control the prefer
property that the child modules would never be used. That can cause
build breakages when building against prebuilts as some parts of the
build will use prebuilt files from java_sdk_library_import and some
will use source files from the corresponding java_sdk_library.

This change copies the use_source_config_var property too.

It also adds tests to verify that dependencies on child modules of a
java_sdk_library use the prebuilt child modules of the corresponding
java_sdk_library_import. That revealed a bug with the handling of stub
sources where the prefer property was set after creating the module
which has also been fixed.

Bug: 249192297
Test: m nothing
      # Cherry pick into branch broken by previous behavior and make
      # sure that it fixes it.
(cherry picked from commit on android-review.googlesource.com host: bf4de041)
(cherry picked from commit 8ab8056a)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6fa44c197335a8bea4f96cce3296f5c92d8dd7e7)
Merged-In: I5719c257f8457bcb2238bc7965215512a20f1095
Change-Id: I5719c257f8457bcb2238bc7965215512a20f1095
parent 83505fac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment