Bug 1884899 - Include AIDL-generated files into generated-files.tar.gz. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D204586
This commit is contained in:
Tooru Fujisawa 2024-03-19 02:05:13 +00:00
parent d1cccd9945
commit 5253445b50

View File

@ -58,6 +58,18 @@ def get_generated_sources():
for p, f in finder:
if p.endswith(GENERATED_SOURCE_EXTS):
yield mozpath.join(base, p), f
# Next, return source files that were generated by AIDL.
if buildconfig.substs.get("MOZ_WIDGET_TOOLKIT") == "android":
base = "gradle/build/mobile/android/geckoview/generated/aidl_source_output_dir"
finder = FileFinder(mozpath.join(buildconfig.topobjdir, base))
found = False
for p, f in finder.find("**/*.java"):
found = True
yield mozpath.join(base, p), f
if not found:
raise Exception(
"No AIDL-generated files are found. Maybe the output directory has changed?"
)
def get_s3_region_and_bucket():