Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright 2011 The Android Open Source Project | 3 # Copyright 2011 The Android Open Source Project |
| 4 # | 4 # |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 # This script is a wrapper which invokes gyp with the correct --depth argument, | 8 # This script is a wrapper which invokes gyp with the correct --depth argument, |
| 9 # and supports the automatic regeneration of build files if all.gyp is | 9 # and supports the automatic regeneration of build files if all.gyp is |
| 10 # changed (Linux-only). | 10 # changed (Linux-only). |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 106 |
| 107 # Tell gyp to write the Makefiles into output_dir | 107 # Tell gyp to write the Makefiles into output_dir |
| 108 args.extend(['--generator-output', os.path.abspath(get_output_dir())]) | 108 args.extend(['--generator-output', os.path.abspath(get_output_dir())]) |
| 109 | 109 |
| 110 # Tell make to write its output into the same dir | 110 # Tell make to write its output into the same dir |
| 111 args.extend(['-Goutput_dir=.']) | 111 args.extend(['-Goutput_dir=.']) |
| 112 | 112 |
| 113 # By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp. | 113 # By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp. |
| 114 args.extend(['-Gdefault_target=most']) | 114 args.extend(['-Gdefault_target=most']) |
| 115 | 115 |
| 116 # Special arguments for generating Visual Studio projects: | |
| 117 # - msvs_version forces generation of Visual Studio 2010 project so that we | |
|
epoger
2013/05/07 15:19:17
I take it that "make <target>" still works after t
| |
| 118 # can use msbuild.exe | |
| 119 # - msvs_abspath_output is a workaround for | |
| 120 # http://code.google.com/p/gyp/issues/detail?id=201 | |
| 121 args.extend(['-Gmsvs_version=2010']) | |
| 122 | |
| 123 print 'Updating projects from gyp files...' | 116 print 'Updating projects from gyp files...' |
| 124 sys.stdout.flush() | 117 sys.stdout.flush() |
| 125 | 118 |
| 126 # Off we go... | 119 # Off we go... |
| 127 sys.exit(gyp.main(args)) | 120 sys.exit(gyp.main(args)) |
| OLD | NEW |