blob: a9c4593fd077bea6d0b348c63901dc1643f2667c [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',
[email protected]2a48ad62011-12-24 00:19:2950 'app_list/app_list_item_model.cc',
51 'app_list/app_list_item_model.h',
52 'app_list/app_list_item_model_observer.h',
53 'app_list/app_list_item_view.cc',
54 'app_list/app_list_item_view.h',
[email protected]2a48ad62011-12-24 00:19:2955 'app_list/app_list_model.cc',
56 'app_list/app_list_model.h',
[email protected]41247fdc2012-03-02 16:12:4057 'app_list/app_list_model_view.cc',
58 'app_list/app_list_model_view.h',
[email protected]2a48ad62011-12-24 00:19:2959 'app_list/app_list_view.cc',
60 'app_list/app_list_view.h',
61 'app_list/app_list_view_delegate.h',
62 'app_list/drop_shadow_label.cc',
63 'app_list/drop_shadow_label.h',
64 'ash_switches.cc',
65 'ash_switches.h',
[email protected]fb9a35592012-01-18 04:12:1466 'caps_lock_delegate.h',
[email protected]2a48ad62011-12-24 00:19:2967 'desktop_background/desktop_background_view.cc',
68 'desktop_background/desktop_background_view.h',
69 'drag_drop/drag_drop_controller.cc',
70 'drag_drop/drag_drop_controller.h',
71 'drag_drop/drag_image_view.cc',
72 'drag_drop/drag_image_view.h',
[email protected]3d29912a2012-02-07 07:41:5173 'focus_cycler.cc',
74 'focus_cycler.h',
[email protected]2c456102011-12-26 06:26:3475 'ime/event.cc',
76 'ime/event.h',
77 'ime/input_method_event_filter.cc',
78 'ime/input_method_event_filter.h',
[email protected]2a48ad62011-12-24 00:19:2979 'launcher/app_launcher_button.cc',
80 'launcher/app_launcher_button.h',
81 'launcher/launcher.cc',
82 'launcher/launcher.h',
[email protected]16f2d3f2012-02-16 03:01:3183 'launcher/launcher_delegate.h',
[email protected]2a48ad62011-12-24 00:19:2984 'launcher/launcher_model.cc',
85 'launcher/launcher_model.h',
86 'launcher/launcher_model_observer.h',
[email protected]cd808102012-01-12 02:42:2187 'launcher/launcher_types.cc',
[email protected]2a48ad62011-12-24 00:19:2988 'launcher/launcher_types.h',
89 'launcher/launcher_view.cc',
90 'launcher/launcher_view.h',
[email protected]194ad1d2012-01-18 18:22:5191 'launcher/launcher_window_cycler.cc',
92 'launcher/launcher_window_cycler.h',
[email protected]2a48ad62011-12-24 00:19:2993 'launcher/tabbed_launcher_button.cc',
94 'launcher/tabbed_launcher_button.h',
95 'launcher/view_model.cc',
96 'launcher/view_model.h',
97 'launcher/view_model_utils.cc',
98 'launcher/view_model_utils.h',
[email protected]c52de6372012-01-18 05:24:5799 'screenshot_delegate.h',
[email protected]2a48ad62011-12-24 00:19:29100 'shell.cc',
101 'shell.h',
102 'shell_delegate.h',
103 'shell_factory.h',
104 'shell_window_ids.h',
105 'status_area/status_area_view.cc',
106 'status_area/status_area_view.h',
[email protected]95a21182012-02-29 01:52:48107 'system/audio/audio_controller.h',
[email protected]bfb411312012-02-27 20:59:27108 'system/audio/tray_volume.cc',
109 'system/audio/tray_volume.h',
[email protected]95a21182012-02-29 01:52:48110 'system/brightness/brightness_controller.h',
[email protected]75fdbc092012-02-27 23:04:28111 'system/brightness/brightness_control_delegate.h',
112 'system/brightness/tray_brightness.cc',
113 'system/brightness/tray_brightness.h',
[email protected]f7f06ea2012-03-02 18:30:50114 'system/power/power_status_controller.h',
115 'system/power/power_supply_status.cc',
116 'system/power/power_supply_status.h',
117 'system/power/tray_power_date.cc',
118 'system/power/tray_power_date.h',
[email protected]bfb411312012-02-27 20:59:27119 'system/settings/tray_settings.cc',
120 'system/settings/tray_settings.h',
121 'system/tray/system_tray.cc',
122 'system/tray/system_tray.h',
123 'system/tray/system_tray_delegate.h',
124 'system/tray/system_tray_item.cc',
125 'system/tray/system_tray_item.h',
[email protected]60d4167c2012-03-04 18:45:15126 'system/tray/tray_empty.cc',
127 'system/tray/tray_empty.h',
[email protected]eac76c62012-03-03 15:19:56128 'system/user/login_status.h',
129 'system/user/tray_user.cc',
130 'system/user/tray_user.h',
[email protected]2a48ad62011-12-24 00:19:29131 'tooltips/tooltip_controller.cc',
132 'tooltips/tooltip_controller.h',
[email protected]16f05f42012-02-06 19:24:50133 'volume_control_delegate.h',
[email protected]2a48ad62011-12-24 00:19:29134 'wm/activation_controller.cc',
135 'wm/activation_controller.h',
136 'wm/always_on_top_controller.cc',
137 'wm/always_on_top_controller.h',
[email protected]fc7b7442012-01-18 23:57:05138 'wm/base_layout_manager.cc',
139 'wm/base_layout_manager.h',
140 'wm/compact_layout_manager.cc',
141 'wm/compact_layout_manager.h',
[email protected]2a48ad62011-12-24 00:19:29142 'wm/compact_status_area_layout_manager.cc',
143 'wm/compact_status_area_layout_manager.h',
[email protected]57b8bb352012-01-11 05:11:46144 'wm/dialog_frame_view.cc',
145 'wm/dialog_frame_view.h',
[email protected]2a48ad62011-12-24 00:19:29146 'wm/image_grid.cc',
147 'wm/image_grid.h',
[email protected]52295042012-02-08 02:02:59148 'wm/panel_frame_view.cc',
149 'wm/panel_frame_view.h',
[email protected]6b854932012-02-04 16:44:27150 'wm/panel_layout_manager.cc',
151 'wm/panel_layout_manager.h',
[email protected]0540b172012-02-16 21:01:07152 'wm/panel_window_event_filter.cc',
153 'wm/panel_window_event_filter.h',
[email protected]0b0b0742012-02-16 13:23:45154 'wm/partial_screenshot_event_filter.cc',
155 'wm/partial_screenshot_event_filter.h',
156 'wm/partial_screenshot_view.cc',
157 'wm/partial_screenshot_view.h',
[email protected]e871f1a02012-01-18 20:03:46158 'wm/system_modal_container_layout_manager.cc',
159 'wm/system_modal_container_layout_manager.h',
160 'wm/system_modal_container_event_filter.cc',
161 'wm/system_modal_container_event_filter.h',
162 'wm/system_modal_container_event_filter_delegate.h',
[email protected]e0d22e82012-01-04 00:46:57163 'wm/power_button_controller.cc',
164 'wm/power_button_controller.h',
[email protected]2a48ad62011-12-24 00:19:29165 'wm/property_util.cc',
166 'wm/property_util.h',
167 'wm/root_window_event_filter.cc',
168 'wm/root_window_event_filter.h',
169 'wm/root_window_layout_manager.cc',
170 'wm/root_window_layout_manager.h',
171 'wm/shadow.cc',
172 'wm/shadow.h',
173 'wm/shadow_controller.cc',
174 'wm/shadow_controller.h',
175 'wm/shadow_types.cc',
176 'wm/shadow_types.h',
177 'wm/shelf_layout_manager.cc',
178 'wm/shelf_layout_manager.h',
[email protected]2a48ad62011-12-24 00:19:29179 'wm/stacking_controller.cc',
180 'wm/stacking_controller.h',
181 'wm/status_area_layout_manager.cc',
182 'wm/status_area_layout_manager.h',
183 'wm/toplevel_frame_view.cc',
184 'wm/toplevel_frame_view.h',
185 'wm/toplevel_layout_manager.cc',
186 'wm/toplevel_layout_manager.h',
187 'wm/toplevel_window_event_filter.cc',
188 'wm/toplevel_window_event_filter.h',
[email protected]6aa614a2012-01-19 22:13:38189 'wm/video_detector.cc',
190 'wm/video_detector.h',
[email protected]ddd91e92012-01-27 16:03:48191 'wm/visibility_controller.cc',
192 'wm/visibility_controller.h',
[email protected]cad77b32012-01-19 06:23:04193 'wm/window_animations.cc',
[email protected]6aa614a2012-01-19 22:13:38194 'wm/window_animations.h',
[email protected]40c4cbb2012-01-10 23:26:07195 'wm/window_cycle_controller.cc',
196 'wm/window_cycle_controller.h',
[email protected]194ad1d2012-01-18 18:22:51197 'wm/window_cycle_list.cc',
198 'wm/window_cycle_list.h',
[email protected]2a48ad62011-12-24 00:19:29199 'wm/window_frame.cc',
200 'wm/window_frame.h',
[email protected]80373572012-01-06 23:14:30201 'wm/window_modality_controller.cc',
202 'wm/window_modality_controller.h',
[email protected]2a48ad62011-12-24 00:19:29203 'wm/window_properties.cc',
204 'wm/window_properties.h',
[email protected]1dfd4022012-02-15 04:36:43205 'wm/window_resizer.cc',
206 'wm/window_resizer.h',
[email protected]2a48ad62011-12-24 00:19:29207 'wm/window_util.cc',
208 'wm/window_util.h',
209 'wm/workspace_controller.cc',
210 'wm/workspace_controller.h',
[email protected]8818cb92012-02-10 21:29:37211 'wm/workspace/managed_workspace.cc',
212 'wm/workspace/managed_workspace.h',
213 'wm/workspace/maximized_workspace.cc',
214 'wm/workspace/maximized_workspace.h',
[email protected]2a48ad62011-12-24 00:19:29215 'wm/workspace/workspace.cc',
216 'wm/workspace/workspace.h',
[email protected]9633a9d22012-01-21 16:40:58217 'wm/workspace/workspace_event_filter.cc',
218 'wm/workspace/workspace_event_filter.h',
219 'wm/workspace/workspace_layout_manager.cc',
220 'wm/workspace/workspace_layout_manager.h',
[email protected]2a48ad62011-12-24 00:19:29221 'wm/workspace/workspace_manager.cc',
222 'wm/workspace/workspace_manager.h',
[email protected]5ae18722012-02-25 22:30:50223 'wm/workspace/workspace_window_resizer.cc',
224 'wm/workspace/workspace_window_resizer.h',
[email protected]2a48ad62011-12-24 00:19:29225 ],
[email protected]6e9f6aa2012-02-09 04:16:20226 'conditions': [
227 ['OS=="mac"', {
228 'sources/': [
229 ['exclude', 'accelerators/accelerator_controller.cc'],
230 ['exclude', 'accelerators/accelerator_controller.h'],
231 ['exclude', 'accelerators/accelerator_dispatcher.cc'],
232 ['exclude', 'accelerators/accelerator_dispatcher.h'],
233 ['exclude', 'accelerators/accelerator_filter.cc'],
234 ['exclude', 'accelerators/accelerator_filter.h'],
235 ['exclude', 'accelerators/nested_dispatcher_controller.cc'],
236 ['exclude', 'accelerators/nested_dispatcher_controller.h'],
237 ],
238 }],
239 ],
[email protected]2a48ad62011-12-24 00:19:29240 },
241 {
242 'target_name': 'aura_shell_unittests',
243 'type': 'executable',
244 'dependencies': [
245 '../base/base.gyp:base',
246 '../base/base.gyp:test_support_base',
247 '../chrome/chrome_resources.gyp:packed_resources',
248 '../build/temp_gyp/googleurl.gyp:googleurl',
249 '../skia/skia.gyp:skia',
250 '../testing/gtest.gyp:gtest',
251 '../third_party/icu/icu.gyp:icui18n',
252 '../third_party/icu/icu.gyp:icuuc',
253 '../ui/aura/aura.gyp:aura',
254 '../ui/aura/aura.gyp:test_support_aura',
[email protected]578c81b2012-01-27 07:25:02255 '../ui/gfx/compositor/compositor.gyp:compositor',
[email protected]2a48ad62011-12-24 00:19:29256 '../ui/gfx/compositor/compositor.gyp:compositor_test_support',
257 '../ui/ui.gyp:gfx_resources',
258 '../ui/ui.gyp:ui',
259 '../ui/ui.gyp:ui_resources',
260 '../ui/ui.gyp:ui_resources_standard',
261 '../ui/views/views.gyp:views',
262 'ash',
263 ],
264 'sources': [
[email protected]5eae7162012-01-04 00:31:02265 '../ui/views/test/test_views_delegate.cc',
266 '../ui/views/test/test_views_delegate.h',
[email protected]2a48ad62011-12-24 00:19:29267 'accelerators/accelerator_controller_unittest.cc',
[email protected]47460f92012-01-21 16:15:13268 'accelerators/accelerator_filter_unittest.cc',
[email protected]5985fa32012-03-02 04:44:04269 'accelerators/nested_dispatcher_controller_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29270 'drag_drop/drag_drop_controller_unittest.cc',
[email protected]df1c9862012-02-27 10:37:31271 'focus_cycler_unittest.cc',
[email protected]2c456102011-12-26 06:26:34272 'ime/input_method_event_filter_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29273 'launcher/launcher_model_unittest.cc',
274 'launcher/launcher_unittest.cc',
275 'launcher/view_model_unittest.cc',
276 'launcher/view_model_utils_unittest.cc',
277 'shell_unittest.cc',
278 'test/ash_unittests.cc',
[email protected]1dd1c1b2012-02-17 22:04:47279 'test/ash_test_base.cc',
280 'test/ash_test_base.h',
[email protected]2a48ad62011-12-24 00:19:29281 'test/test_activation_delegate.cc',
282 'test/test_activation_delegate.h',
283 'test/test_shell_delegate.cc',
284 'test/test_shell_delegate.h',
285 'test/test_suite.cc',
286 'test/test_suite.h',
[email protected]a0fea7e2012-01-30 17:43:33287 'test/test_suite_init.h',
288 'test/test_suite_init.mm',
[email protected]2a48ad62011-12-24 00:19:29289 'tooltips/tooltip_controller_unittest.cc',
290 'wm/activation_controller_unittest.cc',
[email protected]fc7b7442012-01-18 23:57:05291 'wm/base_layout_manager_unittest.cc',
292 'wm/compact_layout_manager_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29293 'wm/image_grid_unittest.cc',
[email protected]6b854932012-02-04 16:44:27294 'wm/panel_layout_manager_unittest.cc',
[email protected]e0d22e82012-01-04 00:46:57295 'wm/power_button_controller_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29296 'wm/root_window_event_filter_unittest.cc',
297 'wm/shadow_controller_unittest.cc',
298 'wm/shelf_layout_manager_unittest.cc',
[email protected]6b854932012-02-04 16:44:27299 'wm/system_modal_container_layout_manager_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29300 'wm/toplevel_layout_manager_unittest.cc',
301 'wm/toplevel_window_event_filter_unittest.cc',
[email protected]6aa614a2012-01-19 22:13:38302 'wm/video_detector_unittest.cc',
[email protected]ddd91e92012-01-27 16:03:48303 'wm/visibility_controller_unittest.cc',
[email protected]40c4cbb2012-01-10 23:26:07304 'wm/window_cycle_controller_unittest.cc',
[email protected]80373572012-01-06 23:14:30305 'wm/window_modality_controller_unittest.cc',
[email protected]5985fa32012-03-02 04:44:04306 'wm/workspace/workspace_event_filter_unittest.cc',
[email protected]6de3a0112012-02-04 03:57:50307 'wm/workspace/workspace_manager_unittest.cc',
[email protected]5ae18722012-02-25 22:30:50308 'wm/workspace/workspace_window_resizer_unittest.cc',
[email protected]2a48ad62011-12-24 00:19:29309
310 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
311 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
312 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
313 ],
314 'conditions': [
[email protected]2c456102011-12-26 06:26:34315 ['use_ibus==1', {
316 'dependencies': [
317 '../build/linux/system.gyp:ibus',
318 ],
319 }],
[email protected]df1c9862012-02-27 10:37:31320 ['OS=="win"', {
321 # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906
322 'sources/': [
323 ['exclude', 'focus_cycler_unittest.cc'],
324 ],
325 }],
[email protected]03decaa12012-01-25 15:53:15326 ['OS=="mac"', {
327 'sources/': [
[email protected]6e9f6aa2012-02-09 04:16:20328 ['exclude', 'accelerators/accelerator_controller_unittest.cc'],
[email protected]a0fea7e2012-01-30 17:43:33329 ['exclude', 'accelerators/accelerator_filter_unittest.cc'],
[email protected]90a81712012-02-29 05:47:26330 ['exclude', 'accelerators/nested_dispatcher_controller_unittest.cc'],
[email protected]03decaa12012-01-25 15:53:15331 ['exclude', 'drag_drop/drag_drop_controller_unittest.cc'],
[email protected]a0fea7e2012-01-30 17:43:33332 ['exclude', 'tooltips/tooltip_controller_unittest.cc'],
[email protected]03decaa12012-01-25 15:53:15333 ],
[email protected]a0fea7e2012-01-30 17:43:33334 'dependencies': [
335 # Mac tests access resources via the 'AuraShell.app' directory.
336 'ash_shell',
337 ],
338 # Special linker instructions that avoids stripping Obj-C classes that
339 # are not referenced in code, but are referenced in nibs.
340 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
[email protected]03decaa12012-01-25 15:53:15341 }],
[email protected]2a48ad62011-12-24 00:19:29342 ],
343 },
344 {
345 'target_name': 'ash_shell',
346 'type': 'executable',
347 'dependencies': [
348 '../base/base.gyp:base',
349 '../base/base.gyp:base_i18n',
350 '../chrome/chrome_resources.gyp:packed_resources',
351 '../skia/skia.gyp:skia',
352 '../third_party/icu/icu.gyp:icui18n',
353 '../third_party/icu/icu.gyp:icuuc',
354 '../ui/aura/aura.gyp:aura',
355 '../ui/gfx/compositor/compositor.gyp:compositor',
356 '../ui/gfx/compositor/compositor.gyp:compositor_test_support',
357 '../ui/ui.gyp:gfx_resources',
358 '../ui/ui.gyp:ui',
359 '../ui/ui.gyp:ui_resources',
360 '../ui/ui.gyp:ui_resources_standard',
361 '../ui/views/views.gyp:views',
362 '../ui/views/views.gyp:views_examples_lib',
363 'ash',
364 ],
365 'sources': [
366 'shell/app_list.cc',
367 'shell/bubble.cc',
368 'shell/example_factory.h',
369 'shell/lock_view.cc',
[email protected]6b854932012-02-04 16:44:27370 'shell/panel_window.cc',
371 'shell/panel_window.h',
[email protected]2a48ad62011-12-24 00:19:29372 'shell/shell_main.cc',
[email protected]b72dfb242012-01-18 00:04:18373 'shell/shell_main_parts.cc',
[email protected]a0fea7e2012-01-30 17:43:33374 'shell/shell_main_parts.h',
[email protected]b72dfb242012-01-18 00:04:18375 'shell/shell_main_parts_mac.mm',
[email protected]2a48ad62011-12-24 00:19:29376 'shell/toplevel_window.cc',
377 'shell/toplevel_window.h',
378 'shell/widgets.cc',
379 'shell/window_type_launcher.cc',
380 'shell/window_type_launcher.h',
381 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
382 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
383 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
384 '../ui/views/test/test_views_delegate.cc',
385 ],
[email protected]6f637732012-01-19 03:15:34386 'conditions': [
387 ['OS=="mac"', {
388 'product_name': 'AuraShell',
389 'mac_bundle': 1,
390 'sources/': [
391 ['exclude', 'shell/shell_main_parts.cc'],
392 ],
393 'mac_bundle_resources': [
394 'shell/cocoa/app.icns',
395 'shell/cocoa/app-Info.plist',
396 'shell/cocoa/nibs/MainMenu.xib',
397 'shell/cocoa/nibs/RootWindow.xib',
398 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
399 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
400 ],
401 'mac_bundle_resources!': [
402 'shell/cocoa/app-Info.plist',
403 ],
404 'xcode_settings': {
405 'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist',
406 },
407 }],
408 ],
[email protected]2a48ad62011-12-24 00:19:29409 },
[email protected]4e0e2b22012-02-01 10:45:51410 ],
[email protected]2a48ad62011-12-24 00:19:29411}