michael@0: # Copyright (c) 2011 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: # This file is meant to be included into a target that will have one or more michael@0: # uses of grit_action.gypi. To use this the following variables need to be michael@0: # defined: michael@0: # grit_out_dir: string: the output directory path michael@0: michael@0: # NOTE: This file is optional, not all targets that use grit include it, some michael@0: # do their own custom directives instead. michael@0: { michael@0: 'conditions': [ michael@0: # If the target is a direct binary, it needs to be able to find the header, michael@0: # otherwise it probably a supporting target just for grit so the include michael@0: # dir needs to be set on anything that depends on this action. michael@0: ['_type=="executable" or _type=="shared_library" or \ michael@0: _type=="loadable_module" or _type=="static_library"', { michael@0: 'include_dirs': [ michael@0: '<(grit_out_dir)', michael@0: ], michael@0: }, { michael@0: 'direct_dependent_settings': { michael@0: 'include_dirs': [ michael@0: '<(grit_out_dir)', michael@0: ], michael@0: }, michael@0: }], michael@0: ], michael@0: }