summaryrefslogtreecommitdiffstats
path: root/python/mozbuild/mozbuild/generated_sources.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mozbuild/mozbuild/generated_sources.py')
-rw-r--r--python/mozbuild/mozbuild/generated_sources.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/generated_sources.py b/python/mozbuild/mozbuild/generated_sources.py
index e22e71e5f6..81b6f4d6d8 100644
--- a/python/mozbuild/mozbuild/generated_sources.py
+++ b/python/mozbuild/mozbuild/generated_sources.py
@@ -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():