gn2bp: add srcs support to Target
Test: //components/cronet/android:cronet Change-Id: I51f1258d741485cc85d5d7d7bbc5ea6f308b6c5a
This commit is contained in:
@@ -199,6 +199,7 @@ class Target(object):
|
|||||||
|
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
self.name = name
|
self.name = name
|
||||||
|
self.srcs = set()
|
||||||
self.shared_libs = set()
|
self.shared_libs = set()
|
||||||
self.static_libs = set()
|
self.static_libs = set()
|
||||||
self.whole_static_libs = set()
|
self.whole_static_libs = set()
|
||||||
@@ -209,6 +210,7 @@ class Target(object):
|
|||||||
|
|
||||||
def to_string(self, output):
|
def to_string(self, output):
|
||||||
nested_out = []
|
nested_out = []
|
||||||
|
self._output_field(nested_out, 'srcs')
|
||||||
self._output_field(nested_out, 'shared_libs')
|
self._output_field(nested_out, 'shared_libs')
|
||||||
self._output_field(nested_out, 'static_libs')
|
self._output_field(nested_out, 'static_libs')
|
||||||
self._output_field(nested_out, 'whole_static_libs')
|
self._output_field(nested_out, 'whole_static_libs')
|
||||||
|
|||||||
Reference in New Issue
Block a user