1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/build/gyp_angle Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +#!/usr/bin/python 1.5 + 1.6 +# Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. 1.7 +# Use of this source code is governed by a BSD-style license that can be 1.8 +# found in the LICENSE file. 1.9 + 1.10 +# This script is wrapper for ANGLE that adds some support for how GYP 1.11 +# is invoked by ANGLE beyond what can be done in the gclient hooks. 1.12 + 1.13 +import os 1.14 +import sys 1.15 + 1.16 +script_dir = os.path.dirname(__file__) 1.17 +angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir)) 1.18 + 1.19 +sys.path.append(os.path.join(angle_dir, 'third_party', 'gyp', 'pylib')) 1.20 +import gyp 1.21 + 1.22 +if __name__ == '__main__': 1.23 + args = sys.argv[1:] 1.24 + 1.25 + print 'Updating projects from gyp files...' 1.26 + sys.stdout.flush() 1.27 + 1.28 + # Set the depth to get the top-level Makefile generated into the 1.29 + # correct directory. This only has an effect on Linux. 1.30 + args.append('--depth'); 1.31 + args.append('./trunk'); 1.32 + # Add common.gypi to the include path. 1.33 + args.append('-I' + os.path.join(script_dir, 'common.gypi')) 1.34 + # Add all.gyp as the main gyp file to be generated. 1.35 + args.append(os.path.join(script_dir, 'all.gyp')) 1.36 + sys.exit(gyp.main(args))