[Sync] Fix invalidations on Android.
[chromium-blink-merge.git] / ios / chrome / ios_chrome_resources.gyp
blob5e99526d4676bfa342a463148a02096d2b61833d
1 # Copyright 2012 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.
6   'variables': {
7     'chromium_code': 1,
8     'grit_base_dir': '<(SHARED_INTERMEDIATE_DIR)',
9     'grit_out_dir': '<(grit_base_dir)/ios/chrome',
10   },
11   'targets': [
12     {
13       'target_name': 'ios_chrome_resources',
14       'type': 'none',
15       'dependencies': [
16         'ios_strings_resources_gen',
17         'ios_theme_resources_gen',
18       ],
19     },
20     {
21       'target_name': 'ios_strings_resources_gen',
22       'type': 'none',
23       'hard_dependency': 1,
24       'actions': [
25         {
26           'action_name': 'ios_strings_resources',
27           'variables': {
28             'grit_whitelist': '',
29             'grit_grd_file': 'app/strings/ios_strings_resources.grd',
30           },
31           'includes': [ '../../build/grit_action.gypi' ],
32         },
33       ],
34       'includes': [ '../../build/grit_target.gypi' ],
35       # Override the exported include-dirs; ios_strings_resources.h should only
36       # be referenceable as ios/chrome/grit/ to allow DEPS-time checking of
37       # usage.
38       'direct_dependent_settings': {
39         'include_dirs': [
40           '<(grit_base_dir)',
41         ],
42         'include_dirs!': [
43           '<(grit_out_dir)',
44         ],
45       }
46     },
47     {
48       'target_name': 'ios_theme_resources_gen',
49       'type': 'none',
50       'hard_dependency': 1,
51       'actions': [
52         {
53           'action_name': 'ios_theme_resources',
54           'variables': {
55             # TODO(lliabraa): Remove this whitelist.
56             'grit_whitelist': '<(DEPTH)/ios/build/grit_whitelist.txt',
57             'grit_grd_file': 'app/theme/ios_theme_resources.grd',
58           },
59           'includes': [ '../../build/grit_action.gypi' ],
60         },
61       ],
62       'includes': [ '../../build/grit_target.gypi' ],
63       # Override the exported include-dirs; ios_theme_resources.h should only be
64       # referencable as ios/chrome/grit/ to allow DEPS-time checking of usage.
65       'direct_dependent_settings': {
66         'include_dirs': [
67           '<(grit_base_dir)',
68         ],
69         'include_dirs!': [
70           '<(grit_out_dir)',
71         ],
72       },
73     },
74   ],