summaryrefslogtreecommitdiffstats
path: root/build/grit_target.gypi
blob: 5912d48dcd8aee37ff3d738f893bba15d0e39e42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This file is meant to be included into a target that will have one or more
# uses of grit_action.gypi. To use this the following variables need to be
# defined:
#   grit_out_dir: string: the output directory path

# NOTE: This file is optional, not all targets that use grit include it, some
# do their own custom directives instead.
{
  'conditions': [
    # If the target is a direct binary, it needs to be able to find the header,
    # otherwise it probably a supporting target just for grit so the include
    # dir needs to be set on anything that depends on this action.
    ['_type=="executable" or _type=="shared_library" or \
      _type=="loadable_module" or _type=="static_library"', {
      'include_dirs': [
        '<(grit_out_dir)',
      ],
    }, {
      'direct_dependent_settings': {
        'include_dirs': [
          '<(grit_out_dir)',
        ],
      },
    }],
    ['OS=="win"', {
      'dependencies': ['<(DEPTH)/build/win/system.gyp:cygwin'],
    }],
  ],
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: