gn2bp: Add action attributes to arch
These arch dependent attributes are not used yet.
Test: ./update_results.sh
Change-Id: I871fcdb51a7fa48503430970721f019e90fda484
diff --git a/tools/gn2bp/gn_utils.py b/tools/gn2bp/gn_utils.py
index 576df25..27d9363 100644
--- a/tools/gn2bp/gn_utils.py
+++ b/tools/gn2bp/gn_utils.py
@@ -119,6 +119,12 @@
self.transitive_static_libs_deps = set()
self.source_set_deps = set()
+ # These are valid only for type == 'action'
+ self.inputs = set()
+ self.outputs = set()
+ self.args = []
+ self.script = ''
+ self.response_file_contents = ''
def __init__(self, name, type):
self.name = name # e.g. //src/ipc:ipc
@@ -242,7 +248,8 @@
if len(self.arch) == 0:
return
- for key in ('sources', 'cflags', 'defines', 'include_dirs', 'deps', 'source_set_deps'):
+ for key in ('sources', 'cflags', 'defines', 'include_dirs', 'deps', 'source_set_deps',
+ 'inputs', 'outputs', 'args', 'script', 'response_file_contents'):
self._finalize_attribute(key)