1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 """This script is now only used by the closure_compilation builders."""
11 script_dir = os.path.dirname(os.path.realpath(__file__))
12 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir))
14 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
19 gyp_environment.SetEnvironment()
21 print 'Updating projects from gyp files...'
23 sys.exit(gyp.main(sys.argv[1:] + [
25 '--no-circular-check',
26 '-I', os.path.join(script_dir, 'common.gypi'),
27 '-D', 'gyp_output_dir=out']))
29 if __name__ == '__main__':