Edit

kc3-lang/angle/build/gyp_angle

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2013-12-04 15:56:32
    Hash : 39173f13
    Message : Roll gyp and regenerate public projects to have the cleaned paths. With gyp r1804 we can support having nice project folders without nested subfolders. We must disable the parallel build for gyp as it is currently broken in our project, and turned on by default. Change-Id: Ie147ce423115009e254447d51cc30da0cfb2704f Reviewed-on: https://chromium-review.googlesource.com/178782 Reviewed-by: Shannon Woods <shannonwoods@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org> Tested-by: Jamie Madill <jmadill@chromium.org>

  • build/gyp_angle
  • #!/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'))
    print 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('.');
      # Add common.gypi to the include path.
      args.append('-I' + os.path.join(script_dir, 'common.gypi'))
      args.append('--no-parallel')
      # 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))