Disable screen rotation when splitview is engaged and only allow splitview in landscape.
[chromium-blink-merge.git] / athena / athena.gyp
blobe333ec0479067862f4b9508e9c8b412ef555ab5d
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/display/display.gyp:display',
27         '../ui/events/events.gyp:events_base',
28         '../ui/strings/ui_strings.gyp:ui_strings',
29         '../ui/views/views.gyp:views',
30         'resources/athena_resources.gyp:athena_resources',
31       ],
32       'defines': [
33         'ATHENA_IMPLEMENTATION',
34       ],
35       'sources': [
36         # All .cc, .h under athena, except unittests
37         'activity/activity.cc',
38         'activity/activity_factory.cc',
39         'activity/activity_manager_impl.cc',
40         'activity/activity_manager_impl.h',
41         'activity/activity_view_manager_impl.cc',
42         'activity/activity_frame_view.cc',
43         'activity/activity_frame_view.h',
44         'activity/activity_widget_delegate.cc',
45         'activity/activity_widget_delegate.h',
46         'activity/public/activity.h',
47         'activity/public/activity_factory.h',
48         'activity/public/activity_manager.h',
49         'activity/public/activity_manager_observer.h',
50         'activity/public/activity_view_manager.h',
51         'activity/public/activity_view_model.h',
52         'athena_export.h',
53         'common/container_priorities.h',
54         'common/fill_layout_manager.cc',
55         'common/fill_layout_manager.h',
56         'common/switches.cc',
57         'common/switches.h',
58         'env/athena_env_impl.cc',
59         'env/public/athena_env.h',
60         'home/app_list_view_delegate.cc',
61         'home/app_list_view_delegate.h',
62         'home/athena_start_page_view.cc',
63         'home/athena_start_page_view.h',
64         'home/home_card_constants.cc',
65         'home/home_card_constants.h',
66         'home/home_card_gesture_manager.cc',
67         'home/home_card_gesture_manager.h',
68         'home/home_card_impl.cc',
69         'home/minimized_home.cc',
70         'home/minimized_home.h',
71         'home/public/app_model_builder.h',
72         'home/public/home_card.h',
73         'input/accelerator_manager_impl.cc',
74         'input/accelerator_manager_impl.h',
75         'input/input_manager_impl.cc',
76         'input/public/accelerator_manager.h',
77         'input/public/input_manager.h',
78         'resource_manager/delegate/resource_manager_delegate.cc',
79         'resource_manager/memory_pressure_notifier.cc',
80         'resource_manager/memory_pressure_notifier.h',
81         'resource_manager/public/resource_manager.h',
82         'resource_manager/public/resource_manager_delegate.h',
83         'resource_manager/resource_manager_impl.cc',
84         'screen/public/screen_manager.h',
85         'screen/screen_accelerator_handler.cc',
86         'screen/screen_accelerator_handler.h',
87         'screen/screen_manager_impl.cc',
88         'system/background_controller.cc',
89         'system/background_controller.h',
90         'system/device_socket_listener.cc',
91         'system/device_socket_listener.h',
92         'system/network_selector.cc',
93         'system/network_selector.h',
94         'system/orientation_controller.cc',
95         'system/orientation_controller.h',
96         'system/power_button_controller.cc',
97         'system/power_button_controller.h',
98         'system/status_icon_container_view.cc',
99         'system/status_icon_container_view.h',
100         'system/time_view.cc',
101         'system/time_view.h',
102         'system/public/system_ui.h',
103         'system/system_ui_impl.cc',
104         'wm/bezel_controller.cc',
105         'wm/bezel_controller.h',
106         'wm/overview_toolbar.cc',
107         'wm/overview_toolbar.h',
108         'wm/public/window_list_provider.h',
109         'wm/public/window_manager.h',
110         'wm/public/window_manager_observer.h',
111         'wm/split_view_controller.cc',
112         'wm/split_view_controller.h',
113         'wm/title_drag_controller.cc',
114         'wm/title_drag_controller.h',
115         'wm/window_list_provider_impl.cc',
116         'wm/window_list_provider_impl.h',
117         'wm/window_manager_impl.cc',
118         'wm/window_overview_mode.cc',
119         'wm/window_overview_mode.h',
120       ],
121     },
122     {
123       'target_name': 'athena_content_lib',
124       'type': 'static_library',
125       'dependencies': [
126         'athena_lib',
127         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
128         '../components/components.gyp:renderer_context_menu',
129         '../components/components.gyp:web_modal',
130         '../extensions/extensions.gyp:extensions_browser',
131         '../extensions/extensions.gyp:extensions_common',
132         '../content/content.gyp:content_browser',
133         '../ui/app_list/app_list.gyp:app_list',
134         '../ui/keyboard/keyboard.gyp:keyboard',
135         '../ui/keyboard/keyboard.gyp:keyboard_resources',
136         '../third_party/WebKit/public/blink.gyp:blink',
137         '../ui/views/controls/webview/webview.gyp:webview',
138         '../skia/skia.gyp:skia',
139       ],
140       'sources': [
141         'content/app_activity.cc',
142         'content/app_activity.h',
143         'content/app_activity_proxy.cc',
144         'content/app_activity_proxy.h',
145         'content/app_activity_registry.cc',
146         'content/app_activity_registry.h',
147         'content/app_registry_impl.cc',
148         'content/content_activity_factory.cc',
149         'content/content_app_model_builder.cc',
150         'content/public/app_registry.h',
151         'content/content_activity_factory.h',
152         'content/public/content_activity_factory_creator.h',
153         'content/public/content_app_model_builder.h',
154         'content/public/web_contents_view_delegate_creator.h',
155         'content/render_view_context_menu_impl.cc',
156         'content/render_view_context_menu_impl.h',
157         'content/web_activity.cc',
158         'content/web_activity.h',
159         'content/web_contents_view_delegate_factory_impl.cc',
160         'extensions/public/extensions_delegate.h',
161         'extensions/extensions_delegate.cc',
162         'virtual_keyboard/public/virtual_keyboard_manager.h',
163         'virtual_keyboard/virtual_keyboard_manager_impl.cc',
164       ],
165     },
166     {
167       'target_name': 'athena_chrome_lib',
168       'type': 'static_library',
169       'dependencies': [
170         '../chrome/chrome.gyp:browser_extensions',
171       ],
172       'sources': [
173         'content/chrome/content_activity_factory.cc',
174         'extensions/chrome/athena_apps_client.h',
175         'extensions/chrome/athena_apps_client.cc',
176         'extensions/chrome/extensions_delegate_impl.cc',
177       ],
178     },
179     {
180       'target_name': 'athena_app_shell_lib',
181       'type': 'static_library',
182       'dependencies': [
183         '../extensions/shell/app_shell.gyp:app_shell_lib',
184       ],
185       'sources': [
186         'content/shell/content_activity_factory.cc',
187         'content/shell/shell_app_activity.cc',
188         'content/shell/shell_app_activity.h',
189         'extensions/shell/extensions_delegate_impl.cc',
190       ],
191     },
192     {
193       'target_name': 'athena_test_support',
194       'type': 'static_library',
195       'dependencies': [
196         '../base/base.gyp:test_support_base',
197         '../chromeos/chromeos.gyp:chromeos',
198         '../skia/skia.gyp:skia',
199         '../testing/gtest.gyp:gtest',
200         '../ui/accessibility/accessibility.gyp:ax_gen',
201         '../ui/app_list/app_list.gyp:app_list',
202         '../ui/app_list/app_list.gyp:app_list_test_support',
203         '../ui/aura/aura.gyp:aura_test_support',
204         '../ui/base/ui_base.gyp:ui_base_test_support',
205         '../ui/compositor/compositor.gyp:compositor_test_support',
206         '../ui/views/views.gyp:views',
207         '../ui/wm/wm.gyp:wm',
208         '../url/url.gyp:url_lib',
209         'athena_content_lib',
210         'athena_lib',
211         'resources/athena_resources.gyp:athena_resources',
212       ],
213       'sources': [
214         'extensions/test/test_extensions_delegate.cc',
215         'test/athena_test_base.cc',
216         'test/athena_test_base.h',
217         'test/athena_test_helper.cc',
218         'test/athena_test_helper.h',
219         'test/sample_activity.cc',
220         'test/sample_activity.h',
221         'test/sample_activity_factory.cc',
222         'test/sample_activity_factory.h',
223         'test/test_app_model_builder.cc',
224         'test/test_app_model_builder.h',
225         'test/test_resource_manager_delegate.cc',
226         'wm/test/window_manager_impl_test_api.cc',
227         'wm/test/window_manager_impl_test_api.h',
228       ],
229     },
230     {
231       'target_name': 'athena_unittests',
232       'type': 'executable',
233       'dependencies': [
234         '../skia/skia.gyp:skia',
235         '../testing/gtest.gyp:gtest',
236         'athena_app_shell_lib',
237         'athena_lib',
238         'athena_test_support',
239         'main/athena_main.gyp:athena_main_lib',
240         'resources/athena_resources.gyp:athena_pak',
241       ],
242       'sources': [
243         'activity/activity_manager_unittest.cc',
244         'common/fill_layout_manager_unittest.cc',
245         'content/app_activity_unittest.cc',
246         'home/athena_start_page_view_unittest.cc',
247         'home/home_card_gesture_manager_unittest.cc',
248         'home/home_card_unittest.cc',
249         'input/accelerator_manager_unittest.cc',
250         'resource_manager/memory_pressure_notifier_unittest.cc',
251         'resource_manager/resource_manager_unittest.cc',
252         'screen/screen_manager_unittest.cc',
253         'test/athena_unittests.cc',
254         'wm/split_view_controller_unittest.cc',
255         'wm/window_list_provider_impl_unittest.cc',
256         'wm/window_manager_unittest.cc',
257       ],
258     }
259   ],