gfx/angle/build/gyp_angle
author Marco Bonardo <mbonardo@mozilla.com>
Thu, 28 Apr 2011 21:47:10 +0200
changeset 68766 5f97ac170bfaea43eb5cef7e05975c4edc5957d0
parent 47652 8d003a6c5cb88631a371a1de84b06c18be1d480e
child 70878 3a16f8065534117162ad45c50d01092e406b4f6e
permissions -rw-r--r--
Bug 638123 (followup) - Remove extraneous semicolon to make Linux happy.

#!/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()

  # 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))