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

Side by Side Diff: lib/webports/util.py

Issue 1804293003: Add support for new pnacl native toolchain driver (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Fix according to Brad's comments Created 4 years, 7 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 | « docs/port_list.md ('k') | make_all.sh » ('j') | make_all.sh » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Native Client Authors. All rights reserved. 1 # Copyright 2014 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import fcntl 5 import fcntl
6 import hashlib 6 import hashlib
7 import os 7 import os
8 import shutil 8 import shutil
9 import subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 19 matching lines...) Expand all
30 # versions of the SDK use the one of the pepper_XX branches (or use 30 # versions of the SDK use the one of the pepper_XX branches (or use
31 # --skip-sdk-version-check). 31 # --skip-sdk-version-check).
32 MIN_SDK_VERSION = 49 32 MIN_SDK_VERSION = 49
33 33
34 arch_to_pkgarch = { 34 arch_to_pkgarch = {
35 'x86_64': 'x86-64', 35 'x86_64': 'x86-64',
36 'i686': 'i686', 36 'i686': 'i686',
37 'arm': 'arm', 37 'arm': 'arm',
38 'pnacl': 'pnacl', 38 'pnacl': 'pnacl',
39 'emscripten': 'emscripten', 39 'emscripten': 'emscripten',
40 'le32': 'le32'
40 } 41 }
41 42
42 # Inverse of arch_to_pkgarch 43 # Inverse of arch_to_pkgarch
43 pkgarch_to_arch = {v: k for k, v in arch_to_pkgarch.items()} 44 pkgarch_to_arch = {v: k for k, v in arch_to_pkgarch.items()}
44 45
45 LOG_ERROR = 0 46 LOG_ERROR = 0
46 LOG_WARN = 1 47 LOG_WARN = 1
47 LOG_INFO = 2 48 LOG_INFO = 2
48 LOG_VERBOSE = 3 49 LOG_VERBOSE = 3
49 LOG_TRACE = 4 50 LOG_TRACE = 4
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 482
482 class InstallLock(DirLock): 483 class InstallLock(DirLock):
483 """Lock used when installing/uninstalling package""" 484 """Lock used when installing/uninstalling package"""
484 485
485 def __init__(self, config): 486 def __init__(self, config):
486 root = get_install_root(config) 487 root = get_install_root(config)
487 super(InstallLock, self).__init__(root) 488 super(InstallLock, self).__init__(root)
488 489
489 490
490 check_stdout_for_color_support() 491 check_stdout_for_color_support()
OLDNEW
« no previous file with comments | « docs/port_list.md ('k') | make_all.sh » ('j') | make_all.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698