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

Function Main

deps/v8/tools/cppgc/gen_cmake.py:503–518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501
502
503def Main():
504 arg_parser = argparse.ArgumentParser(
505 description=
506 'Generate CMake from the main GN file for targets needed to build CppGC.'
507 )
508 arg_parser.add_argument('--out', help='output CMake filename', default='-')
509 arg_parser.add_argument('--main-gn',
510 help='main BUILD.gn input file',
511 default='BUILD.gn')
512 arg_parser.add_argument('--test-gn',
513 help='unittest BUILD.gn input file',
514 default='test/unittests/BUILD.gn')
515 args = arg_parser.parse_args()
516
517 GenCMake(args.main_gn, args.test_gn, args.out)
518 return 0
519
520
521if __name__ == '__main__':

Callers 1

gen_cmake.pyFile · 0.70

Calls 3

GenCMakeFunction · 0.85
add_argumentMethod · 0.45
parse_argsMethod · 0.45

Tested by

no test coverage detected