Lines Matching full:options
42 def FindGn(options): argument
43 if options.host_os == "linux":
45 elif options.host_os == "mac":
47 elif options.host_os == "win":
51 return os.path.join(options.v8_path, "buildtools", os_path, "gn")
53 def GenerateBuildFiles(options): argument
54 gn = FindGn(options)
56 target_os = FindTargetOs(options.flag)
60 for flag in options.flag:
65 if options.mode == "Debug":
71 if options.extra_gn_args:
72 flattened_args += ' ' + options.extra_gn_args
74 args = [gn, "gen", options.build_path, "-q", "--args=" + flattened_args]
77 def Build(options): argument
78 depot_tools = node_common.EnsureDepotTools(options.v8_path, False)
83 args = [ninja, "-C", options.build_path, BUILD_TARGET]
84 if options.max_load:
85 args += ["-l" + options.max_load]
86 if options.max_jobs:
87 args += ["-j" + options.max_jobs]
89 with open(os.path.join(options.build_path, "args.gn")) as f:
114 options = parser.parse_args(args)
116 options.build_path = os.path.abspath(options.build_path)
118 if not options.build:
119 assert options.host_os
120 assert options.mode == "Debug" or options.mode == "Release"
122 options.v8_path = os.path.abspath(options.v8_path)
123 assert os.path.isdir(options.v8_path)
125 return options
129 options = ParseOptions(sys.argv[1:]) variable
132 if options.bundled_win_toolchain:
133 os.environ['DEPOT_TOOLS_WIN_TOOLCHAIN'] = options.bundled_win_toolchain
134 if options.bundled_win_toolchain_root:
136 options.bundled_win_toolchain_root)
137 if options.depot_tools:
139 options.depot_tools + os.path.pathsep + os.environ['PATH'])
140 if not options.build:
141 GenerateBuildFiles(options)
143 Build(options)