OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
9 | 9 |
10 """MB - the Meta-Build wrapper around GYP and GN | 10 """MB - the Meta-Build wrapper around GYP and GN |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 def main(args): | 42 def main(args): |
43 mbw = MetaBuildWrapper() | 43 mbw = MetaBuildWrapper() |
44 return mbw.Main(args) | 44 return mbw.Main(args) |
45 | 45 |
46 | 46 |
47 class MetaBuildWrapper(object): | 47 class MetaBuildWrapper(object): |
48 def __init__(self): | 48 def __init__(self): |
49 self.chromium_src_dir = CHROMIUM_SRC_DIR | 49 self.chromium_src_dir = CHROMIUM_SRC_DIR |
50 self.default_config = os.path.join(SCRIPT_DIR, 'mb_config.pyl') | 50 self.default_config = os.path.join(SCRIPT_DIR, 'mb_config.pyl') |
51 self.default_isolate_map = os.path.join(self.chromium_src_dir, 'testing', | 51 self.default_isolate_map = os.path.join(SCRIPT_DIR, 'gn_isolate_map.pyl') |
52 'buildbot', 'gn_isolate_map.pyl') | |
53 self.executable = sys.executable | 52 self.executable = sys.executable |
54 self.platform = sys.platform | 53 self.platform = sys.platform |
55 self.sep = os.sep | 54 self.sep = os.sep |
56 self.args = argparse.Namespace() | 55 self.args = argparse.Namespace() |
57 self.configs = {} | 56 self.configs = {} |
58 self.masters = {} | 57 self.masters = {} |
59 self.mixins = {} | 58 self.mixins = {} |
60 | 59 |
61 def Main(self, args): | 60 def Main(self, args): |
62 self.ParseArgs(args) | 61 self.ParseArgs(args) |
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 # Then check to see if the arg contains any metacharacters other than | 1537 # Then check to see if the arg contains any metacharacters other than |
1539 # double quotes; if it does, quote everything (including the double | 1538 # double quotes; if it does, quote everything (including the double |
1540 # quotes) for safety. | 1539 # quotes) for safety. |
1541 if any(a in UNSAFE_FOR_CMD for a in arg): | 1540 if any(a in UNSAFE_FOR_CMD for a in arg): |
1542 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1541 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
1543 return arg | 1542 return arg |
1544 | 1543 |
1545 | 1544 |
1546 if __name__ == '__main__': | 1545 if __name__ == '__main__': |
1547 sys.exit(main(sys.argv[1:])) | 1546 sys.exit(main(sys.argv[1:])) |
OLD | NEW |