Index: tools/build_command_buffer.py |
diff --git a/tools/build_command_buffer.py b/tools/build_command_buffer.py |
index 015cdaf23ec8a4ce91022a4bf89b1765e2f19427..0349419030f56664f508f9619383ed1a967e1132 100755 |
--- a/tools/build_command_buffer.py |
+++ b/tools/build_command_buffer.py |
@@ -130,6 +130,25 @@ def main(): |
error.cmd, chrome_src_dir)) |
try: |
+ subprocess.check_call([gclient, 'runhooks'], cwd=chrome_src_dir) |
+ except subprocess.CalledProcessError as error: |
+ sys.exit('Error (ret code: %s) calling "%s" in %s' % ( |
+ error.returncode, error.cmd, chrome_src_dir)) |
+ |
+ platform = 'linux64' |
+ if sys.platform == 'darwin': |
+ platform = 'mac' |
+ elif sys.platform == 'win32': |
+ platform = 'win' |
+ gn = os.path.join(chrome_src_dir, 'buildtools', platform, 'gn') |
jcgregorio
2016/08/02 14:47:49
Wouldn't that be gn.exe on Windows?
borenet
2016/08/02 15:11:56
Good catch. Fixed in https://codereview.chromium.o
|
+ try: |
+ subprocess.check_call([gn, 'gen', chrome_target_dir_rel], |
+ cwd=chrome_src_dir) |
+ except subprocess.CalledProcessError as error: |
+ sys.exit('Error (ret code: %s) calling "%s" in %s' % ( |
+ error.returncode, error.cmd, chrome_src_dir)) |
+ |
+ try: |
subprocess.check_call(['ninja'] + shlex.split(args.extra_ninja_args) + |
['-C', chrome_target_dir_rel, 'command_buffer_gles2'], |
cwd=chrome_src_dir) |