MCPcopy Index your code
hub / github.com/nodejs/node / GenCMake

Function GenCMake

deps/v8/tools/cppgc/gen_cmake.py:494–500  ·  view source on GitHub ↗
(main_gn, test_gn, outfile)

Source from the content-addressed store, hash-verified

492
493
494def GenCMake(main_gn, test_gn, outfile):
495 tree = ParseGNFile(main_gn)
496 tree.children.extend(ParseGNFile(test_gn).children)
497 builder = CMakeBuilder()
498 V8GNTransformer(builder, TARGETS.keys()).Traverse(tree)
499 result = FormatCMake(builder.GetResult())
500 SaveContents(result, outfile)
501
502
503def Main():

Callers 1

MainFunction · 0.85

Calls 9

GetResultMethod · 0.95
ParseGNFileFunction · 0.85
CMakeBuilderClass · 0.85
V8GNTransformerClass · 0.85
FormatCMakeFunction · 0.85
SaveContentsFunction · 0.85
TraverseMethod · 0.80
keysMethod · 0.65
extendMethod · 0.45

Tested by

no test coverage detected