Chromium Code Reviews| Index: pylib/gyp/generator/xcode.py |
| diff --git a/pylib/gyp/generator/xcode.py b/pylib/gyp/generator/xcode.py |
| index 3136f7c2aa3a7492e0c3b40be0c2d7b9743dd5fc..879929d122d1205f7aafd73a9b7d1e725e12e338 100644 |
| --- a/pylib/gyp/generator/xcode.py |
| +++ b/pylib/gyp/generator/xcode.py |
| @@ -87,6 +87,8 @@ generator_extra_sources_for_rules = [ |
| 'mac_framework_private_headers', |
| ] |
| +generator_filelist_paths = None |
| + |
| # Xcode's standard set of library directories, which don't need to be duplicated |
| # in LIBRARY_SEARCH_PATHS. This list is not exhaustive, but that's okay. |
| xcode_standard_library_dirs = frozenset([ |
| @@ -578,6 +580,26 @@ def PerformBuild(data, configurations, params): |
| subprocess.check_call(arguments) |
| +def CalculateGeneratorInputInfo(params): |
| + toplevel = params['options'].toplevel_dir |
| + if params.get('flavor') == 'ninja': |
| + generator_dir = os.path.relpath(params['options'].generator_output or '.') |
| + output_dir = params.get('generator_flags', {}).get('output_dir', 'out') |
| + output_dir = os.path.normpath(os.path.join(generator_dir, output_dir)) |
| + qualified_out_dir = os.path.normpath(os.path.join( |
| + toplevel, output_dir, 'gypfiles-xcode-ninja')) |
| + else: |
| + output_dir = os.path.normpath(os.path.join(toplevel, 'xcodebuild')) |
|
Mark Mentovai
2015/11/30 14:22:53
Can you not hardcode xcodebuild? This is not the d
|
| + qualified_out_dir = os.path.normpath(os.path.join( |
| + toplevel, output_dir, 'gypfiles')) |
| + |
| + global generator_filelist_paths |
| + generator_filelist_paths = { |
| + 'toplevel': toplevel, |
| + 'qualified_out_dir': qualified_out_dir, |
| + } |
| + |
| + |
| def GenerateOutput(target_list, target_dicts, data, params): |
| # Optionally configure each spec to use ninja as the external builder. |
| ninja_wrapper = params.get('flavor') == 'ninja' |