Update gen_bench.py to propagate license information.

Test: treehugger
Change-Id: Ia34fcb575575d7916632e0973d43b2bc0f510f15
This commit is contained in:
Elliott Hughes 2021-02-19 15:39:27 -08:00
parent 332065d57e
commit f5a97dc1e8
1 changed files with 1 additions and 0 deletions

View File

@ -328,6 +328,7 @@ def make_soong_benchmark(root: LoadedLibrary, defs: Definitions, out: Path) -> N
bp = open(out / 'Android.bp', 'w')
bp.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit\n')
bp.write(f'package {{ default_applicable_licenses: ["bionic_benchmarks_license"], }}\n')
bp.write(f'cc_defaults {{\n')
bp.write(f' name: "{g_benchmark_name}_all_libs",\n')
bp.write(f' runtime_libs: [\n')