Lines Matching full:gn

15 # A collection of utilities for extracting build rule information from GN
34 BUILDFLAGS_TARGET = '//gn:gen_buildflags'
36 TARGET_TOOLCHAIN = '//gn/standalone/toolchain:gcc_like_host'
37 HOST_TOOLCHAIN = '//gn/standalone/toolchain:gcc_like_host'
80 """Creates the JSON build description by running GN.
92 _tool_path('gn', system_buildtools) +
99 """Creates the JSON build description by running GN."""
101 _tool_path('gn', system_buildtools) +
108 """Prepares a GN out directory and loads the build description from it.
120 """Runs ninja to build a list of GN targets in the given out directory.
141 if filename.endswith('gn/standalone/sanitizers/ignorelist.txt'):
159 """Turn a GN output label (e.g., //some_dir/file.cc) into a path."""
165 """Strips the toolchain from a GN label.
167 Return a GN label (e.g //buildtools:protobuf(//gn/standalone/toolchain:
175 Turn a GN label into a target name involving the full path.
221 When we turn GN source sets into Soong & Bazel file groups, there is the risk
224 equivalent to GN's source_set). This class navigates the transitive
232 def __init__(self, gn: 'GnParser', target_name: str):
233 self.gn = gn
234 self.root = gn.get_target(target_name)
257 target = self.gn.get_target(target_name)
283 target = self.gn.get_target(source_set_name)
292 """A parser with some cleverness for GN json desc files
296 notion to GN's source_set. Conversely to Bazel's and Soong's filegroups,
297 GN source_sets expect that dependencies, cflags and other source_set
309 """Reperesents A GN target.
355 # Deps on //gn:xxx have this flag set to True. These dependencies
359 # placeholder target once we hit //gn:protoc or similar.
410 """Returns a Target object from the fully qualified GN target name.
428 # We should never have GN targets directly depend on buidtools. They
429 # should hop via //gn:xxx, so we can give generators an opportunity to
435 if gn_target_name.startswith('//gn'):
477 # the rest of 'sources' is considered inaccessible by gn. Consider
493 # generated_file targets only exist for GN builds: we can safely ignore
553 case or 'protozero' or 'ipc' or 'descriptor'; |proto_desc| is the GN