OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 { |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
399 'sources!': [ | 399 'sources!': [ |
400 'harfbuzz_font_skia.cc', | 400 'harfbuzz_font_skia.cc', |
401 'harfbuzz_font_skia.h', | 401 'harfbuzz_font_skia.h', |
402 'render_text.cc', | 402 'render_text.cc', |
403 'render_text.h', | 403 'render_text.h', |
404 'render_text_harfbuzz.cc', | 404 'render_text_harfbuzz.cc', |
405 'render_text_harfbuzz.h', | 405 'render_text_harfbuzz.h', |
406 'text_utils_skia.cc', | 406 'text_utils_skia.cc', |
407 ], | 407 ], |
408 }, { # desktop platforms | 408 }, { # desktop platforms |
409 'variables': { | |
410 'vector_icons_cc_file': '<(INTERMEDIATE_DIR)/ui/gfx/vector_icons.cc' , | |
411 'vector_icons_public_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/vec tor_icons_public.h', | |
412 }, | |
413 'include_dirs': [ | |
414 '<(SHARED_INTERMEDIATE_DIR)', | |
415 ], | |
416 'sources': [ | |
417 '<(vector_icons_cc_file)', | |
418 '<(vector_icons_public_h_file)', | |
419 | |
420 'paint_vector_icon.cc', | |
421 'paint_vector_icon.h', | |
422 'vector_icons.h', | |
423 ], | |
424 'actions': [ | |
425 { | |
426 # GN version: //ui/gfx:aggregate_vector_icons | |
427 'action_name': 'aggregate_vector_icons', | |
428 'inputs': [ | |
429 'vector_icons/', | |
430 ], | |
431 'outputs': [ | |
432 '<(vector_icons_cc_file)', | |
433 '<(vector_icons_public_h_file)', | |
434 ], | |
435 'action': [ 'python', | |
436 'vector_icons/aggregate_vector_icons.py', | |
437 '--working_directory=vector_icons/', | |
438 '--output_cc=<(vector_icons_cc_file)', | |
439 '--output_h=<(vector_icons_public_h_file)', | |
440 ], | |
441 'message': 'Aggregating vector resources.', | |
442 }, | |
443 ], | |
444 }], | 409 }], |
445 ['use_x11==1', { | 410 ['use_x11==1', { |
446 'dependencies': [ | 411 'dependencies': [ |
447 '../../build/linux/system.gyp:x11', | 412 '../../build/linux/system.gyp:x11', |
448 'x/gfx_x11.gyp:gfx_x11', | 413 'x/gfx_x11.gyp:gfx_x11', |
449 ], | 414 ], |
450 }], | 415 }], |
451 ['use_cairo==1', { | 416 ['use_cairo==1', { |
452 'dependencies': [ | 417 'dependencies': [ |
453 '<(DEPTH)/build/linux/system.gyp:pangocairo', | 418 '<(DEPTH)/build/linux/system.gyp:pangocairo', |
454 ], | 419 ], |
455 }], | 420 }], |
456 ['desktop_linux==1 or chromeos==1', { | 421 ['desktop_linux==1 or chromeos==1', { |
457 'dependencies': [ | 422 'dependencies': [ |
458 # font_render_params_linux.cc uses fontconfig | 423 # font_render_params_linux.cc uses fontconfig |
459 '<(DEPTH)/build/linux/system.gyp:fontconfig', | 424 '<(DEPTH)/build/linux/system.gyp:fontconfig', |
460 ], | 425 ], |
461 }], | 426 }], |
462 ], | 427 ], |
463 'target_conditions': [ | 428 'target_conditions': [ |
464 # Need 'target_conditions' to override default filename_rules to include | 429 # Need 'target_conditions' to override default filename_rules to include |
465 # the file on iOS. | 430 # the file on iOS. |
466 ['OS == "ios"', { | 431 ['OS == "ios"', { |
467 'sources/': [ | 432 'sources/': [ |
468 ['include', '^scoped_cg_context_save_gstate_mac\\.h$'], | 433 ['include', '^scoped_cg_context_save_gstate_mac\\.h$'], |
469 ], | 434 ], |
470 }], | 435 }], |
471 ], | 436 ], |
472 }, | 437 }, |
438 # Separate from gfx to limit the impact of the hard_dependency. | |
439 { | |
440 'target_name': 'gfx_vector_icons', | |
441 'type': '<(component)', | |
442 'dependencies': [ | |
443 '<(DEPTH)/base/base.gyp:base', | |
444 '<(DEPTH)/skia/skia.gyp:skia', | |
445 'gfx', | |
446 ], | |
447 'defines': [ | |
448 'GFX_IMPLEMENTATION', | |
449 ], | |
450 'sources': [ | |
451 'paint_vector_icon.cc', | |
452 'paint_vector_icon.h', | |
453 'vector_icons.h', | |
454 ], | |
455 'variables': { | |
456 'vector_icons_cc_file': '<(INTERMEDIATE_DIR)/ui/gfx/vector_icons.cc', | |
457 'vector_icons_public_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/vector_ icons_public.h', | |
458 }, | |
459 'include_dirs': [ | |
460 '<(SHARED_INTERMEDIATE_DIR)', | |
461 ], | |
462 'actions': [ | |
463 { | |
464 # GN version: //ui/gfx:aggregate_vector_icons | |
465 'action_name': 'aggregate_vector_icons', | |
466 'inputs': [ | |
467 'vector_icons/', | |
468 ], | |
469 'outputs': [ | |
470 '<(vector_icons_cc_file)', | |
471 '<(vector_icons_public_h_file)', | |
472 ], | |
473 'action': [ 'python', | |
474 'vector_icons/aggregate_vector_icons.py', | |
475 '--working_directory=vector_icons/', | |
476 '--output_cc=<(vector_icons_cc_file)', | |
477 '--output_h=<(vector_icons_public_h_file)', | |
478 ], | |
479 'message': 'Aggregating vector resources.', | |
480 'process_outputs_as_sources': 1, | |
481 }, | |
482 ], | |
483 # Export a hard dependency because of generated header files. | |
484 'hard_dependency': 1, | |
485 }, | |
sadrul
2015/07/14 08:07:14
Does something equivalent need to happen for gn?
Evan Stade
2015/07/14 16:43:22
We* don't think so.
*thakis
| |
473 { | 486 { |
474 'target_name': 'gfx_test_support', | 487 'target_name': 'gfx_test_support', |
475 'type': 'static_library', | 488 'type': 'static_library', |
476 'sources': [ | 489 'sources': [ |
477 'image/image_unittest_util.cc', | 490 'image/image_unittest_util.cc', |
478 'image/image_unittest_util.h', | 491 'image/image_unittest_util.h', |
479 'image/image_unittest_util_ios.mm', | 492 'image/image_unittest_util_ios.mm', |
480 'image/image_unittest_util_mac.mm', | 493 'image/image_unittest_util_mac.mm', |
481 'test/fontconfig_util_linux.cc', | 494 'test/fontconfig_util_linux.cc', |
482 'test/fontconfig_util_linux.h', | 495 'test/fontconfig_util_linux.h', |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
527 ], | 540 ], |
528 'variables': { | 541 'variables': { |
529 'jni_gen_package': 'ui/gfx', | 542 'jni_gen_package': 'ui/gfx', |
530 }, | 543 }, |
531 'includes': [ '../../build/jni_generator.gypi' ], | 544 'includes': [ '../../build/jni_generator.gypi' ], |
532 }, | 545 }, |
533 ], | 546 ], |
534 }], | 547 }], |
535 ], | 548 ], |
536 } | 549 } |
OLD | NEW |