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

Side by Side Diff: ui/ui.gyp

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
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 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 'toolkit_views2': 0, # ui/views/ is an experimental framework on Windows. 8 'toolkit_views2': 0, # ui/views/ is an experimental framework on Windows.
9 }, 9 },
10 'target_defaults': { 10 'target_defaults': {
11 'conditions': [ 11 'conditions': [
12 ['OS=="win"', 12 ['OS=="win"',
13 {'variables': {'toolkit_views2': 1}}, 13 {'variables': {'toolkit_views2': 1}},
14 ], 14 ],
15 ['toolkit_views2==0', {'sources/': [ 15 ['toolkit_views2==0', {'sources/': [
16 ['exclude', 'views/'], 16 ['exclude', 'views/'],
17 ]}], 17 ]}],
18 ['touchui==0', {'sources/': [ 18 ['touchui==0', {'sources/': [
19 ['exclude', 'event_x.cc$'], 19 ['exclude', 'event_x.cc$'],
20 ['exclude', 'native_menu_x.cc$'], 20 ['exclude', 'native_menu_x.cc$'],
21 ['exclude', 'native_menu_x.h$'], 21 ['exclude', 'native_menu_x.h$'],
22 ['exclude', 'touchui/'], 22 ['exclude', 'touchui/'],
23 ['exclude', '_(touch)\\.cc$'], 23 ['exclude', '_(touch)\\.cc$'],
24 ]}], 24 ]}],
25 ], 25 ],
26 }, 26 },
27 'includes': [ 27 'includes': [
28 'ui_base.gypi',
rvargas (doing something else) 2011/07/12 21:40:19 note that Rietveld is not flagging this file with
29 'ui_gfx.gypi',
30 'ui_resources.gypi', 28 'ui_resources.gypi',
31 ], 29 ],
30 'targets': [
31 #{
32 # 'target_name': 'ui_base',
rvargas (doing something else) 2011/07/12 21:40:19 I guess you want to delete this.
33 # 'type': 'static_library',
34 #},
35 #{
36 # 'target_name': 'ui_base_nacl_win64',
37 # 'type': 'static_library',
38 #},
39 #{
40 # 'target_name': 'ui_gfx',
41 # 'type': 'static_library',
42 #},
43 {
44 'target_name': 'ui',
45 'dependencies': [
46 '../base/base.gyp:base',
47 '../base/base.gyp:base_i18n',
48 '../base/base.gyp:base_static',
49 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
50 '../build/temp_gyp/googleurl.gyp:googleurl',
51 '../net/net.gyp:net',
52 '../skia/skia.gyp:skia',
53 '../third_party/icu/icu.gyp:icui18n',
54 '../third_party/icu/icu.gyp:icuuc',
55 '../third_party/libpng/libpng.gyp:libpng',
56 '../third_party/zlib/zlib.gyp:zlib',
57 'base/strings/ui_strings.gyp:ui_strings',
58 'gfx_resources',
59 '<(libjpeg_gyp_path):libjpeg',
60 ],
61 # Export these dependencies since text_elider.h includes ICU headers.
62 'export_dependent_settings': [
63 '../net/net.gyp:net',
64 '../third_party/icu/icu.gyp:icui18n',
65 '../third_party/icu/icu.gyp:icuuc',
66 ],
67 'sources': [
68 'base/accessibility/accessibility_types.h',
69 'base/accessibility/accessible_view_state.cc',
70 'base/accessibility/accessible_view_state.h',
71 'base/animation/animation.cc',
72 'base/animation/animation.h',
73 'base/animation/animation_container.cc',
74 'base/animation/animation_container.h',
75 'base/animation/animation_container_element.h',
76 'base/animation/animation_container_observer.h',
77 'base/animation/animation_delegate.h',
78 'base/animation/linear_animation.cc',
79 'base/animation/linear_animation.h',
80 'base/animation/multi_animation.cc',
81 'base/animation/multi_animation.h',
82 'base/animation/slide_animation.cc',
83 'base/animation/slide_animation.h',
84 'base/animation/throb_animation.cc',
85 'base/animation/throb_animation.h',
86 'base/animation/tween.cc',
87 'base/animation/tween.h',
88 'base/clipboard/clipboard.cc',
89 'base/clipboard/clipboard.h',
90 'base/clipboard/clipboard_linux.cc',
91 'base/clipboard/clipboard_mac.mm',
92 'base/clipboard/clipboard_util_win.cc',
93 'base/clipboard/clipboard_util_win.h',
94 'base/clipboard/clipboard_win.cc',
95 'base/clipboard/scoped_clipboard_writer.cc',
96 'base/clipboard/scoped_clipboard_writer.h',
97 'base/dragdrop/drag_drop_types_gtk.cc',
98 'base/dragdrop/drag_drop_types.h',
99 'base/dragdrop/drag_drop_types_win.cc',
100 'base/dragdrop/drag_source.cc',
101 'base/dragdrop/drag_source.h',
102 'base/dragdrop/drop_target.cc',
103 'base/dragdrop/drop_target.h',
104 'base/dragdrop/gtk_dnd_util.cc',
105 'base/dragdrop/gtk_dnd_util.h',
106 'base/dragdrop/os_exchange_data.cc',
107 'base/dragdrop/os_exchange_data.h',
108 'base/dragdrop/os_exchange_data_provider_gtk.cc',
109 'base/dragdrop/os_exchange_data_provider_gtk.h',
110 'base/dragdrop/os_exchange_data_provider_win.cc',
111 'base/dragdrop/os_exchange_data_provider_win.h',
112 'base/events.h',
113 'base/gtk/event_synthesis_gtk.cc',
114 'base/gtk/event_synthesis_gtk.h',
115 'base/gtk/g_object_destructor_filo.cc',
116 'base/gtk/g_object_destructor_filo.h',
117 'base/gtk/gtk_im_context_util.cc',
118 'base/gtk/gtk_im_context_util.h',
119 'base/gtk/gtk_signal.h',
120 'base/gtk/gtk_signal_registrar.cc',
121 'base/gtk/gtk_signal_registrar.h',
122 'base/gtk/gtk_windowing.cc',
123 'base/gtk/gtk_windowing.h',
124 'base/ime/composition_text.cc',
125 'base/ime/composition_text.h',
126 'base/ime/composition_underline.h',
127 'base/ime/text_input_type.h',
128 'base/keycodes/keyboard_code_conversion_gtk.cc',
129 'base/keycodes/keyboard_code_conversion_gtk.h',
130 'base/keycodes/keyboard_code_conversion_mac.h',
131 'base/keycodes/keyboard_code_conversion_mac.mm',
132 'base/keycodes/keyboard_code_conversion_win.cc',
133 'base/keycodes/keyboard_code_conversion_win.h',
134 'base/keycodes/keyboard_code_conversion_x.cc',
135 'base/keycodes/keyboard_code_conversion_x.h',
136 'base/keycodes/keyboard_codes.h',
137 'base/l10n/l10n_font_util.cc',
138 'base/l10n/l10n_font_util.h',
139 'base/l10n/l10n_util.cc',
140 'base/l10n/l10n_util.h',
141 'base/l10n/l10n_util_collator.h',
142 'base/l10n/l10n_util_mac.h',
143 'base/l10n/l10n_util_mac.mm',
144 'base/l10n/l10n_util_posix.cc',
145 'base/l10n/l10n_util_win.cc',
146 'base/l10n/l10n_util_win.h',
147 'base/message_box_flags.h',
148 'base/message_box_win.cc',
149 'base/message_box_win.h',
150 'base/models/accelerator_cocoa.h',
151 'base/models/accelerator_cocoa.mm',
152 'base/models/accelerator_gtk.h',
153 'base/models/accelerator.h',
154 'base/models/button_menu_item_model.cc',
155 'base/models/button_menu_item_model.h',
156 'base/models/combobox_model.h',
157 'base/models/menu_model.cc',
158 'base/models/menu_model.h',
159 'base/models/menu_model_delegate.h',
160 'base/models/simple_menu_model.cc',
161 'base/models/simple_menu_model.h',
162 'base/models/table_model.cc',
163 'base/models/table_model.h',
164 'base/models/table_model_observer.h',
165 'base/models/tree_model.cc',
166 'base/models/tree_model.h',
167 'base/models/tree_node_iterator.h',
168 'base/models/tree_node_model.h',
169 'base/range/range.cc',
170 'base/range/range.h',
171 'base/range/range_mac.mm',
172 'base/range/range_win.cc',
173 'base/resource/data_pack.cc',
174 'base/resource/data_pack.h',
175 'base/resource/resource_bundle.cc',
176 'base/resource/resource_bundle.h',
177 'base/resource/resource_bundle_linux.cc',
178 'base/resource/resource_bundle_mac.mm',
179 'base/resource/resource_bundle_posix.cc',
180 'base/resource/resource_bundle_win.cc',
181 'base/text/bytes_formatting.cc',
182 'base/text/bytes_formatting.h',
183 'base/text/text_elider.cc',
184 'base/text/text_elider.h',
185 'base/theme_provider.cc',
186 'base/theme_provider.h',
187 'base/ui_base_paths.cc',
188 'base/ui_base_paths.h',
189 'base/ui_base_switches.cc',
190 'base/ui_base_switches.h',
191 'base/view_prop.cc',
192 'base/view_prop.h',
193 'base/win/hwnd_util.cc',
194 'base/win/hwnd_util.h',
195 'base/win/ime_input.cc',
196 'base/win/ime_input.h',
197 'base/win/shell.cc',
198 'base/win/shell.h',
199 'base/win/window_impl.cc',
200 'base/win/window_impl.h',
201 'base/x/active_window_watcher_x.cc',
202 'base/x/active_window_watcher_x.h',
203 'base/x/x11_util.cc',
204 'base/x/x11_util.h',
205 'base/x/x11_util_internal.h',
206 'gfx/blit.cc',
207 'gfx/blit.h',
208 'gfx/brush.h',
209 'gfx/canvas.cc',
210 'gfx/canvas.h',
211 'gfx/canvas_skia.h',
212 'gfx/canvas_skia.cc',
213 'gfx/canvas_skia_linux.cc',
214 'gfx/canvas_skia_mac.mm',
215 'gfx/canvas_skia_paint.h',
216 'gfx/canvas_skia_win.cc',
217 'gfx/codec/jpeg_codec.cc',
218 'gfx/codec/jpeg_codec.h',
219 'gfx/codec/png_codec.cc',
220 'gfx/codec/png_codec.h',
221 'gfx/color_analysis.cc',
222 'gfx/color_analysis.h',
223 'gfx/color_utils.cc',
224 'gfx/color_utils.h',
225 'gfx/favicon_size.h',
226 'gfx/font.h',
227 'gfx/font.cc',
228 'gfx/gfx_paths.cc',
229 'gfx/gfx_paths.h',
230 'gfx/image/image.cc',
231 'gfx/image/image.h',
232 'gfx/image/image_mac.mm',
233 'gfx/image/image_util.cc',
234 'gfx/image/image_util.h',
235 'gfx/insets.cc',
236 'gfx/insets.h',
237 'gfx/interpolated_transform.h',
238 'gfx/interpolated_transform.cc',
239 'gfx/mac/nsimage_cache.h',
240 'gfx/mac/nsimage_cache.mm',
241 'gfx/mac/scoped_ns_disable_screen_updates.h',
242 'gfx/native_theme.cc',
243 'gfx/native_theme.h',
244 'gfx/native_widget_types.h',
245 'gfx/path.cc',
246 'gfx/path.h',
247 'gfx/path_gtk.cc',
248 'gfx/path_win.cc',
249 'gfx/platform_font.h',
250 'gfx/platform_font_gtk.h',
251 'gfx/platform_font_gtk.cc',
252 'gfx/platform_font_mac.h',
253 'gfx/platform_font_mac.mm',
254 'gfx/platform_font_win.h',
255 'gfx/platform_font_win.cc',
256 'gfx/point.cc',
257 'gfx/point.h',
258 'gfx/rect.cc',
259 'gfx/rect.h',
260 'gfx/scoped_cg_context_save_gstate_mac.h',
261 'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
262 'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
263 'gfx/scrollbar_size.cc',
264 'gfx/scrollbar_size.h',
265 'gfx/size.cc',
266 'gfx/size.h',
267 'gfx/skbitmap_operations.cc',
268 'gfx/skbitmap_operations.h',
269 'gfx/skia_util.cc',
270 'gfx/skia_util.h',
271 'gfx/skia_utils_gtk.cc',
272 'gfx/skia_utils_gtk.h',
273 'gfx/transform.h',
274 'gfx/transform.cc',
275 ],
276 'conditions': [
277 # TODO(darin): Support component build on all platforms.
rvargas (doing something else) 2011/07/12 21:40:19 Given that COMPONENT_BUILD is global, I'm not sure
278 ['OS=="win"', {
279 'type': '<(component)',
280 },{
281 'type': 'static_library',
282 }],
283 ['toolkit_uses_gtk == 1', {
284 'dependencies': [
285 # font_gtk.cc uses fontconfig.
286 # TODO(evanm): I think this is wrong; it should just use GTK.
287 '../build/linux/system.gyp:fontconfig',
288 '../build/linux/system.gyp:gtk',
289 '../build/linux/system.gyp:x11',
290 '../build/linux/system.gyp:xext',
291 ],
292 'sources': [
293 'gfx/gtk_native_view_id_manager.cc',
294 'gfx/gtk_native_view_id_manager.h',
295 'gfx/gtk_preserve_window.cc',
296 'gfx/gtk_preserve_window.h',
297 'gfx/gtk_util.cc',
298 'gfx/gtk_util.h',
299 'gfx/native_theme_linux.cc',
300 'gfx/native_theme_linux.h',
301 'gfx/native_widget_types_gtk.cc',
302 ],
303 'link_settings': {
304 'libraries': [
305 '-lXrender', # For XRender* function calls in x11_util.cc.
306 ],
307 },
308 'conditions': [
309 ['toolkit_views==0', {
310 # Note: because of gyp predence rules this has to be defined as
311 # 'sources/' rather than 'sources!'.
312 'sources/': [
313 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'],
314 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
315 ['exclude', '^base/dragdrop/os_exchange_data.h'],
316 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.cc'],
317 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.h'],
318 ],
319 }, {
320 # Note: because of gyp predence rules this has to be defined as
321 # 'sources/' rather than 'sources!'.
322 'sources/': [
323 ['include', '^base/dragdrop/os_exchange_data.cc'],
324 ],
325 }],
326 ],
327 }],
328 ['OS=="win"', {
329 'sources': [
330 'gfx/canvas_direct2d.cc',
331 'gfx/canvas_direct2d.h',
332 'gfx/gdi_util.cc',
333 'gfx/gdi_util.h',
334 'gfx/icon_util.cc',
335 'gfx/icon_util.h',
336 'gfx/native_theme_win.cc',
337 'gfx/native_theme_win.h',
338 'gfx/win_util.cc',
339 'gfx/win_util.h',
340 ],
341 'include_dirs': [
342 '../',
343 '../third_party/wtl/include',
344 ],
345 'msvs_settings': {
346 'VCLinkerTool': {
347 'DelayLoadDLLs': [
348 'd2d1.dll',
349 'd3d10_1.dll',
350 ],
351 'AdditionalDependencies': [
352 'd2d1.lib',
353 'd3d10_1.lib',
354 ],
355 },
356 },
357 'link_settings': {
358 'libraries': [
359 '-limm32.lib',
360 '-loleacc.lib',
361 ],
362 },
363 },{ # OS!="win"
364 'sources!': [
365 'base/dragdrop/drag_source.cc',
366 'base/dragdrop/drag_source.h',
367 'base/dragdrop/drag_drop_types.h',
368 'base/dragdrop/drop_target.cc',
369 'base/dragdrop/drop_target.h',
370 'base/dragdrop/os_exchange_data.cc',
371 'base/view_prop.cc',
372 'base/view_prop.h',
373 ],
374 'sources/': [
375 ['exclude', '^base/win/*'],
376 ],
377 }],
378 ['OS=="win" and component == "shared_library"', {
379 'defines': [
380 'UI_IMPLEMENTATION',
381 ],
382 }],
383 ['OS=="mac"', {
384 'link_settings': {
385 'libraries': [
386 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
387 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
388 ],
389 },
390 }],
391 ['use_x11==1', {
392 'all_dependent_settings': {
393 'ldflags': [
394 '-L<(PRODUCT_DIR)',
395 ],
396 'link_settings': {
397 'libraries': [
398 '-lX11',
399 '-ldl',
400 ],
401 },
402 },
403 }, { # use_x11==0
404 'sources!': [
405 'base/keycodes/keyboard_code_conversion_x.cc',
406 'base/keycodes/keyboard_code_conversion_x.h',
407 ],
408 }],
409 ['chromeos==1', {
410 'sources': [
411 'gfx/native_theme_chromeos.cc',
412 'gfx/native_theme_chromeos.h',
413 ],
414 }],
415 ],
416 },
417 {
418 'target_name': 'gfx_resources',
419 'type': 'none',
420 'variables': {
421 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx',
422 },
423 'actions': [
424 {
425 'action_name': 'gfx_resources',
426 'variables': {
427 'grit_grd_file': 'gfx/gfx_resources.grd',
428 },
429 'includes': [ '../build/grit_action.gypi' ],
430 },
431 ],
432 'includes': [ '../build/grit_target.gypi' ],
433 },
434 ],
32 'conditions': [ 435 'conditions': [
33 ['toolkit_views2==1', { 436 ['toolkit_views2==1', {
34 'includes': [ 437 'includes': [
35 'ui_views.gypi', 438 'ui_views.gypi',
36 ], 439 ],
37 }], 440 }],
38 ['inside_chromium_build==1', { 441 ['inside_chromium_build==1', {
39 'includes': [ 442 'includes': [
40 'ui_unittests.gypi', 443 'ui_unittests.gypi',
41 ], 444 ],
445 'targets': [
446 {
447 # TODO(rsesek): Remove this target once ui_unittests is run on the
448 # waterfall instead of gfx_unittests.
449 'target_name': 'gfx_unittests',
450 'type': 'none',
451 'dependencies': [
452 'ui_unittests',
453 ],
454 'actions': [
455 {
456 'message': 'TEMPORARY: Copying ui_unittests to gfx_unittests',
457 'variables': {
458 'ui_copy_target': '<(PRODUCT_DIR)/ui_unittests<(EXECUTABLE_SUFFI X)',
459 'ui_copy_dest': '<(PRODUCT_DIR)/gfx_unittests<(EXECUTABLE_SUFFIX )',
460 },
461 'inputs': ['<(ui_copy_target)'],
462 'outputs': ['<(ui_copy_dest)'],
463 'action_name': 'TEMP_copy_ui_unittests',
464 'action': [
465 'python', '-c',
466 'import os, shutil; ' \
467 'shutil.copyfile(\'<(ui_copy_target)\', \'<(ui_copy_dest)\'); ' \
468 'os.chmod(\'<(ui_copy_dest)\', 0700)'
469 ]
470 }
471 ],
472 },
473 ],
474 }],
475 ['OS=="win"', {
476 'targets': [
477 {
478 'target_name': 'ui_nacl_win64',
479 'type': '<(component)',
480 'dependencies': [
481 '../base/base.gyp:base_nacl_win64',
482 ],
483 'defines': [
484 '<@(nacl_win64_defines)',
485 ],
486 'sources': [
487 'base/resource/resource_bundle_dummy.cc',
488 'base/ui_base_paths.h',
489 'base/ui_base_paths.cc',
490 'base/ui_base_switches.h',
491 'base/ui_base_switches.cc',
492 ],
493 'include_dirs': [
494 '..',
495 ],
496 'configurations': {
497 'Common_Base': {
498 'msvs_target_platform': 'x64',
499 },
500 },
501 'conditions': [
502 ['component=="shared_library"', {
503 'defines': [
504 'UI_IMPLEMENTATION',
505 ],
506 }],
507 ],
508 },
509 ],
42 }], 510 }],
43 ], 511 ],
44 } 512 }
45 513
46 # Local Variables: 514 # Local Variables:
47 # tab-width:2 515 # tab-width:2
48 # indent-tabs-mode:nil 516 # indent-tabs-mode:nil
49 # End: 517 # End:
50 # vim: set expandtab tabstop=2 shiftwidth=2: 518 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698