platform_build_soong/java
Jiyong Park 82484c0771 Additional fixes for java_sdk_library
This change fixes several problems found while re-defining some libs
using java_sdk_library module type.

1) A phony module whose name is the same as the java_sdk_library name is
defined. It is used to support installing the runtime library via
PRODUCT_PACKAGES (even when there is no dependency from other modules).

2) A bug that package names whose depth is >= 2 is ignored in
droiddoc.srcs_lib_whitelist_pkgs is fixed. A package name foo.bar.baz is
now converted to a path foo/bar/baz following the Java convention.

3) A make variable JAVA_SDK_LIBRARIES that is the list of java_sdk_library
module names is exported to make. This can be used to distinguish SDK
libraries from ordinary libs.

4) When running doclava, some framework sources in the 'android' package
and the same packages as the SDK library are automatically added to the
sources list. This is required for the case when API class is extending
from the framework class. In that case, doclava needs to know whether
the base class is hidde nor not. Since that visibility info is encoded
as @hide string in the comment, we need source files for the classes,
not the compiled ones. Also there are rare cases where part of SDK
library is implemented in the framework (e.g. org.apache.http.legacy).
In that case, we need framework source to make API stubs, though the
sources are not required to build the runtime library.

5) The stubs libs are disabled for PDK builds as well.

Bug: 77575606
Test: m -j

Change-Id: I360cf15fe5339e46644fb16d0dabe2548aa315f9
2018-04-24 09:47:50 +09:00
..
config Replace extract-srcjars.sh with zipsync tool 2018-03-15 16:42:43 -07:00
aapt2.go Add support for android_library modules 2018-04-16 15:24:47 -07:00
aar.go Remove product-specific flags from android_library modules 2018-04-19 15:28:21 -07:00
android_resources.go Add support for android_library modules 2018-04-16 15:24:47 -07:00
androidmk.go Reverse RRO dir paths when passing to Make 2018-04-17 10:53:54 -07:00
app.go Remove product-specific flags from android_library modules 2018-04-19 15:28:21 -07:00
app_builder.go Add support for android_library modules 2018-04-16 15:24:47 -07:00
app_test.go Fix aapt2 --min-sdk-version after finalized SDK 2018-04-18 12:39:25 -07:00
builder.go Add support for renamed kotlin stdlib. 2018-03-20 12:55:19 +00:00
dex.go Add EMMA_INSTRUMENT_STATIC support 2018-01-04 14:52:45 -08:00
droiddoc.go Additional fixes for java_sdk_library 2018-04-24 09:47:50 +09:00
gen.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
genrule.go Soong: add "java_genrule_host" 2018-04-13 16:37:22 -07:00
jacoco.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
jacoco_test.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
java.go Adding java_sdk_library 2018-04-19 08:57:30 +09:00
java_resources.go Add support for android_library modules 2018-04-16 15:24:47 -07:00
java_test.go Adding java_sdk_library 2018-04-19 08:57:30 +09:00
proto.go Consistently use Bool instead of proptools.Bool 2018-04-10 22:50:34 -07:00
sdk_library.go Additional fixes for java_sdk_library 2018-04-24 09:47:50 +09:00
system_modules.go Export system module library list to Make 2018-01-25 14:51:50 -08:00