Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: ui/base/ui_base.gyp

Issue 2306743002: Nukes the gyp/gypi files in ui (Closed)
Patch Set: keep webui Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/ime/ui_base_ime.gyp ('k') | ui/base/ui_base_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 # GN version: //ui/base:ui_data_pack
12 # As part of building Chrome on iOS, it is necessary to run a tool on
13 # the host to load datapack and generate output in a format defined
14 # by the platform (this is to support notifications).
15 #
16 # Introduce a standalone target that build on both 'host' and 'target'
17 # toolset that just build the support to load datapack. The dependency
18 # should be kept minimal to have to build too many targets with multiple
19 # toolsets.
20 'target_name': 'ui_data_pack',
21 'toolsets': ['host', 'target'],
22 'type': '<(component)',
23 'dependencies': [
24 '../../base/base.gyp:base',
25 ],
26 'sources': [
27 'resource/data_pack.cc',
28 'resource/data_pack.h',
29 'resource/data_pack_export.h',
30 'resource/resource_handle.h',
31 'resource/scale_factor.cc',
32 'resource/scale_factor.h',
33 ],
34 'defines': [
35 'UI_DATA_PACK_IMPLEMENTATION',
36 ],
37 'conditions': [
38 ['OS=="win"', {
39 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
40 'msvs_disabled_warnings': [ 4267 ],
41 }],
42 ],
43 },
44 { # GN version: //ui/base:ui_features
45 'target_name': 'ui_features',
46 'includes': [ '../../build/buildflag_header.gypi' ],
47 'variables': {
48 'buildflag_header_path': 'ui/base/ui_features.h',
49 'buildflag_flags': [
50 'ENABLE_HIDPI=<(enable_hidpi)',
51 ],
52 },
53 },
54 {
55 # GN version: //ui/base
56 'target_name': 'ui_base',
57 'type': '<(component)',
58 'dependencies': [
59 'ui_data_pack',
60 'ui_features',
61 '../../base/base.gyp:base',
62 '../../base/base.gyp:base_i18n',
63 '../../base/base.gyp:base_static',
64 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations',
65 '../../net/net.gyp:net',
66 '../../skia/skia.gyp:skia',
67 '../../third_party/icu/icu.gyp:icui18n',
68 '../../third_party/icu/icu.gyp:icuuc',
69 '../../third_party/zlib/zlib.gyp:zlib',
70 '../../url/url.gyp:url_lib',
71 '../display/display.gyp:display',
72 '../events/events.gyp:events',
73 '../events/events.gyp:events_base',
74 '../events/platform/events_platform.gyp:events_platform',
75 '../gfx/gfx.gyp:gfx',
76 '../gfx/gfx.gyp:gfx_geometry',
77 '../gfx/gfx.gyp:gfx_range',
78 '../resources/ui_resources.gyp:ui_resources',
79 '../strings/ui_strings.gyp:ui_strings',
80 ],
81 'defines': [
82 'UI_BASE_IMPLEMENTATION',
83 ],
84 'export_dependent_settings': [
85 '../../net/net.gyp:net',
86 '../../skia/skia.gyp:skia',
87 '../gfx/gfx.gyp:gfx',
88 ],
89 'sources' : [
90 # Note: file list duplicated in GN build.
91 'accelerators/accelerator.cc',
92 'accelerators/accelerator.h',
93 'accelerators/accelerator_history.cc',
94 'accelerators/accelerator_history.h',
95 'accelerators/accelerator_manager.cc',
96 'accelerators/accelerator_manager.h',
97 'accelerators/accelerator_manager_delegate.h',
98 'accelerators/menu_label_accelerator_util_linux.cc',
99 'accelerators/menu_label_accelerator_util_linux.h',
100 'accelerators/platform_accelerator.h',
101 'accelerators/platform_accelerator_cocoa.h',
102 'accelerators/platform_accelerator_cocoa.mm',
103 'android/ui_base_jni_registrar.cc',
104 'android/ui_base_jni_registrar.h',
105 'base_window.cc',
106 'base_window.h',
107 'clipboard/clipboard.cc',
108 'clipboard/clipboard.h',
109 'clipboard/clipboard_android.cc',
110 'clipboard/clipboard_android.h',
111 'clipboard/clipboard_aura.cc',
112 'clipboard/clipboard_aura.h',
113 'clipboard/clipboard_aurax11.cc',
114 'clipboard/clipboard_aurax11.h',
115 'clipboard/clipboard_constants.cc',
116 'clipboard/clipboard_mac.h',
117 'clipboard/clipboard_mac.mm',
118 'clipboard/clipboard_monitor.cc',
119 'clipboard/clipboard_monitor.h',
120 'clipboard/clipboard_observer.h',
121 'clipboard/clipboard_types.h',
122 'clipboard/clipboard_util_mac.h',
123 'clipboard/clipboard_util_mac.mm',
124 'clipboard/clipboard_util_win.cc',
125 'clipboard/clipboard_util_win.h',
126 'clipboard/clipboard_win.cc',
127 'clipboard/clipboard_win.h',
128 'clipboard/custom_data_helper.cc',
129 'clipboard/custom_data_helper.h',
130 'clipboard/custom_data_helper_mac.mm',
131 'clipboard/scoped_clipboard_writer.cc',
132 'clipboard/scoped_clipboard_writer.h',
133 'cocoa/animation_utils.h',
134 'cocoa/appkit_utils.h',
135 'cocoa/appkit_utils.mm',
136 'cocoa/base_view.h',
137 'cocoa/base_view.mm',
138 'cocoa/cocoa_base_utils.h',
139 'cocoa/cocoa_base_utils.mm',
140 'cocoa/command_dispatcher.h',
141 'cocoa/command_dispatcher.mm',
142 'cocoa/constrained_window/constrained_window_animation.h',
143 'cocoa/constrained_window/constrained_window_animation.mm',
144 'cocoa/controls/blue_label_button.h',
145 'cocoa/controls/blue_label_button.mm',
146 'cocoa/controls/hover_image_menu_button.h',
147 'cocoa/controls/hover_image_menu_button.mm',
148 'cocoa/controls/hover_image_menu_button_cell.h',
149 'cocoa/controls/hover_image_menu_button_cell.mm',
150 'cocoa/controls/hyperlink_button_cell.h',
151 'cocoa/controls/hyperlink_button_cell.mm',
152 'cocoa/controls/hyperlink_text_view.h',
153 'cocoa/controls/hyperlink_text_view.mm',
154 'cocoa/find_pasteboard.h',
155 'cocoa/find_pasteboard.mm',
156 'cocoa/flipped_view.h',
157 'cocoa/flipped_view.mm',
158 'cocoa/focus_tracker.h',
159 'cocoa/focus_tracker.mm',
160 'cocoa/focus_window_set.h',
161 'cocoa/focus_window_set.mm',
162 'cocoa/fullscreen_window_manager.h',
163 'cocoa/fullscreen_window_manager.mm',
164 'cocoa/hover_button.h',
165 'cocoa/hover_button.mm',
166 'cocoa/hover_image_button.h',
167 'cocoa/hover_image_button.mm',
168 'cocoa/menu_controller.h',
169 'cocoa/menu_controller.mm',
170 'cocoa/nib_loading.h',
171 'cocoa/nib_loading.mm',
172 'cocoa/nscolor_additions.h',
173 'cocoa/nscolor_additions.mm',
174 'cocoa/nsgraphics_context_additions.h',
175 'cocoa/nsgraphics_context_additions.mm',
176 'cocoa/nsview_additions.h',
177 'cocoa/nsview_additions.mm',
178 'cocoa/remote_layer_api.h',
179 'cocoa/remote_layer_api.mm',
180 'cocoa/scoped_cg_context_smooth_fonts.h',
181 'cocoa/scoped_cg_context_smooth_fonts.mm',
182 'cocoa/three_part_image.h',
183 'cocoa/three_part_image.mm',
184 'cocoa/tool_tip_base_view.h',
185 'cocoa/tool_tip_base_view.mm',
186 'cocoa/tracking_area.h',
187 'cocoa/tracking_area.mm',
188 'cocoa/underlay_opengl_hosting_window.h',
189 'cocoa/underlay_opengl_hosting_window.mm',
190 'cocoa/user_interface_item_command_handler.h',
191 'cocoa/view_description.h',
192 'cocoa/view_description.mm',
193 'cocoa/window_size_constants.h',
194 'cocoa/window_size_constants.mm',
195 'cursor/cursor.cc',
196 'cursor/cursor.h',
197 'cursor/cursor_android.cc',
198 'cursor/cursor_loader.h',
199 'cursor/cursor_loader_android.cc',
200 'cursor/cursor_loader_ozone.cc',
201 'cursor/cursor_loader_ozone.h',
202 'cursor/cursor_loader_win.cc',
203 'cursor/cursor_loader_win.h',
204 'cursor/cursor_loader_x11.cc',
205 'cursor/cursor_loader_x11.h',
206 'cursor/cursor_ozone.cc',
207 'cursor/cursor_util.cc',
208 'cursor/cursor_util.h',
209 'cursor/cursor_win.cc',
210 'cursor/cursor_x11.cc',
211 'cursor/cursors_aura.cc',
212 'cursor/cursors_aura.h',
213 'cursor/image_cursors.cc',
214 'cursor/image_cursors.h',
215 'cursor/ozone/bitmap_cursor_factory_ozone.cc',
216 'cursor/ozone/bitmap_cursor_factory_ozone.h',
217 'default_style.h',
218 'default_theme_provider.cc',
219 'default_theme_provider.h',
220 'default_theme_provider_mac.mm',
221 'device_form_factor.h',
222 'device_form_factor_android.cc',
223 'device_form_factor_desktop.cc',
224 'device_form_factor_ios.mm',
225 'dragdrop/cocoa_dnd_util.h',
226 'dragdrop/cocoa_dnd_util.mm',
227 'dragdrop/drag_drop_types.h',
228 'dragdrop/drag_drop_types_mac.mm',
229 'dragdrop/drag_drop_types_win.cc',
230 'dragdrop/drag_source_win.cc',
231 'dragdrop/drag_source_win.h',
232 'dragdrop/drag_utils.cc',
233 'dragdrop/drag_utils.h',
234 'dragdrop/drag_utils_win.cc',
235 'dragdrop/drop_target_event.cc',
236 'dragdrop/drop_target_event.h',
237 'dragdrop/drop_target_win.cc',
238 'dragdrop/drop_target_win.h',
239 'dragdrop/file_info.cc',
240 'dragdrop/file_info.h',
241 'dragdrop/os_exchange_data.cc',
242 'dragdrop/os_exchange_data.h',
243 'dragdrop/os_exchange_data_provider_aura.cc',
244 'dragdrop/os_exchange_data_provider_aura.h',
245 'dragdrop/os_exchange_data_provider_builder_mac.h',
246 'dragdrop/os_exchange_data_provider_builder_mac.mm',
247 'dragdrop/os_exchange_data_provider_aurax11.cc',
248 'dragdrop/os_exchange_data_provider_aurax11.h',
249 'dragdrop/os_exchange_data_provider_factory.cc',
250 'dragdrop/os_exchange_data_provider_factory.h',
251 'dragdrop/os_exchange_data_provider_mac.h',
252 'dragdrop/os_exchange_data_provider_mac.mm',
253 'dragdrop/os_exchange_data_provider_win.cc',
254 'dragdrop/os_exchange_data_provider_win.h',
255 'hit_test.h',
256 'idle/idle.cc',
257 'idle/idle.h',
258 'idle/idle_android.cc',
259 'idle/idle_chromeos.cc',
260 'idle/idle_linux.cc',
261 'idle/idle_mac.mm',
262 'idle/idle_query_x11.cc',
263 'idle/idle_query_x11.h',
264 'idle/idle_win.cc',
265 'idle/screensaver_window_finder_x11.cc',
266 'idle/screensaver_window_finder_x11.h',
267 'l10n/formatter.cc',
268 'l10n/formatter.h',
269 'l10n/l10n_font_util.cc',
270 'l10n/l10n_font_util.h',
271 'l10n/l10n_util.cc',
272 'l10n/l10n_util.h',
273 'l10n/l10n_util_android.cc',
274 'l10n/l10n_util_android.h',
275 'l10n/l10n_util_collator.h',
276 'l10n/l10n_util_mac.h',
277 'l10n/l10n_util_mac.mm',
278 'l10n/l10n_util_posix.cc',
279 'l10n/l10n_util_win.cc',
280 'l10n/l10n_util_win.h',
281 'l10n/time_format.cc',
282 'l10n/time_format.h',
283 'layout.cc',
284 'layout.h',
285 'layout_mac.mm',
286 'material_design/material_design_controller.cc',
287 'material_design/material_design_controller.h',
288 'models/button_menu_item_model.cc',
289 'models/button_menu_item_model.h',
290 'models/combobox_model.cc',
291 'models/combobox_model.h',
292 'models/combobox_model_observer.h',
293 'models/dialog_model.cc',
294 'models/dialog_model.h',
295 'models/list_model.h',
296 'models/list_model_observer.h',
297 'models/list_selection_model.cc',
298 'models/list_selection_model.h',
299 'models/menu_model.cc',
300 'models/menu_model.h',
301 'models/menu_model_delegate.h',
302 'models/menu_separator_types.h',
303 'models/simple_combobox_model.cc',
304 'models/simple_combobox_model.h',
305 'models/simple_menu_model.cc',
306 'models/simple_menu_model.h',
307 'models/table_model.cc',
308 'models/table_model.h',
309 'models/table_model_observer.h',
310 'models/tree_model.cc',
311 'models/tree_model.h',
312 'models/tree_node_iterator.h',
313 'models/tree_node_model.h',
314 'nine_image_painter_factory.cc',
315 'nine_image_painter_factory.h',
316 'page_transition_types.cc',
317 'page_transition_types.h',
318 'resource/resource_bundle.cc',
319 'resource/resource_bundle.h',
320 'resource/resource_bundle_android.cc',
321 'resource/resource_bundle_auralinux.cc',
322 'resource/resource_bundle_ios.mm',
323 'resource/resource_bundle_mac.mm',
324 'resource/resource_bundle_win.cc',
325 'resource/resource_bundle_win.h',
326 'resource/resource_data_dll_win.cc',
327 'resource/resource_data_dll_win.h',
328 'template_expressions.cc',
329 'template_expressions.h',
330 'text/bytes_formatting.cc',
331 'text/bytes_formatting.h',
332 'theme_provider.cc',
333 'theme_provider.h',
334 'touch/touch_device.cc',
335 'touch/touch_device.h',
336 'touch/touch_device_android.cc',
337 'touch/touch_device_ios.cc',
338 'touch/touch_device_linux.cc',
339 'touch/touch_device_win.cc',
340 'touch/touch_editing_controller.cc',
341 'touch/touch_editing_controller.h',
342 'touch/touch_enabled.cc',
343 'touch/touch_enabled.h',
344 'ui_base_export.h',
345 'ui_base_exports.cc',
346 'ui_base_paths.cc',
347 'ui_base_paths.h',
348 'ui_base_switches.cc',
349 'ui_base_switches.h',
350 'ui_base_switches_util.cc',
351 'ui_base_switches_util.h',
352 'ui_base_types.cc',
353 'ui_base_types.h',
354 'user_activity/user_activity_detector.cc',
355 'user_activity/user_activity_detector.h',
356 'user_activity/user_activity_observer.h',
357 'view_prop.cc',
358 'view_prop.h',
359 'webui/jstemplate_builder.cc',
360 'webui/jstemplate_builder.h',
361 'webui/web_ui_util.cc',
362 'webui/web_ui_util.h',
363 'win/accessibility_ids_win.h',
364 'win/accessibility_misc_utils.cc',
365 'win/accessibility_misc_utils.h',
366 'win/atl_module.h',
367 'win/foreground_helper.cc',
368 'win/foreground_helper.h',
369 'win/hidden_window.cc',
370 'win/hidden_window.h',
371 'win/hwnd_subclass.cc',
372 'win/hwnd_subclass.h',
373 'win/internal_constants.cc',
374 'win/internal_constants.h',
375 'win/lock_state.cc',
376 'win/lock_state.h',
377 'win/message_box_win.cc',
378 'win/message_box_win.h',
379 'win/mouse_wheel_util.cc',
380 'win/mouse_wheel_util.h',
381 'win/open_file_name_win.cc',
382 'win/open_file_name_win.h',
383 'win/osk_display_manager.cc',
384 'win/osk_display_manager.h',
385 'win/osk_display_observer.h',
386 'win/scoped_ole_initializer.cc',
387 'win/scoped_ole_initializer.h',
388 'win/shell.cc',
389 'win/shell.h',
390 'win/touch_input.cc',
391 'win/touch_input.h',
392 'win/window_event_target.cc',
393 'win/window_event_target.h',
394 'window_open_disposition.cc',
395 'window_open_disposition.h',
396 'work_area_watcher_observer.h',
397 'x/selection_owner.cc',
398 'x/selection_owner.h',
399 'x/selection_requestor.cc',
400 'x/selection_requestor.h',
401 'x/selection_utils.cc',
402 'x/selection_utils.h',
403 ],
404 'target_conditions': [
405 ['OS == "ios"', {
406 'sources/': [
407 ['include', '^l10n/l10n_util_mac\\.mm$'],
408 ],
409 }],
410 ],
411 'conditions': [
412 ['OS=="ios"', {
413 # iOS only uses a subset of UI.
414 'sources/': [
415 ['exclude', '\\.(cc|mm)$'],
416 ['include', '_ios\\.(cc|mm)$'],
417 ['include', '(^|/)ios/'],
418 ['include', '^l10n/'],
419 ['include', '^layout'],
420 ['include', '^material_design/'],
421 ['include', '^page_transition_type'],
422 ['include', '^resource/'],
423 ['include', 'template_expressions.cc'],
424 ['include', '^ui_base_'],
425 ['include', '^webui/'],
426 ['include', '^window_open_disposition\\.cc'],
427 ],
428 'link_settings': {
429 'libraries': [
430 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
431 ],
432 },
433 }],
434 ['use_aura==1', {
435 'sources/': [
436 ['exclude', 'clipboard/clipboard_mac.mm'],
437 ['exclude', 'layout_mac.mm'],
438 ['exclude', 'work_area_watcher_observer.h'],
439 ['include', 'window_tracker_template.h'],
440 ],
441 }, { # use_aura!=1
442 'sources!': [
443 'cursor/cursor.cc',
444 'cursor/cursor.h',
445 'cursor/cursor_loader_android.cc',
446 'cursor/cursor_loader_x11.cc',
447 'cursor/cursor_loader_x11.h',
448 'cursor/cursor_win.cc',
449 'cursor/cursor_x11.cc',
450 'x/selection_owner.cc',
451 'x/selection_owner.h',
452 'x/selection_requestor.cc',
453 'x/selection_requestor.h',
454 'x/selection_utils.cc',
455 'x/selection_utils.h',
456 ],
457 }],
458 ['use_aura==0 or OS!="linux"', {
459 'sources!': [
460 'resource/resource_bundle_auralinux.cc',
461 ],
462 }],
463 ['use_ozone==1', {
464 'dependencies': [
465 '../events/devices/events_devices.gyp:events_devices',
466 '../events/ozone/events_ozone.gyp:events_ozone_evdev',
467 '../events/ozone/events_ozone.gyp:events_ozone_layout',
468 '../ozone/ozone.gyp:ozone_base',
469 ],
470 }],
471 ['use_glib == 1', {
472 'dependencies': [
473 '../../build/linux/system.gyp:fontconfig',
474 '../../build/linux/system.gyp:glib',
475 ],
476 }],
477 ['OS=="linux"', {
478 'conditions': [
479 ['toolkit_views==0 and use_aura==0', {
480 # Note: because of gyp predence rules this has to be defined as
481 # 'sources/' rather than 'sources!'.
482 'sources/': [
483 ['exclude', '^dragdrop/drag_utils.cc'],
484 ['exclude', '^dragdrop/drag_utils.h'],
485 ],
486 }, {
487 'sources/': [
488 ['include', '^dragdrop/os_exchange_data.cc'],
489 ['include', '^dragdrop/os_exchange_data.h'],
490 ['include', '^nine_image_painter_factory.cc'],
491 ['include', '^nine_image_painter_factory.h'],
492 ],
493 }],
494 ],
495 }],
496 ['use_pango==1', {
497 'dependencies': [
498 '../../build/linux/system.gyp:pangocairo',
499 ],
500 }],
501 ['OS=="win" or use_clipboard_aurax11==1', {
502 'sources!': [
503 'clipboard/clipboard_aura.cc',
504 ],
505 }, {
506 'sources!': [
507 'clipboard/clipboard_aurax11.cc',
508 ],
509 }],
510 ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
511 'sources!': [
512 'dragdrop/os_exchange_data_provider_aurax11.cc',
513 ],
514 }, {
515 'sources!': [
516 'dragdrop/os_exchange_data_provider_aura.cc',
517 'dragdrop/os_exchange_data_provider_aura.h',
518 ],
519 }],
520 ['OS=="linux"', {
521 'sources!': [
522 'touch/touch_device.cc',
523 ],
524 }, {
525 'sources!': [
526 'touch/touch_device_linux.cc',
527 ],
528 }],
529 ['OS=="win"', {
530 'sources!': [
531 'touch/touch_device.cc',
532 ],
533 'include_dirs': [
534 '../..',
535 '../../third_party/wtl/include',
536 ],
537 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
538 # C4324 is structure was padded due to __declspec(align()), which is
539 # uninteresting.
540 'msvs_disabled_warnings': [ 4267, 4324 ],
541 'msvs_settings': {
542 'VCLinkerTool': {
543 'DelayLoadDLLs': [
544 'd2d1.dll',
545 'd3d10_1.dll',
546 'dwmapi.dll',
547 ],
548 'AdditionalDependencies': [
549 'd2d1.lib',
550 'd3d10_1.lib',
551 'dwmapi.lib',
552 ],
553 },
554 },
555 'link_settings': {
556 'libraries': [
557 '-ld2d1.lib',
558 '-ldwmapi.lib',
559 '-loleacc.lib',
560 ],
561 },
562 }, { # OS!="win"
563 'conditions': [
564 ['use_aura==0', {
565 'sources!': [
566 'view_prop.cc',
567 'view_prop.h',
568 ],
569 }],
570 ],
571 }],
572 ['OS=="mac"', {
573 'dependencies': [
574 '../../third_party/mozilla/mozilla.gyp:mozilla',
575 ],
576 'sources!': [
577 'cursor/image_cursors.cc',
578 'cursor/image_cursors.h',
579 ],
580 'link_settings': {
581 'libraries': [
582 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
583 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
584 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
585 ],
586 },
587 }],
588 ['use_x11==1', {
589 'all_dependent_settings': {
590 'ldflags': [
591 '-L<(PRODUCT_DIR)',
592 ],
593 },
594 'dependencies': [
595 '../../build/linux/system.gyp:x11',
596 '../../build/linux/system.gyp:xcursor',
597 '../../build/linux/system.gyp:xext',
598 '../../build/linux/system.gyp:xfixes',
599 '../../build/linux/system.gyp:xrender', # For XRender* function cal ls in x11_util.cc.
600 '../events/devices/events_devices.gyp:events_devices',
601 '../events/devices/x11/events_devices_x11.gyp:events_devices_x11',
602 '../events/platform/x11/x11_events_platform.gyp:x11_events_platform' ,
603 '../gfx/x/gfx_x11.gyp:gfx_x11',
604 'x/ui_base_x.gyp:ui_base_x',
605 ],
606 }],
607 ['use_x11==1 and chromeos==0', {
608 'dependencies': [
609 '../../build/linux/system.gyp:xscrnsaver',
610 ],
611 }],
612 ['toolkit_views==0', {
613 'sources!': [
614 'dragdrop/drag_drop_types.h',
615 'dragdrop/drop_target_event.cc',
616 'dragdrop/drop_target_event.h',
617 'dragdrop/os_exchange_data.cc',
618 'dragdrop/os_exchange_data.h',
619 'dragdrop/os_exchange_data_provider_factory.cc',
620 'dragdrop/os_exchange_data_provider_factory.h',
621 'nine_image_painter_factory.cc',
622 'nine_image_painter_factory.h',
623 ],
624 }],
625 ['OS=="android"', {
626 'sources!': [
627 'cursor/image_cursors.cc',
628 'cursor/image_cursors.h',
629 'default_theme_provider.cc',
630 'dragdrop/drag_utils.cc',
631 'dragdrop/drag_utils.h',
632 'l10n/l10n_font_util.cc',
633 'models/button_menu_item_model.cc',
634 'models/dialog_model.cc',
635 'theme_provider.cc',
636 'touch/touch_device.cc',
637 'touch/touch_editing_controller.cc',
638 'ui_base_types.cc',
639 ],
640 'dependencies': [
641 '../android/ui_android.gyp:ui_java',
642 'ui_base_jni_headers',
643 ],
644 'link_settings': {
645 'libraries': [
646 '-ljnigraphics',
647 ],
648 },
649 }],
650 ['OS=="android" and use_aura==0', {
651 'sources!': [
652 'cursor/cursor_android.cc',
653 'idle/idle.cc',
654 'idle/idle.h',
655 'idle/idle_android.cc',
656 ],
657 }],
658 ['OS=="android" and use_aura==1', {
659 'sources!': [
660 'clipboard/clipboard_aura.cc'
661 ],
662 }],
663 ['OS=="android" or OS=="ios"', {
664 'sources!': [
665 'device_form_factor_desktop.cc'
666 ],
667 }],
668 ['OS=="linux"', {
669 'libraries': [
670 '-ldl',
671 ],
672 }],
673 ['use_system_icu==1', {
674 # When using the system icu, the icu targets generate shim headers
675 # which are included by public headers in the ui target, so we need
676 # ui to be a hard dependency for all its users.
677 'hard_dependency': 1,
678 }],
679 ['chromeos==1', {
680 'dependencies': [
681 '../../chromeos/chromeos.gyp:chromeos',
682 ],
683 'sources!': [
684 'idle/idle_linux.cc',
685 'idle/idle_query_x11.cc',
686 'idle/idle_query_x11.h',
687 'idle/screensaver_window_finder_x11.cc',
688 'idle/screensaver_window_finder_x11.h',
689 ],
690 }],
691 ],
692 },
693 {
694 # GN version: //ui/base:test_support
695 'target_name': 'ui_base_test_support',
696 'type': 'static_library',
697 'dependencies': [
698 'ui_data_pack',
699 '../../base/base.gyp:base',
700 '../../skia/skia.gyp:skia',
701 '../../testing/gtest.gyp:gtest',
702 '../gfx/gfx.gyp:gfx',
703 '../gfx/gfx.gyp:gfx_geometry',
704 '../gfx/gfx.gyp:gfx_range',
705 ],
706 'sources': [
707 # Note: file list duplicated in GN build.
708 'test/ios/keyboard_appearance_listener.h',
709 'test/ios/keyboard_appearance_listener.mm',
710 'test/ios/ui_view_test_utils.h',
711 'test/ios/ui_view_test_utils.mm',
712 'test/material_design_controller_test_api.cc',
713 'test/material_design_controller_test_api.h',
714 'test/test_clipboard.cc',
715 'test/test_clipboard.h',
716 'test/ui_controls.h',
717 'test/ui_controls_aura.cc',
718 'test/ui_controls_internal_win.cc',
719 'test/ui_controls_internal_win.h',
720 'test/ui_controls_mac.mm',
721 'test/ui_controls_win.cc',
722 ],
723 'include_dirs': [
724 '../..',
725 ],
726 'conditions': [
727 ['OS!="ios"', {
728 'dependencies': [
729 '../events/events.gyp:events',
730 'ime/ui_base_ime.gyp:ui_base_ime',
731 ],
732 'sources': [
733 'ime/dummy_input_method.cc',
734 'ime/dummy_input_method.h',
735 'ime/dummy_text_input_client.cc',
736 'ime/dummy_text_input_client.h',
737 'test/nswindow_fullscreen_notification_waiter.h',
738 'test/nswindow_fullscreen_notification_waiter.mm',
739 'test/scoped_fake_full_keyboard_access.h',
740 'test/scoped_fake_full_keyboard_access.mm',
741 'test/scoped_fake_nswindow_focus.h',
742 'test/scoped_fake_nswindow_focus.mm',
743 'test/scoped_fake_nswindow_fullscreen.h',
744 'test/scoped_fake_nswindow_fullscreen.mm',
745 'test/scoped_preferred_scroller_style_mac.h',
746 'test/scoped_preferred_scroller_style_mac.mm',
747 'test/windowed_nsnotification_observer.h',
748 'test/windowed_nsnotification_observer.mm',
749 ],
750 }],
751 ['use_aura==1', {
752 'sources!': [
753 'test/ui_controls_mac.mm',
754 'test/ui_controls_win.cc',
755 ],
756 }],
757 ],
758 },
759 ],
760 'conditions': [
761 ['OS=="android"' , {
762 'targets': [
763 {
764 # GN version: //ui/base:ui_base_jni_headers
765 'target_name': 'ui_base_jni_headers',
766 'type': 'none',
767 'sources': [
768 # Note: file list duplicated in GN build.
769 '../android/java/src/org/chromium/ui/base/Clipboard.java',
770 '../android/java/src/org/chromium/ui/base/DeviceFormFactor.java',
771 '../android/java/src/org/chromium/ui/base/LocalizationUtils.java',
772 '../android/java/src/org/chromium/ui/base/ResourceBundle.java',
773 '../android/java/src/org/chromium/ui/base/SelectFileDialog.java',
774 '../android/java/src/org/chromium/ui/base/TouchDevice.java',
775 ],
776 'variables': {
777 'jni_gen_package': 'ui',
778 },
779 'includes': [ '../../build/jni_generator.gypi' ],
780 },
781 ],
782 }],
783 ],
784 }
OLDNEW
« no previous file with comments | « ui/base/ime/ui_base_ime.gyp ('k') | ui/base/ui_base_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698