Files
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
..
2020-01-16 12:19:49 -08:00
2020-04-06 18:48:22 +01:00
2019-10-04 14:00:36 -07:00
2020-02-25 07:02:33 +00:00
2019-01-23 18:05:18 +00:00
2019-07-17 11:15:09 -07:00
2019-07-17 11:15:09 -07:00
2019-10-26 20:35:13 +00:00
2019-10-18 15:14:15 -07:00