Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: infra/bots/recipe_modules/flavor/pdfium_flavor.py

Issue 2317013002: Run install-sysroot script before 'gn gen' on PDFium bot (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import re 5 import re
6 6
7 import default_flavor 7 import default_flavor
8 8
9 9
10 """PDFium flavor utils, used for building PDFium with Skia.""" 10 """PDFium flavor utils, used for building PDFium with Skia."""
11 11
12 12
13 class PDFiumFlavorUtils(default_flavor.DefaultFlavorUtils): 13 class PDFiumFlavorUtils(default_flavor.DefaultFlavorUtils):
14 14
15 def compile(self, target, **kwargs): 15 def compile(self, target, **kwargs):
16 """Build PDFium with Skia.""" 16 """Build PDFium with Skia."""
17 pdfium_dir = self.m.vars.checkout_root.join('pdfium') 17 pdfium_dir = self.m.vars.checkout_root.join('pdfium')
18 18
19 # Runhook to generate the gn binary in buildtools. 19 # Runhook to generate the gn binary in buildtools.
20 self.m.run( 20 self.m.run(
21 self.m.step, 21 self.m.step,
22 'runhook', 22 'runhook',
23 cmd=['gclient', 'runhook', 'gn_linux64'], 23 cmd=['gclient', 'runhook', 'gn_linux64'],
24 cwd=pdfium_dir, 24 cwd=pdfium_dir,
25 **kwargs) 25 **kwargs)
26 26
27 # Install the sysroot.
28 self.m.run(
29 self.m.step,
30 'sysroot',
31 cmd=['python', 'build/linux/sysroot_scripts/install-sysroot.py',
32 '--arch=amd64'],
33 cwd=pdfium_dir)
34
27 # Setup gn args. 35 # Setup gn args.
28 gn_args = [ 36 gn_args = [
29 'pdf_use_skia=true', 37 'pdf_use_skia=true',
30 'pdf_is_standalone=true', 38 'pdf_is_standalone=true',
31 'clang_use_chrome_plugins=false', 39 'clang_use_chrome_plugins=false',
32 'is_component_build=false', 40 'is_component_build=false',
33 'is_debug=false', 41 'is_debug=false',
34 ] 42 ]
35 43
36 44
(...skipping 30 matching lines...) Expand all
67 cwd=pdfium_dir) 75 cwd=pdfium_dir)
68 76
69 # Build PDFium. 77 # Build PDFium.
70 self.m.run( 78 self.m.run(
71 self.m.step, 79 self.m.step,
72 'build_pdfium', 80 'build_pdfium',
73 cmd=['ninja', '-C', 'out/skia', '-j100'], 81 cmd=['ninja', '-C', 'out/skia', '-j100'],
74 cwd=pdfium_dir, 82 cwd=pdfium_dir,
75 env=env, 83 env=env,
76 **kwargs) 84 **kwargs)
OLDNEW
« no previous file with comments | « no previous file | infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698