Lines Matching +full:ninja +full:- +full:build

3 # Use of this source code is governed by a BSD-style license that can be
7 Use this script to build libv8_monolith.a as dependency for Node.js
10 Usage: build_gn.py <Debug/Release> <v8-path> <build-path> [<build-flags>]...
12 Build flags are passed either as "strings" or numeric value. True/false
74 args = [gn, "gen", options.build_path, "-q", "--args=" + flattened_args]
77 def Build(options): function
79 ninja = os.path.join(depot_tools, "ninja")
81 # Required because there is an extension-less file called "ninja".
82 ninja += ".exe"
83 args = [ninja, "-C", options.build_path, BUILD_TARGET]
85 args += ["-l" + options.max_load]
87 args += ["-j" + options.max_jobs]
91 args += ["-j500"]
96 description="Build %s with GN" % BUILD_TARGET)
97 parser.add_argument("--mode", help="Build mode (Release/Debug)")
98 parser.add_argument("--v8_path", help="Path to V8", required=True)
99 parser.add_argument("--build_path", help="Path to build result",
101 parser.add_argument("--flag", help="Translate GYP flag to GN",
103 parser.add_argument("--host_os", help="Current operating system")
104 parser.add_argument("--bundled-win-toolchain",
106 parser.add_argument("--bundled-win-toolchain-root",
108 parser.add_argument("--depot-tools", help="Absolute path to depot_tools")
109 parser.add_argument("--extra-gn-args", help="Additional GN args")
110 parser.add_argument("--build", help="Run ninja as opposed to gn gen.",
112 parser.add_argument("--max-jobs", help="ninja's -j parameter")
113 parser.add_argument("--max-load", help="ninja's -l parameter")
118 if not options.build:
130 # Build can result in running gn gen, so need to set environment variables
131 # for build as well as generate.
140 if not options.build:
143 Build(options)