michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: # Xcode throws an error if an iOS target depends on a Mac OS X target. So michael@0: # any place a utility program needs to be build and run, an action is michael@0: # used to run ninja as script to work around this. michael@0: # Example: michael@0: # { michael@0: # 'target_name': 'foo', michael@0: # 'type': 'none', michael@0: # 'variables': { michael@0: # # The name of a directory used for ninja. This cannot be shared with michael@0: # # another mac build. michael@0: # 'ninja_output_dir': 'ninja-foo', michael@0: # # The list of all the gyp files that contain the targets to run. michael@0: # 're_run_targets': [ michael@0: # 'foo.gyp', michael@0: # ], michael@0: # }, michael@0: # 'includes': ['path_to/mac_build.gypi'], michael@0: # 'actions': [ michael@0: # { michael@0: # 'action_name': 'compile foo', michael@0: # 'inputs': [], michael@0: # 'outputs': [], michael@0: # 'action': [ michael@0: # '<@(ninja_cmd)', michael@0: # # All the targets to build. michael@0: # 'foo1', michael@0: # 'foo2', michael@0: # ], michael@0: # }, michael@0: # ], michael@0: # } michael@0: { michael@0: 'variables': { michael@0: # Convenience variable pointing to the ninja product directory. michael@0: 'ninja_product_dir': michael@0: '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', michael@0: michael@0: # Common ninja command line flags. michael@0: 'ninja_cmd': [ michael@0: # Bounce through clean_env to clean up the environment so things michael@0: # set by the iOS build don't pollute the Mac build. michael@0: '<(DEPTH)/build/ios/clean_env.py', michael@0: # ninja must be found in the PATH. michael@0: 'ADD_TO_PATH=