Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #!/usr/bin/python |
michael@0 | 2 | |
michael@0 | 3 | # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. |
michael@0 | 4 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 5 | # found in the LICENSE file. |
michael@0 | 6 | |
michael@0 | 7 | # This script is wrapper for ANGLE that adds some support for how GYP |
michael@0 | 8 | # is invoked by ANGLE beyond what can be done in the gclient hooks. |
michael@0 | 9 | |
michael@0 | 10 | import os |
michael@0 | 11 | import sys |
michael@0 | 12 | |
michael@0 | 13 | script_dir = os.path.dirname(__file__) |
michael@0 | 14 | angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir)) |
michael@0 | 15 | |
michael@0 | 16 | sys.path.append(os.path.join(angle_dir, 'third_party', 'gyp', 'pylib')) |
michael@0 | 17 | import gyp |
michael@0 | 18 | |
michael@0 | 19 | if __name__ == '__main__': |
michael@0 | 20 | args = sys.argv[1:] |
michael@0 | 21 | |
michael@0 | 22 | print 'Updating projects from gyp files...' |
michael@0 | 23 | sys.stdout.flush() |
michael@0 | 24 | |
michael@0 | 25 | # Set the depth to get the top-level Makefile generated into the |
michael@0 | 26 | # correct directory. This only has an effect on Linux. |
michael@0 | 27 | args.append('--depth'); |
michael@0 | 28 | args.append('./trunk'); |
michael@0 | 29 | # Add common.gypi to the include path. |
michael@0 | 30 | args.append('-I' + os.path.join(script_dir, 'common.gypi')) |
michael@0 | 31 | # Add all.gyp as the main gyp file to be generated. |
michael@0 | 32 | args.append(os.path.join(script_dir, 'all.gyp')) |
michael@0 | 33 | sys.exit(gyp.main(args)) |