Support building trace_to_text in the Android tree Bug: 73611302 Test: manual Change-Id: I93934ca6a2af050700f34dbb73139d01b570c47d
diff --git a/tools/gen_android_bp b/tools/gen_android_bp index 728ed23..f71e001 100755 --- a/tools/gen_android_bp +++ b/tools/gen_android_bp
@@ -43,6 +43,7 @@ '//:perfetto', '//:traced', '//:traced_probes', + '//:trace_to_text', ] # Defines a custom init_rc argument to be applied to the corresponding output @@ -55,6 +56,10 @@ '//:perfetto_trace_protos', ] +target_host_only = [ + '//:trace_to_text', +] + # Arguments for the GN output directory. gn_args = 'target_os="android" target_cpu="arm" is_debug=false build_with_android=true' @@ -470,7 +475,7 @@ """ target = desc[target_name] if target['type'] == 'executable': - if 'host' in target['toolchain']: + if 'host' in target['toolchain'] or target_name in target_host_only: module_type = 'cc_binary_host' elif target.get('testonly'): module_type = 'cc_test'