James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # This file is meant to be included into a target that will have one or more |
| 6 | # uses of grit_action.gypi. To use this the following variables need to be |
| 7 | # defined: |
| 8 | # grit_out_dir: string: the output directory path |
| 9 | |
| 10 | # DO NOT USE THIS FILE. Instead, use qualified includes. |
| 11 | # TODO: Convert everything to qualified includes, and delete this file, |
| 12 | # http://crbug.com/401588 |
| 13 | { |
| 14 | 'conditions': [ |
| 15 | # If the target is a direct binary, it needs to be able to find the header, |
| 16 | # otherwise it probably a supporting target just for grit so the include |
| 17 | # dir needs to be set on anything that depends on this action. |
| 18 | ['_type=="executable" or _type=="shared_library" or \ |
| 19 | _type=="loadable_module" or _type=="static_library"', { |
| 20 | 'include_dirs': [ |
| 21 | '<(grit_out_dir)', |
| 22 | ], |
| 23 | }, { |
| 24 | 'direct_dependent_settings': { |
| 25 | 'include_dirs': [ |
| 26 | '<(grit_out_dir)', |
| 27 | ], |
| 28 | }, |
| 29 | }], |
| 30 | ], |
| 31 | } |