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

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

Issue 365303003: ui: Fold ime gypi files directly into their main targets (ui_base and ui_unittests). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify - fix mac? Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/ime_unittests.gypi ('k') | ui/ui_unittests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
11 # GN version: //ui/base 11 # GN version: //ui/base
12 'target_name': 'ui_base', 12 'target_name': 'ui_base',
13 'type': '<(component)', 13 'type': '<(component)',
14 'dependencies': [ 14 'dependencies': [
15 '../../base/base.gyp:base', 15 '../../base/base.gyp:base',
16 '../../base/base.gyp:base_i18n', 16 '../../base/base.gyp:base_i18n',
17 '../../base/base.gyp:base_static', 17 '../../base/base.gyp:base_static',
18 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations', 18 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations',
19 '../../net/net.gyp:net', 19 '../../net/net.gyp:net',
20 '../../skia/skia.gyp:skia', 20 '../../skia/skia.gyp:skia',
21 '../../third_party/icu/icu.gyp:icui18n', 21 '../../third_party/icu/icu.gyp:icui18n',
22 '../../third_party/icu/icu.gyp:icuuc', 22 '../../third_party/icu/icu.gyp:icuuc',
23 '../../url/url.gyp:url_lib', 23 '../../url/url.gyp:url_lib',
24 '../events/events.gyp:events',
24 '../events/events.gyp:events_base', 25 '../events/events.gyp:events_base',
25 '../events/platform/events_platform.gyp:events_platform', 26 '../events/platform/events_platform.gyp:events_platform',
26 '../gfx/gfx.gyp:gfx', 27 '../gfx/gfx.gyp:gfx',
27 '../gfx/gfx.gyp:gfx_geometry', 28 '../gfx/gfx.gyp:gfx_geometry',
28 '../resources/ui_resources.gyp:ui_resources', 29 '../resources/ui_resources.gyp:ui_resources',
29 '../strings/ui_strings.gyp:ui_strings', 30 '../strings/ui_strings.gyp:ui_strings',
30 ], 31 ],
31 'defines': [ 32 'defines': [
32 'UI_BASE_IMPLEMENTATION', 33 'UI_BASE_IMPLEMENTATION',
33 ], 34 ],
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 'dragdrop/os_exchange_data.h', 170 'dragdrop/os_exchange_data.h',
170 'dragdrop/os_exchange_data_provider_aura.cc', 171 'dragdrop/os_exchange_data_provider_aura.cc',
171 'dragdrop/os_exchange_data_provider_aura.h', 172 'dragdrop/os_exchange_data_provider_aura.h',
172 'dragdrop/os_exchange_data_provider_aurax11.cc', 173 'dragdrop/os_exchange_data_provider_aurax11.cc',
173 'dragdrop/os_exchange_data_provider_aurax11.h', 174 'dragdrop/os_exchange_data_provider_aurax11.h',
174 'dragdrop/os_exchange_data_provider_mac.h', 175 'dragdrop/os_exchange_data_provider_mac.h',
175 'dragdrop/os_exchange_data_provider_mac.mm', 176 'dragdrop/os_exchange_data_provider_mac.mm',
176 'dragdrop/os_exchange_data_provider_win.cc', 177 'dragdrop/os_exchange_data_provider_win.cc',
177 'dragdrop/os_exchange_data_provider_win.h', 178 'dragdrop/os_exchange_data_provider_win.h',
178 'hit_test.h', 179 'hit_test.h',
180 'ime/candidate_window.cc',
181 'ime/candidate_window.h',
182 'ime/chromeos/character_composer.cc',
183 'ime/chromeos/character_composer.h',
184 'ime/chromeos/ime_bridge.cc',
185 'ime/chromeos/ime_bridge.h',
186 'ime/chromeos/ime_keymap.cc',
187 'ime/chromeos/ime_keymap.h',
188 'ime/chromeos/mock_ime_candidate_window_handler.cc',
189 'ime/chromeos/mock_ime_candidate_window_handler.h',
190 'ime/chromeos/mock_ime_engine_handler.cc',
191 'ime/chromeos/mock_ime_engine_handler.h',
192 'ime/chromeos/mock_ime_input_context_handler.cc',
193 'ime/chromeos/mock_ime_input_context_handler.h',
194 'ime/composition_text.cc',
195 'ime/composition_text.h',
196 'ime/composition_text_util_pango.cc',
197 'ime/composition_text_util_pango.h',
198 'ime/composition_underline.h',
199 'ime/dummy_input_method_delegate.cc',
200 'ime/dummy_input_method_delegate.h',
201 'ime/infolist_entry.cc',
202 'ime/infolist_entry.h',
203 'ime/input_method.h',
204 'ime/input_method_auralinux.cc',
205 'ime/input_method_auralinux.h',
206 'ime/input_method_base.cc',
207 'ime/input_method_base.h',
208 'ime/input_method_chromeos.cc',
209 'ime/input_method_chromeos.h',
210 'ime/input_method_delegate.h',
211 'ime/input_method_factory.cc',
212 'ime/input_method_factory.h',
213 'ime/input_method_initializer.cc',
214 'ime/input_method_initializer.h',
215 'ime/input_method_mac.h',
216 'ime/input_method_mac.mm',
217 'ime/input_method_minimal.cc',
218 'ime/input_method_minimal.h',
219 'ime/input_method_observer.h',
220 'ime/input_method_win.cc',
221 'ime/input_method_win.h',
222 'ime/linux/fake_input_method_context.cc',
223 'ime/linux/fake_input_method_context.h',
224 'ime/linux/fake_input_method_context_factory.cc',
225 'ime/linux/fake_input_method_context_factory.h',
226 'ime/linux/linux_input_method_context.h',
227 'ime/linux/linux_input_method_context_factory.cc',
228 'ime/linux/linux_input_method_context_factory.h',
229 'ime/mock_input_method.cc',
230 'ime/mock_input_method.h',
231 'ime/remote_input_method_delegate_win.h',
232 'ime/remote_input_method_win.cc',
233 'ime/remote_input_method_win.h',
234 'ime/text_input_client.cc',
235 'ime/text_input_client.h',
236 'ime/text_input_focus_manager.cc',
237 'ime/text_input_focus_manager.h',
238 'ime/text_input_type.h',
239 'ime/win/imm32_manager.cc',
240 'ime/win/imm32_manager.h',
241 'ime/win/tsf_input_scope.cc',
242 'ime/win/tsf_input_scope.h',
179 'l10n/formatter.cc', 243 'l10n/formatter.cc',
180 'l10n/formatter.h', 244 'l10n/formatter.h',
181 'l10n/l10n_font_util.cc', 245 'l10n/l10n_font_util.cc',
182 'l10n/l10n_font_util.h', 246 'l10n/l10n_font_util.h',
183 'l10n/l10n_util.cc', 247 'l10n/l10n_util.cc',
184 'l10n/l10n_util.h', 248 'l10n/l10n_util.h',
185 'l10n/l10n_util_android.cc', 249 'l10n/l10n_util_android.cc',
186 'l10n/l10n_util_android.h', 250 'l10n/l10n_util_android.h',
187 'l10n/l10n_util_collator.h', 251 'l10n/l10n_util_collator.h',
188 'l10n/l10n_util_mac.h', 252 'l10n/l10n_util_mac.h',
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 'x/x11_util_internal.h', 376 'x/x11_util_internal.h',
313 ], 377 ],
314 'target_conditions': [ 378 'target_conditions': [
315 ['OS == "ios"', { 379 ['OS == "ios"', {
316 'sources/': [ 380 'sources/': [
317 ['include', '^l10n/l10n_util_mac\\.mm$'], 381 ['include', '^l10n/l10n_util_mac\\.mm$'],
318 ], 382 ],
319 }], 383 }],
320 ], 384 ],
321 'conditions': [ 385 'conditions': [
322 ['OS!="ios"', { 386 ['OS=="ios"', {
323 'includes': [
324 'ime/ime.gypi',
325 ],
326 }, { # OS=="ios"
327 # iOS only uses a subset of UI. 387 # iOS only uses a subset of UI.
328 'sources/': [ 388 'sources/': [
329 ['exclude', '\\.(cc|mm)$'], 389 ['exclude', '\\.(cc|mm)$'],
330 ['include', '_ios\\.(cc|mm)$'], 390 ['include', '_ios\\.(cc|mm)$'],
331 ['include', '(^|/)ios/'], 391 ['include', '(^|/)ios/'],
332 ['include', '^l10n/'], 392 ['include', '^l10n/'],
333 ['include', '^layout'], 393 ['include', '^layout'],
334 ['include', '^resource/'], 394 ['include', '^resource/'],
335 ['include', '^ui_base_'], 395 ['include', '^ui_base_'],
336 ], 396 ],
337 'link_settings': { 397 'link_settings': {
338 'libraries': [ 398 'libraries': [
339 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', 399 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
340 ], 400 ],
341 }, 401 },
342 }], 402 }],
343 ['toolkit_views==1', {
344 'dependencies': [
345 '../events/events.gyp:events',
346 ],
347 }],
348 ['use_aura==1', { 403 ['use_aura==1', {
349 'sources/': [ 404 'sources/': [
350 ['exclude', 'clipboard/clipboard_mac.mm'], 405 ['exclude', 'clipboard/clipboard_mac.mm'],
351 ['exclude', 'layout_mac.mm'], 406 ['exclude', 'layout_mac.mm'],
352 ['exclude', 'work_area_watcher_observer.h'], 407 ['exclude', 'work_area_watcher_observer.h'],
353 ], 408 ],
354 'dependencies': [
355 '../events/events.gyp:events',
356 ],
357 }, { # use_aura!=1 409 }, { # use_aura!=1
358 'sources!': [ 410 'sources!': [
359 'cursor/cursor.cc', 411 'cursor/cursor.cc',
360 'cursor/cursor.h', 412 'cursor/cursor.h',
361 'cursor/cursor_loader_x11.cc', 413 'cursor/cursor_loader_x11.cc',
362 'cursor/cursor_loader_x11.h', 414 'cursor/cursor_loader_x11.h',
363 'cursor/cursor_win.cc', 415 'cursor/cursor_win.cc',
364 'cursor/cursor_x11.cc', 416 'cursor/cursor_x11.cc',
365 'x/selection_owner.cc', 417 'x/selection_owner.cc',
366 'x/selection_owner.h', 418 'x/selection_owner.h',
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 'libraries': [ 624 'libraries': [
573 '-ldl', 625 '-ldl',
574 ], 626 ],
575 }], 627 }],
576 ['use_system_icu==1', { 628 ['use_system_icu==1', {
577 # When using the system icu, the icu targets generate shim headers 629 # When using the system icu, the icu targets generate shim headers
578 # which are included by public headers in the ui target, so we need 630 # which are included by public headers in the ui target, so we need
579 # ui to be a hard dependency for all its users. 631 # ui to be a hard dependency for all its users.
580 'hard_dependency': 1, 632 'hard_dependency': 1,
581 }], 633 }],
634 ['toolkit_views==0 and use_aura==0', {
635 'sources!': [
636 'ime/input_method_factory.cc',
637 'ime/input_method_factory.h',
638 'ime/input_method_minimal.cc',
639 'ime/input_method_minimal.h',
640 ],
641 }],
642 ['chromeos==0 or use_x11==0', {
643 'sources!': [
644 'ime/input_method_chromeos.cc',
645 'ime/input_method_chromeos.h',
646 ],
647 }],
648 ['chromeos==1', {
649 'dependencies': [
650 '../../chromeos/chromeos.gyp:chromeos',
651 ],
652 }],
653 ['OS!="win"', {
654 'sources!': [
655 'ime/input_method_imm32.cc',
656 'ime/input_method_imm32.h',
657 ],
658 }],
659 ['use_aura==0 or (desktop_linux==0 and use_ozone==0)', {
660 'sources!': [
661 'ime/input_method_auralinux.cc',
662 'ime/input_method_auralinux.h',
663 'ime/linux/fake_input_method_context.cc',
664 'ime/linux/fake_input_method_context.h',
665 'ime/linux/fake_input_method_context_factory.cc',
666 'ime/linux/fake_input_method_context_factory.h',
667 'ime/linux/linux_input_method_context.h',
668 'ime/linux/linux_input_method_context_factory.cc',
669 'ime/linux/linux_input_method_context_factory.h',
670 ],
671 }],
672 ['use_x11==0', {
673 'sources!': [
674 'ime/composition_text_util_pango.cc',
675 'ime/composition_text_util_pango.h',
676 'ime/chromeos/character_composer.cc',
677 'ime/chromeos/character_composer.h',
678 ],
679 }],
582 ], 680 ],
583 }, 681 },
584 { 682 {
585 # GN version: //ui/base:test_support 683 # GN version: //ui/base:test_support
586 'target_name': 'ui_base_test_support', 684 'target_name': 'ui_base_test_support',
587 'dependencies': [ 685 'dependencies': [
588 '../../base/base.gyp:base', 686 '../../base/base.gyp:base',
589 '../../skia/skia.gyp:skia', 687 '../../skia/skia.gyp:skia',
590 '../../testing/gtest.gyp:gtest', 688 '../../testing/gtest.gyp:gtest',
591 '../gfx/gfx.gyp:gfx', 689 '../gfx/gfx.gyp:gfx',
592 '../gfx/gfx.gyp:gfx_geometry', 690 '../gfx/gfx.gyp:gfx_geometry',
593 ], 691 ],
594 'sources': [ 692 'sources': [
595 # Note: file list duplicated in GN build. 693 # Note: file list duplicated in GN build.
596 'test/ui_controls.h', 694 'test/ui_controls.h',
597 'test/ui_controls_aura.cc', 695 'test/ui_controls_aura.cc',
598 'test/ui_controls_internal_win.cc', 696 'test/ui_controls_internal_win.cc',
599 'test/ui_controls_internal_win.h', 697 'test/ui_controls_internal_win.h',
600 'test/ui_controls_mac.mm', 698 'test/ui_controls_mac.mm',
601 'test/ui_controls_win.cc', 699 'test/ui_controls_win.cc',
602 ], 700 ],
603 'include_dirs': [ 701 'include_dirs': [
604 '../..', 702 '../..',
605 ], 703 ],
606 'conditions': [ 704 'conditions': [
607 ['OS!="ios"', { 705 ['OS!="ios"', {
608 'type': 'static_library', 706 'type': 'static_library',
609 'includes': [ 'ime/ime_test_support.gypi' ], 707 'sources': [
708 'ime/dummy_input_method.cc',
709 'ime/dummy_input_method.h',
710 'ime/dummy_text_input_client.cc',
711 'ime/dummy_text_input_client.h',
712 ],
610 }, { # OS=="ios" 713 }, { # OS=="ios"
611 # None of the sources in this target are built on iOS, resulting in 714 # None of the sources in this target are built on iOS, resulting in
612 # link errors when building targets that depend on this target 715 # link errors when building targets that depend on this target
613 # because the static library isn't found. If this target is changed 716 # because the static library isn't found. If this target is changed
614 # to have sources that are built on iOS, the target should be changed 717 # to have sources that are built on iOS, the target should be changed
615 # to be of type static_library on all platforms. 718 # to be of type static_library on all platforms.
616 'type': 'none', 719 'type': 'none',
617 }], 720 }],
618 ['use_aura==1', { 721 ['use_aura==1', {
619 'sources!': [ 722 'sources!': [
(...skipping 23 matching lines...) Expand all
643 ], 746 ],
644 'variables': { 747 'variables': {
645 'jni_gen_package': 'ui', 748 'jni_gen_package': 'ui',
646 }, 749 },
647 'includes': [ '../../build/jni_generator.gypi' ], 750 'includes': [ '../../build/jni_generator.gypi' ],
648 }, 751 },
649 ], 752 ],
650 }], 753 }],
651 ], 754 ],
652 } 755 }
OLDNEW
« no previous file with comments | « ui/base/ime/ime_unittests.gypi ('k') | ui/ui_unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698