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

Side by Side Diff: native_client_sdk/src/build_tools/build_projects.py

Issue 664543003: Benchmark sample for SDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import multiprocessing 6 import multiprocessing
7 import optparse 7 import optparse
8 import os 8 import os
9 import posixpath 9 import posixpath
10 import sys 10 import sys
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 if landing_page: 171 if landing_page:
172 # Generate the landing page text file. 172 # Generate the landing page text file.
173 index_html = os.path.join(pepperdir, 'examples', 'index.html') 173 index_html = os.path.join(pepperdir, 'examples', 'index.html')
174 index_template = os.path.join(SDK_RESOURCE_DIR, 'index.html.template') 174 index_template = os.path.join(SDK_RESOURCE_DIR, 'index.html.template')
175 with open(index_html, 'w') as fh: 175 with open(index_html, 'w') as fh:
176 out = landing_page.GeneratePage(index_template) 176 out = landing_page.GeneratePage(index_template)
177 fh.write(out) 177 fh.write(out)
178 178
179 # Generate top Make for examples 179 # Generate top Make for examples
180 targets = ['api', 'demo', 'getting_started', 'tutorial'] 180 targets = ['api', 'benchmarks', 'demo', 'getting_started', 'tutorial']
181 targets = [x for x in targets if 'examples/'+x in project_tree] 181 targets = [x for x in targets if 'examples/'+x in project_tree]
182 branch_name = 'examples' 182 branch_name = 'examples'
183 generate_make.GenerateMasterMakefile(pepperdir, 183 generate_make.GenerateMasterMakefile(pepperdir,
184 os.path.join(pepperdir, branch_name), 184 os.path.join(pepperdir, branch_name),
185 targets, {}) 185 targets, {})
186 186
187 187
188 def BuildProjectsBranch(pepperdir, branch, deps, clean, config, args=None): 188 def BuildProjectsBranch(pepperdir, branch, deps, clean, config, args=None):
189 make_dir = os.path.join(pepperdir, branch) 189 make_dir = os.path.join(pepperdir, branch)
190 print "\nMake: " + make_dir 190 print "\nMake: " + make_dir
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 345
346 if __name__ == '__main__': 346 if __name__ == '__main__':
347 script_name = os.path.basename(sys.argv[0]) 347 script_name = os.path.basename(sys.argv[0])
348 try: 348 try:
349 sys.exit(main(sys.argv)) 349 sys.exit(main(sys.argv))
350 except parse_dsc.ValidationError as e: 350 except parse_dsc.ValidationError as e:
351 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) 351 buildbot_common.ErrorExit('%s: %s' % (script_name, e))
352 except KeyboardInterrupt: 352 except KeyboardInterrupt:
353 buildbot_common.ErrorExit('%s: interrupted' % script_name) 353 buildbot_common.ErrorExit('%s: interrupted' % script_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698