blob: 1919b8401aa7afdca05dd8337b997134c986a8e3 [file] [log] [blame]
[email protected]5eae7162012-01-04 00:31:021# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]2a48ad62011-12-24 00:19:292# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 1,
[email protected]6f637732012-01-19 03:15:348 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
[email protected]2a48ad62011-12-24 00:19:299 },
10
11 'targets': [
12 {
13 'target_name': 'ash',
14 'type': '<(component)',
15 'dependencies': [
[email protected]2b1fbb9d2012-02-08 07:30:5116 'ash_strings.gyp:ash_strings',
[email protected]2a48ad62011-12-24 00:19:2917 '../base/base.gyp:base',
18 '../base/base.gyp:base_i18n',
19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
20 '../build/temp_gyp/googleurl.gyp:googleurl',
21 '../net/net.gyp:net',
22 '../skia/skia.gyp:skia',
23 '../third_party/icu/icu.gyp:icui18n',
24 '../third_party/icu/icu.gyp:icuuc',
25 '../ui/aura/aura.gyp:aura',
26 '../ui/base/strings/ui_strings.gyp:ui_strings',
27 '../ui/gfx/compositor/compositor.gyp:compositor',
28 '../ui/ui.gyp:ui',
29 '../ui/ui.gyp:ui_resources',
30 '../ui/ui.gyp:ui_resources_standard',
31 '../ui/views/views.gyp:views',
32 ],
33 'defines': [
34 'ASH_IMPLEMENTATION',
35 ],
36 'sources': [
37 # All .cc, .h under ash, except unittests
38 'accelerators/accelerator_controller.cc',
39 'accelerators/accelerator_controller.h',
[email protected]6e9f6aa2012-02-09 04:16:2040 'accelerators/accelerator_dispatcher.cc',
41 'accelerators/accelerator_dispatcher.h',
42 'accelerators/accelerator_dispatcher_linux.cc',
43 'accelerators/accelerator_dispatcher_win.cc',
[email protected]2a48ad62011-12-24 00:19:2944 'accelerators/accelerator_filter.cc',
45 'accelerators/accelerator_filter.h',
[email protected]6e9f6aa2012-02-09 04:16:2046 'accelerators/nested_dispatcher_controller.cc',
47 'accelerators/nested_dispatcher_controller.h',
[email protected]2a48ad62011-12-24 00:19:2948 'app_list/app_list.cc',
49 'app_list/app_list.h',
50 'app_list/app_list_groups_view.cc',
51 'app_list/app_list_groups_view.h',
52 'app_list/app_list_item_group_model.cc',
53 'app_list/app_list_item_group_model.h',
54 'app_list/app_list_item_group_view.cc',
55 'app_list/app_list_item_group_view.h',
56 'app_list/app_list_item_model.cc',
57 'app_list/app_list_item_model.h',
58 'app_list/app_list_item_model_observer.h',
59 'app_list/app_list_item_view.cc',
60 'app_list/app_list_item_view.h',
61 'app_list/app_list_item_view_listener.h',
62 'app_list/app_list_model.cc',
63 'app_list/app_list_model.h',
64 'app_list/app_list_view.cc',
65 'app_list/app_list_view.h',
66 'app_list/app_list_view_delegate.h',
67 'app_list/drop_shadow_label.cc',
68 'app_list/drop_shadow_label.h',
69 'ash_switches.cc',
70 'ash_switches.h',
[email protected]2e827132012-02-07 01:20:2771 'brightness_control_delegate.h',
[email protected]fb9a35592012-01-18 04:12:1472 'caps_lock_delegate.h',
[email protected]2a48ad62011-12-24 00:19:2973 'desktop_background/desktop_background_view.cc',
74 'desktop_background/desktop_background_view.h',
75 'drag_drop/drag_drop_controller.cc',
76 'drag_drop/drag_drop_controller.h',
77 'drag_drop/drag_image_view.cc',
78 'drag_drop/drag_image_view.h',
[email protected]3d29912a2012-02-07 07:41:5179 'focus_cycler.cc',
80 'focus_cycler.h',
[email protected]2c456102011-12-26 06:26:3481 'ime/event.cc',
82 'ime/event.h',
83 'ime/input_method_event_filter.cc',
84 'ime/input_method_event_filter.h',
[email protected]2a48ad62011-12-24 00:19:2985 'launcher/app_launcher_button.cc',
86 'launcher/app_launcher_button.h',
87 'launcher/launcher.cc',
88 'launcher/launcher.h',
[email protected]16f2d3f2012-02-16 03:01:3189 'launcher/launcher_delegate.h',
[email protected]2a48ad62011-12-24 00:19:2990 'launcher/launcher_model.cc',
91 'launcher/launcher_model.h',
92 'launcher/launcher_model_observer.h',
[email protected]cd808102012-01-12 02:42:2193 'launcher/launcher_types.cc',
[email protected]2a48ad62011-12-24 00:19:2994 'launcher/launcher_types.h',
95 'launcher/launcher_view.cc',
96 'launcher/launcher_view.h',
[email protected]194ad1d2012-01-18 18:22:5197 'launcher/launcher_window_cycler.cc',
98 'launcher/launcher_window_cycler.h',
[email protected]2a48ad62011-12-24 00:19:2999 'launcher/tabbed_launcher_button.cc',
100 'launcher/tabbed_launcher_button.h',
101 'launcher/view_model.cc',
102 'launcher/view_model.h',
103 'launcher/view_model_utils.cc',
104 'launcher/view_model_utils.h',
[email protected]c52de6372012-01-18 05:24:57105 'screenshot_delegate.h',
[email protected]2a48ad62011-12-24 00:19:29106 'shell.cc',
107 'shell.h',
108 'shell_delegate.h',
109 'shell_factory.h',
110 'shell_window_ids.h',
111 'status_area/status_area_view.cc',
112 'status_area/status_area_view.h',
113 'tooltips/tooltip_controller.cc',
114 'tooltips/tooltip_controller.h',
[email protected]16f05f42012-02-06 19:24:50115 'volume_control_delegate.h',
[email protected]2a48ad62011-12-24 00:19:29116 'wm/activation_controller.cc',
117 'wm/activation_controller.h',
118 'wm/always_on_top_controller.cc',
119 'wm/always_on_top_controller.h',
[email protected]fc7b7442012-01-18 23:57:05120 'wm/base_layout_manager.cc',
121 'wm/base_layout_manager.h',
122 'wm/compact_layout_manager.cc',
123 'wm/compact_layout_manager.h',
[email protected]2a48ad62011-12-24 00:19:29124 'wm/compact_status_area_layout_manager.cc',
125 'wm/compact_status_area_layout_manager.h',
[email protected]57b8bb352012-01-11 05:11:46126 'wm/dialog_frame_view.cc',
127 'wm/dialog_frame_view.h',
[email protected]2a48ad62011-12-24 00:19:29128 'wm/image_grid.cc',
129 'wm/image_grid.h',
[email protected]52295042012-02-08 02:02:59130 'wm/panel_frame_view.cc',
131 'wm/panel_frame_view.h',
[email protected]6b854932012-02-04 16:44:27132 'wm/panel_layout_manager.cc',
133 'wm/panel_layout_manager.h',
[email protected]0540b172012-02-16 21:01:07134 'wm/panel_window_event_filter.cc',
135 'wm/panel_window_event_filter.h',
[email protected]0b0b0742012-02-16 13:23:45136 'wm/partial_screenshot_event_filter.cc',
137 'wm/partial_screenshot_event_filter.h',
138 'wm/partial_screenshot_view.cc',
139 'wm/partial_screenshot_view.h',
[email protected]e871f1a02012-01-18 20:03:46140 'wm/system_modal_container_layout_manager.cc',
141 'wm/system_modal_container_layout_manager.h',
142 'wm/system_modal_container_event_filter.cc',
143 'wm/system_modal_container_event_filter.h',
144 'wm/system_modal_container_event_filter_delegate.h',
[email protected]e0d22e82012-01-04 00:46:57145 'wm/power_button_controller.cc',
146 'wm/power_button_controller.h',
[email protected]2a48ad62011-12-24 00:19:29147 'wm/property_util.cc',
148 'wm/property_util.h',
149 'wm/root_window_event_filter.cc',
150 'wm/root_window_event_filter.h',
151 'wm/root_window_layout_manager.cc',
152 'wm/root_window_layout_manager.h',
153 'wm/shadow.cc',
154 'wm/shadow.h',
155 'wm/shadow_controller.cc',
156 'wm/shadow_controller.h',
157 'wm/shadow_types.cc',
158 'wm/shadow_types.h',
159 'wm/shelf_layout_manager.cc',
160 'wm/shelf_layout_manager.h',
[email protected]2a48ad62011-12-24 00:19:29161 'wm/stacking_controller.cc',
162 'wm/stacking_controller.h',
163 'wm/status_area_layout_manager.cc',
164 'wm/status_area_layout_manager.h',
165 'wm/toplevel_frame_view.cc',
166 'wm/toplevel_frame_view.h',
167 'wm/toplevel_layout_manager.cc',
168 'wm/toplevel_layout_manager.h',
169 'wm/toplevel_window_event_filter.cc',
170 'wm/toplevel_window_event_filter.h',
[email protected]6aa614a2012-01-19 22:13:38171 'wm/video_detector.cc',
172 'wm/video_detector.h',
[email protected]ddd91e92012-01-27 16:03:48173 'wm/visibility_controller.cc',
174 'wm/visibility_controller.h',
[email protected]cad77b32012-01-19 06:23:04175 'wm/window_animations.cc',
[email protected]6aa614a2012-01-19 22:13:38176 'wm/window_animations.h',
[email protected]40c4cbb2012-01-10 23:26:07177 'wm/window_cycle_controller.cc',
178 'wm/window_cycle_controller.h',
[email protected]194ad1d2012-01-18 18:22:51179 'wm/window_cycle_list.cc',
180 'wm/window_cycle_list.h',
[email protected]2a48ad62011-12-24 00:19:29181 'wm/window_frame.cc',
182 'wm/window_frame.h',
[email protected]80373572012-01-06 23:14:30183 'wm/window_modality_controller.cc',
184 'wm/window_modality_controller.h',
[email protected]2a48ad62011-12-24 00:19:29185 'wm/window_properties.cc',
186 'wm/window_properties.h',
[email protected]1dfd4022012-02-15 04:36:43187 'wm/window_resizer.cc',
188 'wm/window_resizer.h',
[email protected]2a48ad62011-12-24 00:19:29189 'wm/window_util.cc',
190 'wm/window_util.h',
191 'wm/workspace_controller.cc',
192 'wm/workspace_controller.h',
[email protected]8818cb92012-02-10 21:29:37193 'wm/workspace/managed_workspace.cc',
194 'wm/workspace/managed_workspace.h',
195 'wm/workspace/maximized_workspace.cc',
196 'wm/workspace/maximized_workspace.h',
[email protected]2a48ad62011-12-24 00:19:29197 'wm/workspace/workspace.cc',
198 'wm/workspace/workspace.h',
[email protected]9633a9d22012-01-21 16:40:58199 'wm/workspace/workspace_event_filter.cc',
200 'wm/workspace/workspace_event_filter.h',
201 'wm/workspace/workspace_layout_manager.cc',
202 'wm/workspace/workspace_layout_manager.h',
[email protected]2a48ad62011-12-24 00:19:29203 'wm/workspace/workspace_manager.cc',
204 'wm/workspace/workspace_manager.h',
[email protected]5ae18722012-02-25 22:30:50205 'wm/workspace/workspace_window_resizer.cc',
206 'wm/workspace/workspace_window_resizer.h',
[email protected]2a48ad62011-12-24 00:19:29207 ],
[email protected]6e9f6aa2012-02-09 04:16:20208 'conditions': [
209 ['OS=="mac"', {
210 'sources/': [
211 ['exclude', 'accelerators/accelerator_controller.cc'],
212 ['exclude', 'accelerators/accelerator_controller.h'],
213 ['exclude', 'accelerators/accelerator_dispatcher.cc'],
214 ['exclude', 'accelerators/accelerator_dispatcher.h'],
215 ['exclude', 'accelerators/accelerator_filter.cc'],
216 ['exclude', 'accelerators/accelerator_filter.h'],
217 ['exclude', 'accelerators/nested_dispatcher_controller.cc'],
218 ['exclude', 'accelerators/nested_dispatcher_controller.h'],
219 ],
220 }],
221 ],
[email protected]2a48ad62011-12-24 00:19:29222 },
223 {
224 'target_name': 'aura_shell_unittests',
225 'type': 'executable',
226 'dependencies': [
227 '../base/base.gyp:base',
228 '../base/base.gyp:test_support_base',
229 '../chrome/chrome_resources.gyp:packed_resources',
230 '../build/temp_gyp/googleurl.gyp:googleurl',
231 '../skia/skia.gyp:skia',
232 '../testing/gtest.gyp:gtest',
233 '../third_party/icu/icu.gyp:icui18n',
234 '../third_party/icu/icu.gyp:icuuc',
235 '../ui/aura/aura.gyp:aura',
236 '../ui/aura/aura.gyp:test_support_aura',
[email protected]578c81b2012-01-27 07:25:02237 '../ui/gfx/compositor/compositor.gyp:compositor',
[email protected]2a48ad62011-12-24 00:19:29238 '../ui/gfx/compositor/compositor.gyp:compositor_test_support',
239 '../ui/ui.gyp:gfx_resources',
240 '../ui/ui.gyp:ui',
241 '../ui/ui.gyp:ui_resources',
242 '../ui/ui.gyp:ui_resources_standard',
243 '../ui/views/views.gyp:views',
244 'ash',
245 ],
246 'sources': [
[email protected]5eae7162012-01-04 00:31:02247 '../ui/views/test/test_views_delegate.cc',
248 '../ui/views/test/test_views_delegate.h',
[email protected]2a48ad62011-12-24 00:19:29249 'accelerators/accelerator_controller_unittest.cc',
[email protected]47460f92012-01-21 16:15:13250 'accelerators/accelerator_filter_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29251 'drag_drop/drag_drop_controller_unittest.cc',
[email protected]df1c9862012-02-27 10:37:31252 'focus_cycler_unittest.cc',
[email protected]2c456102011-12-26 06:26:34253 'ime/input_method_event_filter_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29254 'launcher/launcher_model_unittest.cc',
255 'launcher/launcher_unittest.cc',
256 'launcher/view_model_unittest.cc',
257 'launcher/view_model_utils_unittest.cc',
258 'shell_unittest.cc',
259 'test/ash_unittests.cc',
[email protected]1dd1c1b2012-02-17 22:04:47260 'test/ash_test_base.cc',
261 'test/ash_test_base.h',
[email protected]2a48ad62011-12-24 00:19:29262 'test/test_activation_delegate.cc',
263 'test/test_activation_delegate.h',
264 'test/test_shell_delegate.cc',
265 'test/test_shell_delegate.h',
266 'test/test_suite.cc',
267 'test/test_suite.h',
[email protected]a0fea7e2012-01-30 17:43:33268 'test/test_suite_init.h',
269 'test/test_suite_init.mm',
[email protected]2a48ad62011-12-24 00:19:29270 'tooltips/tooltip_controller_unittest.cc',
271 'wm/activation_controller_unittest.cc',
[email protected]fc7b7442012-01-18 23:57:05272 'wm/base_layout_manager_unittest.cc',
273 'wm/compact_layout_manager_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29274 'wm/image_grid_unittest.cc',
[email protected]6b854932012-02-04 16:44:27275 'wm/panel_layout_manager_unittest.cc',
[email protected]e0d22e82012-01-04 00:46:57276 'wm/power_button_controller_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29277 'wm/root_window_event_filter_unittest.cc',
278 'wm/shadow_controller_unittest.cc',
279 'wm/shelf_layout_manager_unittest.cc',
[email protected]6b854932012-02-04 16:44:27280 'wm/system_modal_container_layout_manager_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29281 'wm/toplevel_layout_manager_unittest.cc',
282 'wm/toplevel_window_event_filter_unittest.cc',
[email protected]6aa614a2012-01-19 22:13:38283 'wm/video_detector_unittest.cc',
[email protected]ddd91e92012-01-27 16:03:48284 'wm/visibility_controller_unittest.cc',
[email protected]40c4cbb2012-01-10 23:26:07285 'wm/window_cycle_controller_unittest.cc',
[email protected]80373572012-01-06 23:14:30286 'wm/window_modality_controller_unittest.cc',
[email protected]6de3a0112012-02-04 03:57:50287 'wm/workspace/workspace_manager_unittest.cc',
[email protected]5ae18722012-02-25 22:30:50288 'wm/workspace/workspace_window_resizer_unittest.cc',
[email protected]6b854932012-02-04 16:44:27289 'wm/workspace_controller_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29290
291 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
292 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
293 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
294 ],
295 'conditions': [
[email protected]2c456102011-12-26 06:26:34296 ['use_ibus==1', {
297 'dependencies': [
298 '../build/linux/system.gyp:ibus',
299 ],
300 }],
[email protected]df1c9862012-02-27 10:37:31301 ['OS=="win"', {
302 # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906
303 'sources/': [
304 ['exclude', 'focus_cycler_unittest.cc'],
305 ],
306 }],
[email protected]03decaa12012-01-25 15:53:15307 ['OS=="mac"', {
308 'sources/': [
[email protected]6e9f6aa2012-02-09 04:16:20309 ['exclude', 'accelerators/accelerator_controller_unittest.cc'],
[email protected]a0fea7e2012-01-30 17:43:33310 ['exclude', 'accelerators/accelerator_filter_unittest.cc'],
[email protected]03decaa12012-01-25 15:53:15311 ['exclude', 'drag_drop/drag_drop_controller_unittest.cc'],
[email protected]a0fea7e2012-01-30 17:43:33312 ['exclude', 'tooltips/tooltip_controller_unittest.cc'],
[email protected]03decaa12012-01-25 15:53:15313 ],
[email protected]a0fea7e2012-01-30 17:43:33314 'dependencies': [
315 # Mac tests access resources via the 'AuraShell.app' directory.
316 'ash_shell',
317 ],
318 # Special linker instructions that avoids stripping Obj-C classes that
319 # are not referenced in code, but are referenced in nibs.
320 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
[email protected]03decaa12012-01-25 15:53:15321 }],
[email protected]2a48ad62011-12-24 00:19:29322 ],
323 },
324 {
325 'target_name': 'ash_shell',
326 'type': 'executable',
327 'dependencies': [
328 '../base/base.gyp:base',
329 '../base/base.gyp:base_i18n',
330 '../chrome/chrome_resources.gyp:packed_resources',
331 '../skia/skia.gyp:skia',
332 '../third_party/icu/icu.gyp:icui18n',
333 '../third_party/icu/icu.gyp:icuuc',
334 '../ui/aura/aura.gyp:aura',
335 '../ui/gfx/compositor/compositor.gyp:compositor',
336 '../ui/gfx/compositor/compositor.gyp:compositor_test_support',
337 '../ui/ui.gyp:gfx_resources',
338 '../ui/ui.gyp:ui',
339 '../ui/ui.gyp:ui_resources',
340 '../ui/ui.gyp:ui_resources_standard',
341 '../ui/views/views.gyp:views',
342 '../ui/views/views.gyp:views_examples_lib',
343 'ash',
344 ],
345 'sources': [
346 'shell/app_list.cc',
347 'shell/bubble.cc',
348 'shell/example_factory.h',
349 'shell/lock_view.cc',
[email protected]6b854932012-02-04 16:44:27350 'shell/panel_window.cc',
351 'shell/panel_window.h',
[email protected]2a48ad62011-12-24 00:19:29352 'shell/shell_main.cc',
[email protected]b72dfb242012-01-18 00:04:18353 'shell/shell_main_parts.cc',
[email protected]a0fea7e2012-01-30 17:43:33354 'shell/shell_main_parts.h',
[email protected]b72dfb242012-01-18 00:04:18355 'shell/shell_main_parts_mac.mm',
[email protected]2a48ad62011-12-24 00:19:29356 'shell/toplevel_window.cc',
357 'shell/toplevel_window.h',
358 'shell/widgets.cc',
359 'shell/window_type_launcher.cc',
360 'shell/window_type_launcher.h',
361 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
362 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
363 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
364 '../ui/views/test/test_views_delegate.cc',
365 ],
[email protected]6f637732012-01-19 03:15:34366 'conditions': [
367 ['OS=="mac"', {
368 'product_name': 'AuraShell',
369 'mac_bundle': 1,
370 'sources/': [
371 ['exclude', 'shell/shell_main_parts.cc'],
372 ],
373 'mac_bundle_resources': [
374 'shell/cocoa/app.icns',
375 'shell/cocoa/app-Info.plist',
376 'shell/cocoa/nibs/MainMenu.xib',
377 'shell/cocoa/nibs/RootWindow.xib',
378 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
379 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
380 ],
381 'mac_bundle_resources!': [
382 'shell/cocoa/app-Info.plist',
383 ],
384 'xcode_settings': {
385 'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist',
386 },
387 }],
388 ],
[email protected]2a48ad62011-12-24 00:19:29389 },
[email protected]4e0e2b22012-02-01 10:45:51390 ],
[email protected]2a48ad62011-12-24 00:19:29391}