Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>.
[chromium-blink-merge.git] / athena / athena.gyp
blob4084fb249a1b4014be5c080ab294d8af6590cfeb
1 # Copyright 2014 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   },
9   'targets': [
10     {
11       'target_name': 'athena_lib',
12       'type': '<(component)',
13       'dependencies': [
14         # status_icon_container_view.cc depends on this. Remove this once there
15         # are athena specific assets.
16         '../ash/ash_resources.gyp:ash_resources',
17         '../base/base.gyp:test_support_base',
18         '../chromeos/chromeos.gyp:power_manager_proto',
19         '../extensions/shell/app_shell.gyp:app_shell_version_header',
20         '../ipc/ipc.gyp:ipc',
21         '../skia/skia.gyp:skia',
22         '../ui/accessibility/accessibility.gyp:ax_gen',
23         '../ui/app_list/app_list.gyp:app_list',
24         '../ui/aura/aura.gyp:aura',
25         '../ui/aura/aura.gyp:aura_test_support',
26         '../ui/chromeos/ui_chromeos.gyp:ui_chromeos',
27         '../ui/display/display.gyp:display',
28         '../ui/events/events.gyp:events_base',
29         '../ui/strings/ui_strings.gyp:ui_strings',
30         '../ui/views/views.gyp:views',
31         'resources/athena_resources.gyp:athena_resources',
32         'strings/athena_strings.gyp:athena_strings',
33       ],
34       'defines': [
35         'ATHENA_IMPLEMENTATION',
36       ],
37       'sources': [
38         # All .cc, .h under athena, except unittests
39         'activity/activity.cc',
40         'activity/activity_factory.cc',
41         'activity/activity_manager_impl.cc',
42         'activity/activity_manager_impl.h',
43         'activity/activity_frame_view.cc',
44         'activity/activity_frame_view.h',
45         'activity/activity_widget_delegate.cc',
46         'activity/activity_widget_delegate.h',
47         'activity/public/activity.h',
48         'activity/public/activity_factory.h',
49         'activity/public/activity_manager.h',
50         'activity/public/activity_manager_observer.h',
51         'activity/public/activity_view_model.h',
52         'athena_export.h',
53         'env/athena_env_impl.cc',
54         'env/public/athena_env.h',
55         'home/app_list_view_delegate.cc',
56         'home/app_list_view_delegate.h',
57         'home/athena_start_page_view.cc',
58         'home/athena_start_page_view.h',
59         'home/home_card_constants.cc',
60         'home/home_card_constants.h',
61         'home/home_card_gesture_manager.cc',
62         'home/home_card_gesture_manager.h',
63         'home/home_card_impl.cc',
64         'home/minimized_home.cc',
65         'home/minimized_home.h',
66         'home/public/app_model_builder.h',
67         'home/public/home_card.h',
68         'home/public/search_controller_factory.h',
69         'input/accelerator_manager_impl.cc',
70         'input/accelerator_manager_impl.h',
71         'input/input_manager_impl.cc',
72         'input/input_manager_impl.h',
73         'input/power_button_controller.cc',
74         'input/power_button_controller.h',
75         'input/public/accelerator_manager.h',
76         'input/public/input_manager.h',
77         'resource_manager/delegate/resource_manager_delegate.cc',
78         'resource_manager/memory_pressure_notifier.cc',
79         'resource_manager/memory_pressure_notifier.h',
80         'resource_manager/public/resource_manager.h',
81         'resource_manager/public/resource_manager_delegate.h',
82         'resource_manager/resource_manager_impl.cc',
83         'screen/public/screen_manager.h',
84         'screen/screen_accelerator_handler.cc',
85         'screen/screen_accelerator_handler.h',
86         'screen/screen_manager_impl.cc',
87         'system/background_controller.cc',
88         'system/background_controller.h',
89         'system/network_selector.cc',
90         'system/network_selector.h',
91         'system/orientation_controller.cc',
92         'system/orientation_controller.h',
93         'system/shutdown_dialog.cc',
94         'system/shutdown_dialog.h',
95         'system/status_icon_container_view.cc',
96         'system/status_icon_container_view.h',
97         'system/time_view.cc',
98         'system/time_view.h',
99         'system/public/system_ui.h',
100         'system/system_ui_impl.cc',
101         'util/container_priorities.h',
102         'util/drag_handle.cc',
103         'util/drag_handle.h',
104         'util/fill_layout_manager.cc',
105         'util/fill_layout_manager.h',
106         'util/switches.cc',
107         'util/switches.h',
108         'wm/bezel_controller.cc',
109         'wm/bezel_controller.h',
110         'wm/overview_toolbar.cc',
111         'wm/overview_toolbar.h',
112         'wm/public/window_list_provider.h',
113         'wm/public/window_list_provider_observer.h',
114         'wm/public/window_manager.h',
115         'wm/public/window_manager_observer.h',
116         'wm/split_view_controller.cc',
117         'wm/split_view_controller.h',
118         'wm/title_drag_controller.cc',
119         'wm/title_drag_controller.h',
120         'wm/window_list_provider_impl.cc',
121         'wm/window_list_provider_impl.h',
122         'wm/window_manager_impl.cc',
123         'wm/window_manager_impl.h',
124         'wm/window_overview_mode.cc',
125         'wm/window_overview_mode.h',
126       ],
127     },
128     {
129       'target_name': 'athena_content_lib',
130       'type': 'static_library',
131       'dependencies': [
132         'athena_lib',
133         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
134         '../components/components.gyp:component_metrics_proto',
135         '../components/components.gyp:omnibox',
136         '../components/components.gyp:renderer_context_menu',
137         '../components/components.gyp:web_modal',
138         '../content/content.gyp:content_browser',
139         '../extensions/components/extensions_components.gyp:native_app_window',
140         '../extensions/extensions.gyp:extensions_browser',
141         '../extensions/extensions.gyp:extensions_common',
142         '../ui/app_list/app_list.gyp:app_list',
143         '../ui/keyboard/keyboard.gyp:keyboard',
144         '../ui/keyboard/keyboard.gyp:keyboard_resources',
145         '../third_party/WebKit/public/blink.gyp:blink',
146         '../ui/views/controls/webview/webview.gyp:webview',
147         '../skia/skia.gyp:skia',
148       ],
149       'sources': [
150         'content/app_activity.cc',
151         'content/app_activity.h',
152         'content/app_activity_proxy.cc',
153         'content/app_activity_proxy.h',
154         'content/app_activity_registry.cc',
155         'content/app_activity_registry.h',
156         'content/app_registry_impl.cc',
157         'content/content_activity_factory.cc',
158         'content/content_activity_factory.h',
159         'content/content_proxy.cc',
160         'content/content_proxy.h',
161         'content/media_utils.h',
162         'content/public/app_registry.h',
163         'content/public/content_activity_factory_creator.h',
164         'content/public/dialogs.h',
165         'content/public/web_contents_view_delegate_creator.h',
166         'content/render_view_context_menu_impl.cc',
167         'content/render_view_context_menu_impl.h',
168         'content/web_activity.cc',
169         'content/web_activity.h',
170         'content/web_activity_helpers.h',
171         'content/web_contents_view_delegate_factory_impl.cc',
172         'extensions/athena_app_delegate_base.cc',
173         'extensions/athena_app_delegate_base.h',
174         'extensions/athena_app_window_client_base.cc',
175         'extensions/athena_app_window_client_base.h',
176         'extensions/athena_native_app_window_views.cc',
177         'extensions/athena_native_app_window_views.h',
178         'extensions/extension_app_model_builder.cc',
179         'extensions/extensions_delegate.cc',
180         'extensions/pubilc/apps_search_controller_factory.h',
181         'extensions/public/extension_app_model_builder.h',
182         'extensions/public/extensions_delegate.h',
183         'screen_lock/public/screen_lock_manager.h',
184         'screen_lock/screen_lock_manager_base.cc',
185         'screen_lock/screen_lock_manager_base.h',
186         'virtual_keyboard/public/virtual_keyboard_manager.h',
187         'virtual_keyboard/virtual_keyboard_manager_impl.cc',
188       ],
189     },
190     {
191       'target_name': 'athena_chrome_lib',
192       'type': 'static_library',
193       'dependencies': [
194         '../components/components.gyp:component_metrics_proto',
195         '../chrome/chrome.gyp:browser_chromeos',
196         '../chrome/chrome.gyp:browser_extensions',
197         '../components/components.gyp:omnibox',
198       ],
199       'sources': [
200         'content/chrome/dialogs.cc',
201         'content/chrome/media_utils.cc',
202         'content/chrome/web_activity_helpers.cc',
203         'extensions/chrome/app_list_controller_delegate_athena.cc',
204         'extensions/chrome/app_list_controller_delegate_athena.h',
205         'extensions/chrome/athena_chrome_app_delegate.cc',
206         'extensions/chrome/athena_chrome_app_delegate.h',
207         'extensions/chrome/athena_chrome_app_window_client.cc',
208         'extensions/chrome/athena_chrome_app_window_client.h',
209         'extensions/chrome/chrome_search_controller_factory.cc',
210         'extensions/chrome/chrome_search_controller_factory.h',
211         'extensions/chrome/extensions_delegate_impl.cc',
212         'screen_lock/chrome/chrome_screen_lock_manager.cc',
213       ],
214     },
215     {
216       'target_name': 'athena_app_shell_lib',
217       'type': 'static_library',
218       'dependencies': [
219         '../components/components.gyp:component_metrics_proto',
220         '../components/components.gyp:omnibox',
221         '../extensions/shell/app_shell.gyp:app_shell_lib',
222         '../skia/skia.gyp:skia',
223       ],
224       'sources': [
225         'content/shell/dialogs.cc',
226         'content/shell/media_utils.cc',
227         'content/shell/web_activity_helpers.cc',
228         'extensions/shell/extensions_delegate_impl.cc',
229         'extensions/shell/athena_shell_app_delegate.cc',
230         'extensions/shell/athena_shell_app_delegate.h',
231         'extensions/shell/athena_shell_app_window_client.cc',
232         'extensions/shell/athena_shell_app_window_client.h',
233         'extensions/shell/athena_shell_scheme_classifier.cc',
234         'extensions/shell/athena_shell_scheme_classifier.h',
235         'extensions/shell/athena_apps_client_delegate.h',
236         'extensions/shell/shell_search_controller_factory.cc',
237         'extensions/shell/shell_search_controller_factory.h',
238         'extensions/shell/url_search_provider.cc',
239         'extensions/shell/url_search_provider.h',
240         'screen_lock/shell/shell_screen_lock_manager.cc',
241       ],
242     },
243     {
244       'target_name': 'athena_test_support',
245       'type': 'static_library',
246       'dependencies': [
247         '../base/base.gyp:test_support_base',
248         '../chromeos/chromeos.gyp:chromeos',
249         '../skia/skia.gyp:skia',
250         '../testing/gtest.gyp:gtest',
251         '../ui/accessibility/accessibility.gyp:ax_gen',
252         '../ui/app_list/app_list.gyp:app_list',
253         '../ui/app_list/app_list.gyp:app_list_test_support',
254         '../ui/aura/aura.gyp:aura_test_support',
255         '../ui/base/ui_base.gyp:ui_base_test_support',
256         '../ui/compositor/compositor.gyp:compositor_test_support',
257         '../ui/views/views.gyp:views',
258         '../ui/wm/wm.gyp:wm',
259         '../url/url.gyp:url_lib',
260         'athena_content_lib',
261         'athena_lib',
262         'resources/athena_resources.gyp:athena_resources',
263       ],
264       'sources': [
265         'extensions/test/test_extensions_delegate.cc',
266         'test/base/athena_test_base.cc',
267         'test/base/athena_test_base.h',
268         'test/base/athena_test_helper.cc',
269         'test/base/athena_test_helper.h',
270         'test/base/sample_activity.cc',
271         'test/base/sample_activity.h',
272         'test/base/sample_activity_factory.cc',
273         'test/base/sample_activity_factory.h',
274         'test/base/test_app_model_builder.cc',
275         'test/base/test_app_model_builder.h',
276         'test/base/test_resource_manager_delegate.cc',
277         'wm/test/window_manager_impl_test_api.cc',
278         'wm/test/window_manager_impl_test_api.h',
279       ],
280     },
281     {
282       'target_name': 'athena_unittests',
283       'type': 'executable',
284       'dependencies': [
285         '../skia/skia.gyp:skia',
286         '../testing/gtest.gyp:gtest',
287         'athena_app_shell_lib',
288         'athena_lib',
289         'athena_test_support',
290         'main/athena_main.gyp:athena_main_lib',
291         'resources/athena_resources.gyp:athena_pak',
292       ],
293       'sources': [
294         'activity/activity_manager_unittest.cc',
295         'content/app_activity_unittest.cc',
296         'env/athena_env_unittest.cc',
297         'home/athena_start_page_view_unittest.cc',
298         'home/home_card_gesture_manager_unittest.cc',
299         'home/home_card_unittest.cc',
300         'input/accelerator_manager_unittest.cc',
301         'input/input_manager_unittest.cc',
302         'resource_manager/memory_pressure_notifier_unittest.cc',
303         'resource_manager/resource_manager_unittest.cc',
304         'screen/screen_manager_unittest.cc',
305         'test/base/athena_unittests.cc',
306         'util/drag_handle_unittest.cc',
307         'util/fill_layout_manager_unittest.cc',
308         'wm/split_view_controller_unittest.cc',
309         'wm/window_list_provider_impl_unittest.cc',
310         'wm/window_manager_unittest.cc',
311       ],
312     }
313   ],