gn2bp: Remove code for gen_version_module
Which is not used in cronet
Test: ./update_results.sh
Change-Id: I2407997f51b6e89e960144c56d504fcf772d26ee
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 0466680..2a08530 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -555,21 +555,6 @@
return source_module
-def create_gen_version_module(blueprint, target, bp_module_name):
- module = Module('genrule', bp_module_name, gn_utils.GEN_VERSION_TARGET)
- script_path = gn_utils.label_to_path(target.script)
- module.genrule_headers.add(bp_module_name)
- module.tool_files.add(script_path)
- module.out.update(target.outputs)
- module.srcs.update(gn_utils.label_to_path(src) for src in target.inputs)
- module.cmd = ' '.join([
- 'python3 $(location %s)' % script_path, '--no_git',
- '--changelog=$(location CHANGELOG)', '--cpp_out=$(out)'
- ])
- blueprint.add_module(module)
- return module
-
-
def create_proto_group_modules(blueprint, gn, module_name, target_names):
# TODO(lalitm): today, we're only adding a Java lite module because that's
# the only one used in practice. In the future, if we need other target types
@@ -863,11 +848,7 @@
if module is None:
return None
elif target.type == 'action':
- if target.type == 'action' and \
- target.name == gn_utils.GEN_VERSION_TARGET:
- module = create_gen_version_module(blueprint, target, bp_module_name)
- else:
- module = create_action_module(blueprint, target)
+ module = create_action_module(blueprint, target)
elif target.type == 'action_foreach':
module = create_action_foreach_modules(blueprint, target)
elif target.type == 'copy':