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

Side by Side Diff: build/gyp_chromium

Issue 868673003: [WebView] Repack the .pak files for all the locales. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inline android_webview_locales_rename_paks.gypi Created 5 years, 10 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 | « android_webview/tools/webview_locales_rename_paks.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, 'android_webview', 'tools'))
30 sys.path.insert(1, os.path.join(chrome_src, 'build', 'android', 'gyp')) 31 sys.path.insert(1, os.path.join(chrome_src, 'build', 'android', 'gyp'))
31 sys.path.insert(1, os.path.join(chrome_src, 'tools')) 32 sys.path.insert(1, os.path.join(chrome_src, 'tools'))
32 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers')) 33 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'generate_shim_headers'))
33 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit')) 34 sys.path.insert(1, os.path.join(chrome_src, 'tools', 'grit'))
34 sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build')) 35 sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build'))
35 sys.path.insert(1, os.path.join(chrome_src, 'chromecast', 'tools', 'build')) 36 sys.path.insert(1, os.path.join(chrome_src, 'chromecast', 'tools', 'build'))
36 sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build')) 37 sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build'))
37 sys.path.insert(1, os.path.join(chrome_src, 'native_client_sdk', 'src', 38 sys.path.insert(1, os.path.join(chrome_src, 'native_client_sdk', 'src',
38 'build_tools')) 39 'build_tools'))
39 sys.path.insert(1, os.path.join(chrome_src, 'remoting', 'tools', 'build')) 40 sys.path.insert(1, os.path.join(chrome_src, 'remoting', 'tools', 'build'))
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 327
327 if not use_analyzer: 328 if not use_analyzer:
328 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() 329 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
329 if vs2013_runtime_dll_dirs: 330 if vs2013_runtime_dll_dirs:
330 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs 331 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
331 vs_toolchain.CopyVsRuntimeDlls( 332 vs_toolchain.CopyVsRuntimeDlls(
332 os.path.join(chrome_src, GetOutputDirectory()), 333 os.path.join(chrome_src, GetOutputDirectory()),
333 (x86_runtime, x64_runtime)) 334 (x86_runtime, x64_runtime))
334 335
335 sys.exit(gyp_rc) 336 sys.exit(gyp_rc)
OLDNEW
« no previous file with comments | « android_webview/tools/webview_locales_rename_paks.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698