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

Side by Side Diff: SConstruct

Issue 1613004: Issue a warning if naclsdk_mode=manual is specified with ARM. (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 10 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/llvm/llvm-fake.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright 2008 The Native Client Authors. All rights reserved. 2 # Copyright 2008 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can 3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file. 4 # be found in the LICENSE file.
5 5
6 import atexit 6 import atexit
7 import glob 7 import glob
8 import os 8 import os
9 import stat 9 import stat
10 import subprocess 10 import subprocess
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 stdout=subprocess.PIPE, stderr=subprocess.PIPE) 294 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
295 (stdout, stderr) = p.communicate() 295 (stdout, stderr) = p.communicate()
296 arm_env = eval(stdout) 296 arm_env = eval(stdout)
297 for k in arm_env: 297 for k in arm_env:
298 if k.startswith('NACL_') or k.startswith('ARM_'): 298 if k.startswith('NACL_') or k.startswith('ARM_'):
299 os.environ[k] = arm_env[k] 299 os.environ[k] = arm_env[k]
300 300
301 301
302 # Source setup bash scripts and glean the settings. 302 # Source setup bash scripts and glean the settings.
303 if (pre_base_env['TARGET_ARCHITECTURE'] == 'arm' and 303 if (pre_base_env['TARGET_ARCHITECTURE'] == 'arm' and
304 not ARGUMENTS.get('built_elsewhere') and 304 not ARGUMENTS.get('built_elsewhere')):
305 ARGUMENTS.get('naclsdk_mode') != 'manual'): 305 if ARGUMENTS.get('naclsdk_mode') != 'manual':
306 FixupArmEnvironment() 306 FixupArmEnvironment()
307 307 else:
308 print >>sys.stderr, (
309 "You must not specify naclsdk_mode=manual for ARM (any more).")
310 sys.exit(1);
308 311
309 # ---------------------------------------------------------- 312 # ----------------------------------------------------------
310 # PLUGIN PREREQUISITES 313 # PLUGIN PREREQUISITES
311 # ---------------------------------------------------------- 314 # ----------------------------------------------------------
312 315
313 PREREQUISITES = pre_base_env.Alias('plugin_prerequisites', []) 316 PREREQUISITES = pre_base_env.Alias('plugin_prerequisites', [])
314 317
315 318
316 def GetPluginPrerequsites(): 319 def GetPluginPrerequsites():
317 # the first source is the banner. drop it 320 # the first source is the banner. drop it
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 # Generate a solution, defer to the end. 1599 # Generate a solution, defer to the end.
1597 solution_env = base_env.Clone(tools = ['visual_studio_solution']) 1600 solution_env = base_env.Clone(tools = ['visual_studio_solution'])
1598 solution = solution_env.Solution( 1601 solution = solution_env.Solution(
1599 'nacl', environment_list, 1602 'nacl', environment_list,
1600 exclude_pattern = '.*third_party.*', 1603 exclude_pattern = '.*third_party.*',
1601 extra_build_targets = { 1604 extra_build_targets = {
1602 'Firefox': 'c:/Program Files/Mozilla FireFox/firefox.exe', 1605 'Firefox': 'c:/Program Files/Mozilla FireFox/firefox.exe',
1603 }, 1606 },
1604 ) 1607 )
1605 solution_env.Alias('solution', solution) 1608 solution_env.Alias('solution', solution)
OLDNEW
« no previous file with comments | « no previous file | tools/llvm/llvm-fake.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698