OLD | NEW |
---|---|
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'ui_base', | 8 'target_name': 'ui_base', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'dependencies': [ | 10 'dependencies': [ |
11 '../base/base.gyp:base', | 11 '../base/base.gyp:base', |
12 '../net/net.gyp:net', | |
12 '../skia/skia.gyp:skia', | 13 '../skia/skia.gyp:skia', |
13 '../third_party/icu/icu.gyp:icui18n', | 14 '../third_party/icu/icu.gyp:icui18n', |
14 '../third_party/icu/icu.gyp:icuuc', | 15 '../third_party/icu/icu.gyp:icuuc', |
16 'base/strings/ui_strings.gyp:ui_strings', | |
15 'ui_gfx', | 17 'ui_gfx', |
16 ], | 18 ], |
17 # Export these dependencies since text_elider.h includes ICU headers. | 19 # Export these dependencies since text_elider.h includes ICU headers. |
18 'export_dependent_settings': [ | 20 'export_dependent_settings': [ |
19 '../third_party/icu/icu.gyp:icui18n', | 21 '../third_party/icu/icu.gyp:icui18n', |
20 '../third_party/icu/icu.gyp:icuuc', | 22 '../third_party/icu/icu.gyp:icuuc', |
21 ], | 23 ], |
22 'sources': [ | 24 'sources': [ |
23 'base/accessibility/accessibility_types.h', | 25 'base/accessibility/accessibility_types.h', |
26 'base/accessibility/accessible_view_state.cc', | |
24 'base/accessibility/accessible_view_state.h', | 27 'base/accessibility/accessible_view_state.h', |
25 'base/accessibility/accessible_view_state.cc', | |
26 'base/animation/animation.cc', | 28 'base/animation/animation.cc', |
27 'base/animation/animation.h', | 29 'base/animation/animation.h', |
28 'base/animation/animation_container.cc', | 30 'base/animation/animation_container.cc', |
29 'base/animation/animation_container.h', | 31 'base/animation/animation_container.h', |
30 'base/animation/animation_container_element.h', | 32 'base/animation/animation_container_element.h', |
31 'base/animation/animation_container_observer.h', | 33 'base/animation/animation_container_observer.h', |
32 'base/animation/animation_delegate.h', | 34 'base/animation/animation_delegate.h', |
33 'base/animation/linear_animation.cc', | 35 'base/animation/linear_animation.cc', |
34 'base/animation/linear_animation.h', | 36 'base/animation/linear_animation.h', |
35 'base/animation/multi_animation.cc', | 37 'base/animation/multi_animation.cc', |
36 'base/animation/multi_animation.h', | 38 'base/animation/multi_animation.h', |
37 'base/animation/slide_animation.cc', | 39 'base/animation/slide_animation.cc', |
38 'base/animation/slide_animation.h', | 40 'base/animation/slide_animation.h', |
39 'base/animation/throb_animation.cc', | 41 'base/animation/throb_animation.cc', |
40 'base/animation/throb_animation.h', | 42 'base/animation/throb_animation.h', |
41 'base/animation/tween.cc', | 43 'base/animation/tween.cc', |
42 'base/animation/tween.h', | 44 'base/animation/tween.h', |
43 'base/clipboard/clipboard.cc', | 45 'base/clipboard/clipboard.cc', |
44 'base/clipboard/clipboard.h', | 46 'base/clipboard/clipboard.h', |
45 'base/clipboard/clipboard_linux.cc', | 47 'base/clipboard/clipboard_linux.cc', |
46 'base/clipboard/clipboard_mac.mm', | 48 'base/clipboard/clipboard_mac.mm', |
47 'base/clipboard/clipboard_util_win.cc', | 49 'base/clipboard/clipboard_util_win.cc', |
48 'base/clipboard/clipboard_util_win.h', | 50 'base/clipboard/clipboard_util_win.h', |
49 'base/clipboard/clipboard_win.cc', | 51 'base/clipboard/clipboard_win.cc', |
50 'base/clipboard/scoped_clipboard_writer.cc', | 52 'base/clipboard/scoped_clipboard_writer.cc', |
51 'base/clipboard/scoped_clipboard_writer.h', | 53 'base/clipboard/scoped_clipboard_writer.h', |
54 'base/dragdrop/drag_drop_types_gtk.cc', | |
55 'base/dragdrop/drag_drop_types.h', | |
56 'base/dragdrop/drag_drop_types_win.cc', | |
57 'base/dragdrop/drag_source.cc', | |
58 'base/dragdrop/drag_source.h', | |
59 'base/dragdrop/drop_target.cc', | |
60 'base/dragdrop/drop_target.h', | |
61 'base/dragdrop/gtk_dnd_util.cc', | |
62 'base/dragdrop/gtk_dnd_util.h', | |
63 'base/dragdrop/os_exchange_data.cc', | |
64 'base/dragdrop/os_exchange_data.h', | |
65 'base/dragdrop/os_exchange_data_provider_gtk.cc', | |
66 'base/dragdrop/os_exchange_data_provider_gtk.h', | |
67 'base/dragdrop/os_exchange_data_provider_win.cc', | |
68 'base/dragdrop/os_exchange_data_provider_win.h', | |
69 'base/events.h', | |
70 'base/gtk/event_synthesis_gtk.cc', | |
71 'base/gtk/event_synthesis_gtk.h', | |
72 'base/gtk/gtk_im_context_util.cc', | |
73 'base/gtk/gtk_im_context_util.h', | |
74 'base/gtk/gtk_signal.h', | |
75 'base/gtk/gtk_signal_registrar.cc', | |
76 'base/gtk/gtk_signal_registrar.h', | |
77 'base/gtk/gtk_windowing.cc', | |
78 'base/gtk/gtk_windowing.h', | |
52 'base/ime/composition_text.cc', | 79 'base/ime/composition_text.cc', |
53 'base/ime/composition_text.h', | 80 'base/ime/composition_text.h', |
54 'base/ime/composition_underline.h', | 81 'base/ime/composition_underline.h', |
55 'base/ime/text_input_type.h', | 82 'base/ime/text_input_type.h', |
56 'base/gtk/gtk_im_context_util.cc', | 83 'base/keycodes/keyboard_code_conversion_gtk.cc', |
57 'base/gtk/gtk_im_context_util.h', | 84 'base/keycodes/keyboard_code_conversion_gtk.h', |
85 'base/keycodes/keyboard_code_conversion_mac.h', | |
86 'base/keycodes/keyboard_code_conversion_mac.mm', | |
87 'base/keycodes/keyboard_code_conversion_win.cc', | |
88 'base/keycodes/keyboard_code_conversion_win.h', | |
89 'base/keycodes/keyboard_code_conversion_x.cc', | |
90 'base/keycodes/keyboard_code_conversion_x.h', | |
91 'base/keycodes/keyboard_codes.h', | |
92 'base/l10n/l10n_font_util.cc', | |
93 'base/l10n/l10n_font_util.h', | |
94 'base/l10n/l10n_util.cc', | |
95 'base/l10n/l10n_util_collator.h', | |
96 'base/l10n/l10n_util.h', | |
tfarina
2011/05/30 15:46:42
put this right after l10n_util.cc?
| |
97 'base/l10n/l10n_util_mac.h', | |
98 'base/l10n/l10n_util_mac.mm', | |
99 'base/l10n/l10n_util_posix.cc', | |
100 'base/l10n/l10n_util_win.cc', | |
101 'base/l10n/l10n_util_win.h', | |
102 'base/message_box_flags.h', | |
103 'base/message_box_win.cc', | |
104 'base/message_box_win.h', | |
105 'base/models/accelerator_cocoa.h', | |
106 'base/models/accelerator_cocoa.mm', | |
107 'base/models/accelerator_gtk.h', | |
108 'base/models/accelerator.h', | |
109 'base/models/button_menu_item_model.cc', | |
110 'base/models/button_menu_item_model.h', | |
111 'base/models/combobox_model.h', | |
112 'base/models/menu_model.cc', | |
113 'base/models/menu_model_delegate.h', | |
114 'base/models/menu_model.h', | |
tfarina
2011/05/30 15:46:42
put this right after menu_model.cc?
| |
115 'base/models/simple_menu_model.cc', | |
116 'base/models/simple_menu_model.h', | |
117 'base/models/table_model.cc', | |
118 'base/models/table_model.h', | |
119 'base/models/table_model_observer.h', | |
120 'base/models/tree_model.cc', | |
121 'base/models/tree_model.h', | |
122 'base/models/tree_node_iterator.h', | |
123 'base/models/tree_node_model.h', | |
58 'base/range/range.cc', | 124 'base/range/range.cc', |
59 'base/range/range.h', | 125 'base/range/range.h', |
60 'base/range/range.mm', | 126 'base/range/range.mm', |
127 'base/resource/data_pack.cc', | |
128 'base/resource/data_pack.h', | |
129 'base/resource/resource_bundle.cc', | |
130 'base/resource/resource_bundle.h', | |
131 'base/resource/resource_bundle_linux.cc', | |
132 'base/resource/resource_bundle_mac.mm', | |
133 'base/resource/resource_bundle_posix.cc', | |
134 'base/resource/resource_bundle_win.cc', | |
135 'base/text/text_elider.cc', | |
136 'base/text/text_elider.h', | |
137 'base/theme_provider.cc', | |
138 'base/theme_provider.h', | |
139 'base/ui_base_paths.cc', | |
140 'base/ui_base_paths.h', | |
141 'base/ui_base_switches.cc', | |
142 'base/ui_base_switches.h', | |
143 'base/view_prop.cc', | |
144 'base/view_prop.h', | |
145 'base/win/hwnd_util.cc', | |
146 'base/win/hwnd_util.h', | |
147 'base/win/ime_input.cc', | |
148 'base/win/ime_input.h', | |
149 'base/win/window_impl.cc', | |
150 'base/win/window_impl.h', | |
151 'base/x/active_window_watcher_x.cc', | |
152 'base/x/active_window_watcher_x.h', | |
153 'base/x/x11_util.cc', | |
154 'base/x/x11_util.h', | |
155 'base/x/x11_util_internal.h', | |
61 ], | 156 ], |
62 'conditions': [ | 157 'conditions': [ |
63 ['toolkit_uses_gtk == 1', { | 158 ['toolkit_uses_gtk == 1', { |
64 'dependencies': [ | 159 'dependencies': [ |
160 '../build/linux/system.gyp:fontconfig', | |
65 '../build/linux/system.gyp:gtk', | 161 '../build/linux/system.gyp:gtk', |
66 '../build/linux/system.gyp:x11', | 162 '../build/linux/system.gyp:x11', |
67 '../build/linux/system.gyp:xext', | 163 '../build/linux/system.gyp:xext', |
68 ], | 164 ], |
165 'link_settings': { | |
166 'libraries': [ | |
167 '-lXrender', # For XRender* function calls in x11_util.cc. | |
168 ], | |
169 }, | |
170 'conditions': [ | |
171 ['toolkit_views==0', { | |
172 # Note: because of gyp predence rules this has to be defined as | |
173 # 'sources/' rather than 'sources!'. | |
174 'sources/': [ | |
175 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'], | |
176 ['exclude', '^base/dragdrop/os_exchange_data.cc'], | |
177 ['exclude', '^base/dragdrop/os_exchange_data.h'], | |
178 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.cc'], | |
179 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.h'], | |
180 ], | |
181 }, { | |
182 # Note: because of gyp predence rules this has to be defined as | |
183 # 'sources/' rather than 'sources!'. | |
184 'sources/': [ | |
185 ['include', '^base/dragdrop/os_exchange_data.cc'], | |
186 ], | |
187 }], | |
188 ], | |
69 }], | 189 }], |
70 ['OS=="win"', { | 190 ['OS!="win"', { |
71 'sources': [ | 191 'sources!': [ |
72 'base/win/ime_input.cc', | 192 'base/dragdrop/drag_source.cc', |
73 'base/win/ime_input.h', | 193 'base/dragdrop/drag_source.h', |
194 'base/dragdrop/drag_drop_types.h', | |
195 'base/dragdrop/drop_target.cc', | |
196 'base/dragdrop/drop_target.h', | |
197 'base/dragdrop/os_exchange_data.cc', | |
198 'base/view_prop.cc', | |
199 'base/view_prop.h', | |
200 ], | |
201 'sources/': [ | |
202 ['exclude', '^base/win/*'], | |
203 ], | |
204 }], | |
205 ['OS=="mac"', { | |
206 'link_settings': { | |
207 'libraries': [ | |
208 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', | |
209 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | |
210 ], | |
211 }, | |
212 }], | |
213 ['use_x11==1', { | |
214 'all_dependent_settings': { | |
215 'ldflags': [ | |
216 '-L<(PRODUCT_DIR)', | |
217 ], | |
218 'link_settings': { | |
219 'libraries': [ | |
220 '-lX11', | |
221 '-ldl', | |
222 ], | |
223 }, | |
224 }, | |
225 },{ # use_x11==0 | |
Robert Sesek
2011/05/29 17:15:57
nit: space after ,
| |
226 'sources!': [ | |
227 'base/keycodes/keyboard_code_conversion_x.cc', | |
228 'base/keycodes/keyboard_code_conversion_x.h', | |
74 ], | 229 ], |
75 }], | 230 }], |
76 ], | 231 ], |
77 }, | 232 }, |
78 ], | 233 ], |
79 } | 234 } |
80 | 235 |
81 # Local Variables: | 236 # Local Variables: |
82 # tab-width:2 | 237 # tab-width:2 |
83 # indent-tabs-mode:nil | 238 # indent-tabs-mode:nil |
84 # End: | 239 # End: |
85 # vim: set expandtab tabstop=2 shiftwidth=2: | 240 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |