OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |