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

Side by Side Diff: ui/gfx/gfx.gyp

Issue 1236863006: Generated header files apparently require hard_dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: geo Created 5 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
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | ui/views/controls/image_view.h » ('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 (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
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 'gfx_geometry',
447 ],
448 'defines': [
449 'GFX_IMPLEMENTATION',
450 ],
451 'sources': [
452 'paint_vector_icon.cc',
453 'paint_vector_icon.h',
454 'vector_icons.h',
455 ],
456 'variables': {
457 'vector_icons_cc_file': '<(INTERMEDIATE_DIR)/ui/gfx/vector_icons.cc',
458 'vector_icons_public_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/vector_ icons_public.h',
459 },
460 'include_dirs': [
461 '<(SHARED_INTERMEDIATE_DIR)',
462 ],
463 'actions': [
464 {
465 # GN version: //ui/gfx:aggregate_vector_icons
466 'action_name': 'aggregate_vector_icons',
467 'inputs': [
468 'vector_icons/',
469 ],
470 'outputs': [
471 '<(vector_icons_cc_file)',
472 '<(vector_icons_public_h_file)',
473 ],
474 'action': [ 'python',
475 'vector_icons/aggregate_vector_icons.py',
476 '--working_directory=vector_icons/',
477 '--output_cc=<(vector_icons_cc_file)',
478 '--output_h=<(vector_icons_public_h_file)',
479 ],
480 'message': 'Aggregating vector resources.',
481 'process_outputs_as_sources': 1,
482 },
483 ],
484 # Export a hard dependency because of generated header files.
485 'hard_dependency': 1,
486 },
473 { 487 {
474 'target_name': 'gfx_test_support', 488 'target_name': 'gfx_test_support',
475 'type': 'static_library', 489 'type': 'static_library',
476 'sources': [ 490 'sources': [
477 'image/image_unittest_util.cc', 491 'image/image_unittest_util.cc',
478 'image/image_unittest_util.h', 492 'image/image_unittest_util.h',
479 'image/image_unittest_util_ios.mm', 493 'image/image_unittest_util_ios.mm',
480 'image/image_unittest_util_mac.mm', 494 'image/image_unittest_util_mac.mm',
481 'test/fontconfig_util_linux.cc', 495 'test/fontconfig_util_linux.cc',
482 'test/fontconfig_util_linux.h', 496 'test/fontconfig_util_linux.h',
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 ], 541 ],
528 'variables': { 542 'variables': {
529 'jni_gen_package': 'ui/gfx', 543 'jni_gen_package': 'ui/gfx',
530 }, 544 },
531 'includes': [ '../../build/jni_generator.gypi' ], 545 'includes': [ '../../build/jni_generator.gypi' ],
532 }, 546 },
533 ], 547 ],
534 }], 548 }],
535 ], 549 ],
536 } 550 }
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | ui/views/controls/image_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698