Enable icu_use_data_file_flag on Android
[chromium-blink-merge.git] / apps / apps.gypi
blobe0031fb090b58eae5c2bebc148648d224aaef17f
1 # Copyright 2013 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   'targets': [
7     {
8       'target_name': 'apps',
9       'type': 'static_library',
10       'variables': { 'enable_wexit_time_destructors': 1, },
11       # Since browser and browser_extensions actually depend on each other,
12       # we must omit the dependency from browser_extensions to browser.
13       # However, this means browser_extensions and browser should more or less
14       # have the same dependencies. Once browser_extensions is untangled from
15       # browser, then we can clean up these dependencies.
16       'dependencies': [
17         'browser_extensions',
18         'common/extensions/api/api.gyp:api',
19         '../skia/skia.gyp:skia',
20       ],
21       'include_dirs': [
22         '<(INTERMEDIATE_DIR)',
23         '<(grit_out_dir)',
24       ],
25       'sources': [
26         'app_lifetime_monitor.cc',
27         'app_lifetime_monitor.h',
28         'app_lifetime_monitor_factory.cc',
29         'app_lifetime_monitor_factory.h',
30         'app_load_service.cc',
31         'app_load_service.h',
32         'app_load_service_factory.cc',
33         'app_load_service_factory.h',
34         'app_restore_service.cc',
35         'app_restore_service.h',
36         'app_restore_service_factory.cc',
37         'app_restore_service_factory.h',
38         'app_window.cc',
39         'app_window.h',
40         'app_window_contents.cc',
41         'app_window_contents.h',
42         'app_window_geometry_cache.cc',
43         'app_window_geometry_cache.h',
44         'app_window_registry.cc',
45         'app_window_registry.h',
46         'apps_client.cc',
47         'apps_client.h',
48         'launcher.cc',
49         'launcher.h',
50         'metrics_names.h',
51         'pref_names.cc',
52         'pref_names.h',
53         'prefs.cc',
54         'prefs.h',
55         'saved_files_service.cc',
56         'saved_files_service.h',
57         'saved_files_service_factory.cc',
58         'saved_files_service_factory.h',
59         'size_constraints.cc',
60         'size_constraints.h',
61         'switches.cc',
62         'switches.h',
63         'ui/native_app_window.h',
64         'ui/views/app_window_frame_view.cc',
65         'ui/views/app_window_frame_view.h',
66         'ui/views/native_app_window_views.cc',
67         'ui/views/native_app_window_views.h',
68       ],
69       'conditions': [
70         ['chromeos==1',
71           {
72             'dependencies': [
73               'browser_chromeos',
74             ]
75           }
76         ],
77         ['enable_extensions==0',
78           {
79             'sources/': [
80               ['exclude', '^apps/'],
81             ],
82           }
83         ],
84         ['toolkit_views==1', {
85           'dependencies': [
86             '../ui/base/strings/ui_strings.gyp:ui_strings',
87             '../ui/views/views.gyp:views',
88           ],
89         }, {  # toolkit_views==0
90           'sources/': [
91             ['exclude', 'ui/views/'],
92           ],
93         }],
94       ],
95       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96       'msvs_disabled_warnings': [ 4267, ],
97     },
98   ],  # targets
99   'conditions': [
100     ['chromeos==1 or (OS=="linux" and use_aura==1) or (OS=="win" and use_aura==1)', {
101       'targets': [
102         {
103           'target_name': 'app_shell_pak',
104           'type': 'none',
105           'dependencies': [
106             # Need dev-tools related resources in shell_resources.pak and devtools_resources.pak.
107             '../content/content_shell_and_tests.gyp:generate_content_shell_resources',
108             '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
109             # Need features JSON files in common_resources.pak.
110             'chrome_resources.gyp:chrome_resources',
111           ],
112           'variables': {
113             'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
114           },
115           'actions': [
116             {
117               'action_name': 'repack_app_shell_pack',
118               'variables': {
119                 'pak_inputs': [
120                   '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
121                   '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
122                   '<(grit_out_dir)/common_resources.pak',
123                   '<(grit_out_dir)/extensions_api_resources.pak',
124                 ],
125               },
126               'inputs': [
127                 '<(repack_path)',
128                 '<@(pak_inputs)',
129               ],
130               'outputs': [
131                 '<(PRODUCT_DIR)/app_shell.pak',
132               ],
133               'action': ['python', '<(repack_path)', '<@(_outputs)',
134                          '<@(pak_inputs)'],
135             },
136           ],
137         },
138         {
139           'target_name': 'app_shell',
140           'type': 'executable',
141           'defines!': ['CONTENT_IMPLEMENTATION'],
142           'variables': {
143             'chromium_code': 1,
144           },
145           'dependencies': [
146             'app_shell_pak',
147             'apps',
148             'test_support_common',
149             '../base/base.gyp:base',
150             '../base/base.gyp:base_prefs_test_support',
151             '../content/content.gyp:content',
152             '../content/content_shell_and_tests.gyp:content_shell_lib',
153             '../skia/skia.gyp:skia',
154             '../ui/views/views.gyp:views',
155             '../ui/wm/wm.gyp:wm_test_support',
156           ],
157           'include_dirs': [
158             '..',
159           ],
160           'sources': [
161             'shell/app/shell_main_delegate.cc',
162             'shell/app/shell_main_delegate.h',
163             'shell/app/shell_main.cc',
164             'shell/browser/shell_app_sorting.cc',
165             'shell/browser/shell_app_sorting.h',
166             'shell/browser/shell_app_window_delegate.cc',
167             'shell/browser/shell_app_window_delegate.h',
168             'shell/browser/shell_apps_client.cc',
169             'shell/browser/shell_apps_client.h',
170             'shell/browser/shell_browser_context.cc',
171             'shell/browser/shell_browser_context.h',
172             'shell/browser/shell_browser_main_parts.cc',
173             'shell/browser/shell_browser_main_parts.h',
174             'shell/browser/shell_content_browser_client.cc',
175             'shell/browser/shell_content_browser_client.h',
176             'shell/browser/shell_extension_system.cc',
177             'shell/browser/shell_extension_system.h',
178             'shell/browser/shell_extension_system_factory.cc',
179             'shell/browser/shell_extension_system_factory.h',
180             'shell/browser/shell_extensions_browser_client.cc',
181             'shell/browser/shell_extensions_browser_client.h',
182             'shell/browser/web_view_window.cc',
183             'shell/browser/web_view_window.cc',
184             'shell/common/shell_content_client.cc',
185             'shell/common/shell_content_client.h',
186             'shell/common/shell_extensions_client.cc',
187             'shell/common/shell_extensions_client.h',
188             'shell/renderer/shell_content_renderer_client.cc',
189             'shell/renderer/shell_content_renderer_client.h',
190           ],
191           'conditions': [
192             ['OS=="win"', {
193               'msvs_settings': {
194                 'VCLinkerTool': {
195                   'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
196                 },
197               },
198               'msvs_large_pdb': 1,
199               'dependencies': [
200                 '../sandbox/sandbox.gyp:sandbox',
201               ],
202             }],
203           ],
204         },
205       ],  # targets
206     }],  # chromeos==1
207   ],  # conditions