diff options
author | borenet <borenet@chromium.org> | 2016-08-02 07:02:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-02 07:02:52 -0700 |
commit | b6aafe66a0f59839bcacdac0b9037136e48f85e9 (patch) | |
tree | 6d4bbf15f7d98f863d63c8a6e5f2c90155596083 /tools/build_command_buffer.py | |
parent | ed696276fd5b7cd995e7e75d6c579f16d28bd36a (diff) |
Fix Chrome build for RecreateSKPs and CommandBuffer bots for GYP->GN
BUG=skia:5597
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2199273002
Review-Url: https://codereview.chromium.org/2199273002
Diffstat (limited to 'tools/build_command_buffer.py')
-rwxr-xr-x | tools/build_command_buffer.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/build_command_buffer.py b/tools/build_command_buffer.py index 015cdaf23e..0349419030 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') + 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) |