Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file is meant to be included into a target that will have one or more | 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 | 6 # uses of grit_action.gypi. To use this the following variables need to be |
| 7 # defined: | 7 # defined: |
| 8 # grit_out_dir: string: the output directory path | 8 # grit_out_dir: string: the output directory path |
| 9 | 9 |
| 10 # NOTE: This file is optional, not all targets that use grit include it, some | 10 # NOTE: This file is optional, not all targets that use grit include it, some |
| 11 # do their own custom directives instead. | 11 # do their own custom directives instead. |
| 12 { | 12 { |
| 13 'direct_dependent_settings': { | |
| 14 'include_dirs': [ | |
| 15 '<(grit_out_dir)', | |
| 16 ], | |
| 17 }, | |
| 18 'conditions': [ | 13 'conditions': [ |
| 14 # If the target is a direct binary, it needs to be able to find the header, | |
| 15 # otherwise it probably a supporting target just for grit so the include | |
| 16 # dir needs to be set on anything that depends on this action. | |
| 17 ['_type=="executable" or _type=="shared_library" or \ | |
|
Mark Mentovai
2011/03/28 15:14:55
Why didn’t you use _type=="none"? Because of that
TVL
2011/03/28 15:17:08
yea, I've seen that and "settings" in files, so th
| |
| 18 _type=="loadable_module" or _type=="static_library"', { | |
| 19 'include_dirs': [ | |
| 20 '<(grit_out_dir)', | |
| 21 ], | |
| 22 }, { | |
| 23 'direct_dependent_settings': { | |
| 24 'include_dirs': [ | |
| 25 '<(grit_out_dir)', | |
| 26 ], | |
| 27 }, | |
| 28 }], | |
| 19 ['OS=="win"', { | 29 ['OS=="win"', { |
| 20 'dependencies': ['<(DEPTH)/build/win/system.gyp:cygwin'], | 30 'dependencies': ['<(DEPTH)/build/win/system.gyp:cygwin'], |
| 21 }], | 31 }], |
| 22 ], | 32 ], |
| 23 } | 33 } |
| 24 | 34 |
| 25 # Local Variables: | 35 # Local Variables: |
| 26 # tab-width:2 | 36 # tab-width:2 |
| 27 # indent-tabs-mode:nil | 37 # indent-tabs-mode:nil |
| 28 # End: | 38 # End: |
| 29 # vim: set expandtab tabstop=2 shiftwidth=2: | 39 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |