chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / ash / ash.gyp
blob2202d08a9c691259af0f3b93695e61a2bb47063e
1 # Copyright (c) 2012 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     'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
9   },
11   'targets': [
12     {
13       'target_name': 'ash',
14       'type': '<(component)',
15       'dependencies': [
16         'ash_strings.gyp:ash_strings',
17         '../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',
40         'accelerators/accelerator_dispatcher.cc',
41         'accelerators/accelerator_dispatcher.h',
42         'accelerators/accelerator_dispatcher_linux.cc',
43         'accelerators/accelerator_dispatcher_win.cc',
44         'accelerators/accelerator_filter.cc',
45         'accelerators/accelerator_filter.h',
46         'accelerators/nested_dispatcher_controller.cc',
47         'accelerators/nested_dispatcher_controller.h',
48         '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',
71         'brightness_control_delegate.h',
72         'caps_lock_delegate.h',
73         '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',
79         'focus_cycler.cc',
80         'focus_cycler.h',
81         'ime/event.cc',
82         'ime/event.h',
83         'ime/input_method_event_filter.cc',
84         'ime/input_method_event_filter.h',
85         'launcher/app_launcher_button.cc',
86         'launcher/app_launcher_button.h',
87         'launcher/launcher.cc',
88         'launcher/launcher.h',
89         'launcher/launcher_delegate.h',
90         'launcher/launcher_model.cc',
91         'launcher/launcher_model.h',
92         'launcher/launcher_model_observer.h',
93         'launcher/launcher_types.cc',
94         'launcher/launcher_types.h',
95         'launcher/launcher_view.cc',
96         'launcher/launcher_view.h',
97         'launcher/launcher_window_cycler.cc',
98         'launcher/launcher_window_cycler.h',
99         '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',
105         'screenshot_delegate.h',
106         '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',
115         'volume_control_delegate.h',
116         'wm/activation_controller.cc',
117         'wm/activation_controller.h',
118         'wm/always_on_top_controller.cc',
119         'wm/always_on_top_controller.h',
120         'wm/base_layout_manager.cc',
121         'wm/base_layout_manager.h',
122         'wm/compact_layout_manager.cc',
123         'wm/compact_layout_manager.h',
124         'wm/compact_status_area_layout_manager.cc',
125         'wm/compact_status_area_layout_manager.h',
126         'wm/dialog_frame_view.cc',
127         'wm/dialog_frame_view.h',
128         'wm/image_grid.cc',
129         'wm/image_grid.h',
130         'wm/panel_frame_view.cc',
131         'wm/panel_frame_view.h',
132         'wm/panel_layout_manager.cc',
133         'wm/panel_layout_manager.h',
134         'wm/system_modal_container_layout_manager.cc',
135         'wm/system_modal_container_layout_manager.h',
136         'wm/system_modal_container_event_filter.cc',
137         'wm/system_modal_container_event_filter.h',
138         'wm/system_modal_container_event_filter_delegate.h',
139         'wm/power_button_controller.cc',
140         'wm/power_button_controller.h',
141         'wm/property_util.cc',
142         'wm/property_util.h',
143         'wm/root_window_event_filter.cc',
144         'wm/root_window_event_filter.h',
145         'wm/root_window_layout_manager.cc',
146         'wm/root_window_layout_manager.h',
147         'wm/shadow.cc',
148         'wm/shadow.h',
149         'wm/shadow_controller.cc',
150         'wm/shadow_controller.h',
151         'wm/shadow_types.cc',
152         'wm/shadow_types.h',
153         'wm/shelf_layout_manager.cc',
154         'wm/shelf_layout_manager.h',
155         'wm/stacking_controller.cc',
156         'wm/stacking_controller.h',
157         'wm/status_area_layout_manager.cc',
158         'wm/status_area_layout_manager.h',
159         'wm/toplevel_frame_view.cc',
160         'wm/toplevel_frame_view.h',
161         'wm/toplevel_layout_manager.cc',
162         'wm/toplevel_layout_manager.h',
163         'wm/toplevel_window_event_filter.cc',
164         'wm/toplevel_window_event_filter.h',
165         'wm/video_detector.cc',
166         'wm/video_detector.h',
167         'wm/visibility_controller.cc',
168         'wm/visibility_controller.h',
169         'wm/window_animations.cc',
170         'wm/window_animations.h',
171         'wm/window_cycle_controller.cc',
172         'wm/window_cycle_controller.h',
173         'wm/window_cycle_list.cc',
174         'wm/window_cycle_list.h',
175         'wm/window_frame.cc',
176         'wm/window_frame.h',
177         'wm/window_modality_controller.cc',
178         'wm/window_modality_controller.h',
179         'wm/window_properties.cc',
180         'wm/window_properties.h',
181         'wm/window_resizer.cc',
182         'wm/window_resizer.h',
183         'wm/window_util.cc',
184         'wm/window_util.h',
185         'wm/workspace_controller.cc',
186         'wm/workspace_controller.h',
187         'wm/workspace/managed_workspace.cc',
188         'wm/workspace/managed_workspace.h',
189         'wm/workspace/maximized_workspace.cc',
190         'wm/workspace/maximized_workspace.h',
191         'wm/workspace/workspace.cc',
192         'wm/workspace/workspace.h',
193         'wm/workspace/workspace_event_filter.cc',
194         'wm/workspace/workspace_event_filter.h',
195         'wm/workspace/workspace_layout_manager.cc',
196         'wm/workspace/workspace_layout_manager.h',
197         'wm/workspace/workspace_manager.cc',
198         'wm/workspace/workspace_manager.h',
199       ],
200       'conditions': [
201         ['OS=="mac"', {
202           'sources/': [
203             ['exclude', 'accelerators/accelerator_controller.cc'],
204             ['exclude', 'accelerators/accelerator_controller.h'],
205             ['exclude', 'accelerators/accelerator_dispatcher.cc'],
206             ['exclude', 'accelerators/accelerator_dispatcher.h'],
207             ['exclude', 'accelerators/accelerator_filter.cc'],
208             ['exclude', 'accelerators/accelerator_filter.h'],
209             ['exclude', 'accelerators/nested_dispatcher_controller.cc'],
210             ['exclude', 'accelerators/nested_dispatcher_controller.h'],
211           ],
212         }],
213       ],
214     },
215     {
216       'target_name': 'aura_shell_unittests',
217       'type': 'executable',
218       'dependencies': [
219         '../base/base.gyp:base',
220         '../base/base.gyp:test_support_base',
221         '../chrome/chrome_resources.gyp:packed_resources',
222         '../build/temp_gyp/googleurl.gyp:googleurl',
223         '../skia/skia.gyp:skia',
224         '../testing/gtest.gyp:gtest',
225         '../third_party/icu/icu.gyp:icui18n',
226         '../third_party/icu/icu.gyp:icuuc',
227         '../ui/aura/aura.gyp:aura',
228         '../ui/aura/aura.gyp:test_support_aura',
229         '../ui/gfx/compositor/compositor.gyp:compositor',
230         '../ui/gfx/compositor/compositor.gyp:compositor_test_support',
231         '../ui/ui.gyp:gfx_resources',
232         '../ui/ui.gyp:ui',
233         '../ui/ui.gyp:ui_resources',
234         '../ui/ui.gyp:ui_resources_standard',
235         '../ui/views/views.gyp:views',
236         'ash',
237       ],
238       'sources': [
239         '../ui/views/test/test_views_delegate.cc',
240         '../ui/views/test/test_views_delegate.h',
241         'accelerators/accelerator_controller_unittest.cc',
242         'accelerators/accelerator_filter_unittest.cc',
243         'drag_drop/drag_drop_controller_unittest.cc',
244         'ime/input_method_event_filter_unittest.cc',
245         'launcher/launcher_model_unittest.cc',
246         'launcher/launcher_unittest.cc',
247         'launcher/view_model_unittest.cc',
248         'launcher/view_model_utils_unittest.cc',
249         'shell_unittest.cc',
250         'test/ash_unittests.cc',
251         'test/aura_shell_test_base.cc',
252         'test/aura_shell_test_base.h',
253         'test/test_activation_delegate.cc',
254         'test/test_activation_delegate.h',
255         'test/test_shell_delegate.cc',
256         'test/test_shell_delegate.h',
257         'test/test_suite.cc',
258         'test/test_suite.h',
259         'test/test_suite_init.h',
260         'test/test_suite_init.mm',
261         'tooltips/tooltip_controller_unittest.cc',
262         'wm/activation_controller_unittest.cc',
263         'wm/base_layout_manager_unittest.cc',
264         'wm/compact_layout_manager_unittest.cc',
265         'wm/image_grid_unittest.cc',
266         'wm/panel_layout_manager_unittest.cc',
267         'wm/power_button_controller_unittest.cc',
268         'wm/root_window_event_filter_unittest.cc',
269         'wm/shadow_controller_unittest.cc',
270         'wm/shelf_layout_manager_unittest.cc',
271         'wm/system_modal_container_layout_manager_unittest.cc',
272         'wm/toplevel_layout_manager_unittest.cc',
273         'wm/toplevel_window_event_filter_unittest.cc',
274         'wm/video_detector_unittest.cc',
275         'wm/visibility_controller_unittest.cc',
276         'wm/window_cycle_controller_unittest.cc',
277         'wm/window_modality_controller_unittest.cc',
278         'wm/workspace/workspace_manager_unittest.cc',
279         'wm/workspace_controller_unittest.cc',
281         '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
282         '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
283         '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
284       ],
285       'conditions': [
286         ['use_ibus==1', {
287           'dependencies': [
288             '../build/linux/system.gyp:ibus',
289           ],
290         }],
291         ['OS=="mac"', {
292           'sources/': [
293             ['exclude', 'accelerators/accelerator_controller_unittest.cc'],
294             ['exclude', 'accelerators/accelerator_filter_unittest.cc'],
295             ['exclude', 'drag_drop/drag_drop_controller_unittest.cc'],
296             ['exclude', 'tooltips/tooltip_controller_unittest.cc'],
297           ],
298           'dependencies': [
299             # Mac tests access resources via the 'AuraShell.app' directory.
300             'ash_shell',
301           ],
302           # Special linker instructions that avoids stripping Obj-C classes that
303           # are not referenced in code, but are referenced in nibs.
304           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
305         }],
306       ],
307     },
308     {
309       'target_name': 'ash_shell',
310       'type': 'executable',
311       'dependencies': [
312         '../base/base.gyp:base',
313         '../base/base.gyp:base_i18n',
314         '../chrome/chrome_resources.gyp:packed_resources',
315         '../skia/skia.gyp:skia',
316         '../third_party/icu/icu.gyp:icui18n',
317         '../third_party/icu/icu.gyp:icuuc',
318         '../ui/aura/aura.gyp:aura',
319         '../ui/gfx/compositor/compositor.gyp:compositor',
320         '../ui/gfx/compositor/compositor.gyp:compositor_test_support',
321         '../ui/ui.gyp:gfx_resources',
322         '../ui/ui.gyp:ui',
323         '../ui/ui.gyp:ui_resources',
324         '../ui/ui.gyp:ui_resources_standard',
325         '../ui/views/views.gyp:views',
326         '../ui/views/views.gyp:views_examples_lib',
327         'ash',
328       ],
329       'sources': [
330         'shell/app_list.cc',
331         'shell/bubble.cc',
332         'shell/example_factory.h',
333         'shell/lock_view.cc',
334         'shell/panel_window.cc',
335         'shell/panel_window.h',
336         'shell/shell_main.cc',
337         'shell/shell_main_parts.cc',
338         'shell/shell_main_parts.h',
339         'shell/shell_main_parts_mac.mm',
340         'shell/toplevel_window.cc',
341         'shell/toplevel_window.h',
342         'shell/widgets.cc',
343         'shell/window_type_launcher.cc',
344         'shell/window_type_launcher.h',
345         '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
346         '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
347         '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
348         '../ui/views/test/test_views_delegate.cc',
349       ],
350       'conditions': [
351         ['OS=="mac"', {
352           'product_name': 'AuraShell',
353           'mac_bundle': 1,
354           'sources/': [
355             ['exclude', 'shell/shell_main_parts.cc'],
356           ],
357           'mac_bundle_resources': [
358             'shell/cocoa/app.icns',
359             'shell/cocoa/app-Info.plist',
360             'shell/cocoa/nibs/MainMenu.xib',
361             'shell/cocoa/nibs/RootWindow.xib',
362             '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
363             '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
364           ],
365           'mac_bundle_resources!': [
366             'shell/cocoa/app-Info.plist',
367           ],
368           'xcode_settings': {
369             'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist',
370           },
371         }],
372       ],
373     },
374   ],