Chromium Code Reviews| Index: pylib/gyp/generator/xcode.py |
| diff --git a/pylib/gyp/generator/xcode.py b/pylib/gyp/generator/xcode.py |
| index 9ea4fbdff06b71f5615a81acc557981e4bb9da2b..7b21bae8a988fb0069b730e6337695ca9ec9a7fc 100644 |
| --- a/pylib/gyp/generator/xcode.py |
| +++ b/pylib/gyp/generator/xcode.py |
| @@ -587,6 +587,25 @@ def EscapeXCodeArgument(s): |
| return '"' + s + '"' |
| + |
| +def PerformBuild(data, configurations, params): |
| + options = params['options'] |
| + |
| + for build_file, build_file_dict in data.iteritems(): |
| + (build_file_root, build_file_ext) = os.path.splitext(build_file) |
| + if build_file_ext != '.gyp': |
| + continue |
| + xcodeproj_path = build_file_root + options.suffix + '.xcodeproj' |
| + if options.generator_output: |
| + xcodeproj_path = os.path.join(options.generator_output, xcodeproj_path) |
| + |
| + for config in configurations: |
| + arguments = ['xcodebuild', '-project', xcodeproj_path] |
| + arguments += ['-configuration', config] |
| + print "Building [%s]: %s" % (config, arguments) |
|
bradn
2012/09/18 00:22:39
single
Sam Clegg
2012/09/18 00:47:17
Done.
|
| + subprocess.check_call(arguments) |
| + |
| + |
| def GenerateOutput(target_list, target_dicts, data, params): |
| options = params['options'] |
| generator_flags = params.get('generator_flags', {}) |