13SCRIPT_DIR = os.path.dirname(sys.argv[0])
14DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR,
'..'))
15DART_DISABLE_BUILDFILES =
"DART_DISABLE_BUILDFILES"
19 return DART_DISABLE_BUILDFILES
in os.environ
23 process = subprocess.Popen(args, cwd=DART_ROOT)
25 return process.returncode
29 if not HOST_OS
in [
'linux',
'macos']:
33 os.path.join(DART_ROOT,
'tools',
'gn.py'),
42 gn_command.append(
'-v')
48 if HOST_OS !=
'linux':
52 os.path.join(DART_ROOT,
'tools',
'gn.py'),
59 gn_command.append(
'-v')
67 os.path.join(DART_ROOT,
'tools',
'gn.py'),
74 gn_command.append(
'-v')
91 parser = argparse.ArgumentParser(
92 description=
"A script to generate Dart's build files.")
97 help=
'Verbose output.',
101 return parser.parse_args(args)
112if __name__ ==
'__main__':
113 sys.exit(
main(sys.argv))
def RunAndroidGn(options)
def print(*args, **kwargs)
static SkString join(const CommandLineFlags::StringArray &)