summaryrefslogtreecommitdiff
path: root/build/gyp_angle
diff options
context:
space:
mode:
Diffstat (limited to 'build/gyp_angle')
-rw-r--r--build/gyp_angle33
1 files changed, 33 insertions, 0 deletions
diff --git a/build/gyp_angle b/build/gyp_angle
new file mode 100644
index 00000000..2aa38a52
--- /dev/null
+++ b/build/gyp_angle
@@ -0,0 +1,33 @@
+#!/usr/bin/python
+
+# Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This script is wrapper for ANGLE that adds some support for how GYP
+# is invoked by ANGLE beyond what can be done in the gclient hooks.
+
+import os
+import sys
+
+script_dir = os.path.dirname(__file__)
+angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir))
+
+sys.path.append(os.path.join(angle_dir, 'third_party', 'gyp', 'pylib'))
+import gyp
+
+if __name__ == '__main__':
+ args = sys.argv[1:]
+
+ print 'Updating projects from gyp files...'
+ sys.stdout.flush()
+
+ # Set the depth to get the top-level Makefile generated into the
+ # correct directory. This only has an effect on Linux.
+ args.append('--depth');
+ args.append('./trunk');
+ # Add common.gypi to the include path.
+ args.append('-I' + os.path.join(script_dir, 'common.gypi'))
+ # Add all.gyp as the main gyp file to be generated.
+ args.append(os.path.join(script_dir, 'all.gyp'))
+ sys.exit(gyp.main(args))