OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # This script is wrapper for Chromium that adds some support for how GYP | 7 # This script is wrapper for Chromium that adds some support for how GYP |
8 # is invoked by Chromium beyond what can be done in the gclient hooks. | 8 # is invoked by Chromium beyond what can be done in the gclient hooks. |
9 | 9 |
10 import glob | 10 import glob |
11 import gyp_environment | 11 import gyp_environment |
12 import os | 12 import os |
13 import re | 13 import re |
14 import shlex | 14 import shlex |
15 import subprocess | 15 import subprocess |
16 import string | 16 import string |
17 import sys | 17 import sys |
18 import vs_toolchain | 18 import vs_toolchain |
19 | 19 |
20 script_dir = os.path.dirname(os.path.realpath(__file__)) | 20 script_dir = os.path.dirname(os.path.realpath(__file__)) |
21 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir)) | 21 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir)) |
22 | 22 |
23 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) | 23 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) |
24 import gyp | 24 import gyp |
25 | 25 |
26 # Assume this file is in a one-level-deep subdirectory of the source root. | 26 # Assume this file is in a one-level-deep subdirectory of the source root. |
27 SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 27 SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
28 | 28 |
29 # Add paths so that pymod_do_main(...) can import files. | 29 # Add paths so that pymod_do_main(...) can import files. |
| 30 sys.path.insert(1, os.path.join(chrome_src, 'build', 'android', 'gyp')) |
30 sys.path.insert(1, os.path.join(chrome_src, 'tools')) | 31 sys.path.insert(1, os.path.join(chrome_src, 'tools')) |
31 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers')) | 32 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers')) |
32 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit')) | 33 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit')) |
33 sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build')) | 34 sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build')) |
34 sys.path.insert(1, os.path.join(chrome_src, 'chromecast', 'tools', 'build')) | 35 sys.path.insert(1, os.path.join(chrome_src, 'chromecast', 'tools', 'build')) |
35 sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build')) | 36 sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build')) |
36 sys.path.insert(1, os.path.join(chrome_src, 'native_client_sdk', 'src', | 37 sys.path.insert(1, os.path.join(chrome_src, 'native_client_sdk', 'src', |
37 'build_tools')) | 38 'build_tools')) |
38 sys.path.insert(1, os.path.join(chrome_src, 'remoting', 'tools', 'build')) | 39 sys.path.insert(1, os.path.join(chrome_src, 'remoting', 'tools', 'build')) |
39 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'liblouis')) | 40 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'liblouis')) |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 313 |
313 if not use_analyzer: | 314 if not use_analyzer: |
314 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() | 315 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() |
315 if vs2013_runtime_dll_dirs: | 316 if vs2013_runtime_dll_dirs: |
316 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs | 317 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs |
317 vs_toolchain.CopyVsRuntimeDlls( | 318 vs_toolchain.CopyVsRuntimeDlls( |
318 os.path.join(chrome_src, GetOutputDirectory()), | 319 os.path.join(chrome_src, GetOutputDirectory()), |
319 (x86_runtime, x64_runtime)) | 320 (x86_runtime, x64_runtime)) |
320 | 321 |
321 sys.exit(gyp_rc) | 322 sys.exit(gyp_rc) |
OLD | NEW |