platform_build_soong/java
Paul Duffin 3ae2951296 Allow droidstubs to not generate any stubs
Needed to optimize the handling of the module_lib API surface which
currently has to be generated with two separate droidstubs instances,
one to generate the stubs and another to generate the .txt file. This
allows the module generating the .txt file to avoid also wasting time
generating stubs that are not used.

This change:
* Adds a generate_stubs property that defaults to true to allow the
  behavior to be customized on a per module basis.
* Uses either the stubs srcjar or the api .txt file as the OutputFile
  for the AndroidMkEntries to ensure that they get written out properly.
* Rearranges the code for generating stubs to make it easier to
  turn it off.

Bug: 146727827
Test: m droid
      Check output dir of framework-sdkextensions-api-module_libs_api
	  to make sure it does not contain any sources or srcjars.
Change-Id: Ib8025019f8a7a8cf5fa8765d76b5ad470af20006
2020-04-08 18:50:37 +01:00
..
config Update ike.jar's name in code coverage configuration 2020-02-25 07:43:43 +00:00
aapt2.go Add rules to handle asset resources. 2020-01-16 12:19:49 -08:00
aar.go Merge "Allow for setting a logging_parent for an Android App." 2020-02-18 22:57:31 +00:00
android_manifest.go Always use "${codename}.${sha}" if UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true 2020-03-04 22:05:11 +00:00
android_resources.go Separate device and product overlays 2019-03-21 11:25:46 +00:00
androidmk.go Allow droidstubs to not generate any stubs 2020-04-08 18:50:37 +01:00
androidmk_test.go Add a Tag field to dist to dist a tagged output 2020-03-31 09:55:49 +01:00
app.go Merge "Revert "Add sdk mutator for native modules"" 2020-04-07 04:25:34 +00:00
app_builder.go [soong] new field in Android.bp to request APK signing V4 2020-04-04 12:37:45 -07:00
app_test.go Merge "Revert "Add sdk mutator for native modules"" 2020-04-07 04:25:34 +00:00
builder.go Disable goma for javac actions in Soong 2020-03-05 20:46:15 +00:00
device_host_converter.go jacoco correctly gathers info from APK-in-APEX 2020-01-08 14:49:31 +09:00
device_host_converter_test.go Add method to determine variations from a Target 2019-10-16 14:52:30 -07:00
dex.go Merge "Add support for experimentally enabling RBE support on specific rules." 2020-01-28 19:49:05 +00:00
dexpreopt.go Adjust embedded dex locations in host boot image. 2020-04-01 12:06:56 +01:00
dexpreopt_bootjars.go Relax boot image check to allow platform Jacoco variant in a coverage build. 2020-04-08 15:11:20 +01:00
dexpreopt_bootjars_test.go Forbid generating boot image files for jars in updatable modules. 2020-04-07 17:09:59 +01:00
dexpreopt_config.go Fix dex-location for host. 2020-04-06 18:48:22 +01:00
dexpreopt_test.go Add a rule about platform_apis 2019-07-29 20:48:30 +09:00
droiddoc.go Allow droidstubs to not generate any stubs 2020-04-08 18:50:37 +01:00
gen.go Shard aidl compiles into srcjars 2019-10-04 14:00:36 -07:00
genrule.go Dedup java genrule module type registration 2019-12-19 19:19:40 +00:00
hiddenapi.go Merge changes Ibaf383c4,I2b1c0736 2020-02-25 07:02:33 +00:00
hiddenapi_singleton.go Use modular removed-dex.txt files for greylisting. 2020-03-30 17:25:13 +01:00
jacoco.go Tune JVM, print full diagnostics on crash. 2019-06-11 13:30:13 -07:00
jacoco_test.go
java.go Stop requiring apex_available on java_library members of sdks 2020-04-08 08:40:44 +01:00
java_resources.go Track sources for srcjars across modules 2019-05-06 14:22:26 -07:00
java_test.go add aidl.export_include_dirs to java_import module type 2020-03-24 16:44:11 +09:00
jdeps.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
jdeps_test.go jarjar_rules: accept file-group 2019-01-23 18:05:18 +00:00
kotlin.go Add support for experimentally enabling RBE support on specific rules. 2020-01-28 12:42:47 -05:00
kotlin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
OWNERS Add ART folks to owner of dexpreopt related file. 2019-04-30 15:33:49 +01:00
platform_compat_config.go Add support for compat config in APEX. 2020-02-05 13:33:50 +00:00
plugin.go Replace annotation_processors with plugins 2019-01-23 20:17:51 +00:00
plugin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
prebuilt_apis.go Dedup prebuilt apis module type/mutator registration 2019-12-19 19:19:40 +00:00
proto.go Default to compiling lite protos 2019-10-26 20:35:13 +00:00
robolectric.go AndroidMkEntries() returns multiple AndroidMkEntries structs 2019-12-11 17:25:27 +09:00
sdk.go Make system_server stubs consistent with other stubs 2020-03-25 14:18:02 +00:00
sdk_library.go Parameterize scopes with additional droidstubs args 2020-04-07 18:59:12 +01:00
sdk_test.go Make system_server stubs consistent with other stubs 2020-03-25 14:18:02 +00:00
support_libraries.go Allow other module types in androidx 2019-07-22 13:18:48 -07:00
sysprop.go Create public stub for platform's sysprop_library 2019-12-19 09:35:23 +09:00
system_modules.go Remove old SdkMemberType API for creating snapshot modules 2020-03-23 08:48:03 +00:00
testing.go Merge "Make system_server stubs consistent with other stubs" 2020-03-25 14:18:32 +00:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00