gn2bp: Convert genrules to cc_genrules

* This change doesn't effectively use the `CC_ARCH` environment variable. Just a change of variable name.
* cc_genrules are compiled so they need host_supported/device_supported tags.

Test: m cronet_aml_components_cronet_android_cronet
Change-Id: Ie55e5e0fb60b444817bc13c967e89f35c4e8badf
This commit is contained in:
Mohannad Farrag
2022-11-28 12:27:26 +00:00
parent afedfb18dd
commit 1de6cb10d3
3 changed files with 308 additions and 276 deletions

View File

@@ -365,7 +365,7 @@ class GnParser(object):
target.update(dep, arch) # Bubble up groups's cflags/ldflags etc.
elif dep.type in ['action', 'action_foreach', 'copy']:
if proto_target_type is None:
target.deps.add(dep.name)
target.arch[arch].deps.add(dep.name)
elif dep.type in LINKER_UNIT_TYPES:
target.arch[arch].deps.add(dep.name)
elif dep.type == 'java_group':