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

Function get_gn_config

tools/generate_config_gypi.py:30–37  ·  view source on GitHub ↗
(out_dir)

Source from the content-addressed store, hash-verified

28 return bool_to_number(v == 'true')
29
30def get_gn_config(out_dir):
31 # Read args from GN configurations.
32 gn_args = subprocess.check_output(
33 [GN, 'args', '--list', '--short', '-C', out_dir])
34 config = dict(re.findall(GN_RE, gn_args.decode()))
35 # Get napi_build_version from Node, which is not part of GN args.
36 config['napi_build_version'] = getnapibuildversion.get_napi_version()
37 return config
38
39def get_v8_config(out_dir, node_gn_path):
40 with open(os.path.join(out_dir, 'v8_features.json')) as f:

Callers 1

mainFunction · 0.85

Calls 1

decodeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…