| Index: ui/gfx/gfx.gyp
|
| diff --git a/ui/gfx/gfx.gyp b/ui/gfx/gfx.gyp
|
| index 4a329b9a9afadaa96ed8ce252d91785cfd9e977f..2977604aa223964f119b8563b2f8274b244b9308 100644
|
| --- a/ui/gfx/gfx.gyp
|
| +++ b/ui/gfx/gfx.gyp
|
| @@ -406,41 +406,6 @@
|
| 'text_utils_skia.cc',
|
| ],
|
| }, { # desktop platforms
|
| - 'variables': {
|
| - 'vector_icons_cc_file': '<(INTERMEDIATE_DIR)/ui/gfx/vector_icons.cc',
|
| - 'vector_icons_public_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/vector_icons_public.h',
|
| - },
|
| - 'include_dirs': [
|
| - '<(SHARED_INTERMEDIATE_DIR)',
|
| - ],
|
| - 'sources': [
|
| - '<(vector_icons_cc_file)',
|
| - '<(vector_icons_public_h_file)',
|
| -
|
| - 'paint_vector_icon.cc',
|
| - 'paint_vector_icon.h',
|
| - 'vector_icons.h',
|
| - ],
|
| - 'actions': [
|
| - {
|
| - # GN version: //ui/gfx:aggregate_vector_icons
|
| - 'action_name': 'aggregate_vector_icons',
|
| - 'inputs': [
|
| - 'vector_icons/',
|
| - ],
|
| - 'outputs': [
|
| - '<(vector_icons_cc_file)',
|
| - '<(vector_icons_public_h_file)',
|
| - ],
|
| - 'action': [ 'python',
|
| - 'vector_icons/aggregate_vector_icons.py',
|
| - '--working_directory=vector_icons/',
|
| - '--output_cc=<(vector_icons_cc_file)',
|
| - '--output_h=<(vector_icons_public_h_file)',
|
| - ],
|
| - 'message': 'Aggregating vector resources.',
|
| - },
|
| - ],
|
| }],
|
| ['use_x11==1', {
|
| 'dependencies': [
|
| @@ -470,6 +435,49 @@
|
| }],
|
| ],
|
| },
|
| + # Separate from gfx to limit the impact of the hard_depenency.
|
| + {
|
| + 'target_name': 'gfx_vector_icons',
|
| + 'type': 'static_library',
|
| + 'dependencies': [
|
| + 'gfx',
|
| + ],
|
| + 'sources': [
|
| + 'paint_vector_icon.cc',
|
| + 'paint_vector_icon.h',
|
| + 'vector_icons.h',
|
| + ],
|
| + 'variables': {
|
| + 'vector_icons_cc_file': '<(INTERMEDIATE_DIR)/ui/gfx/vector_icons.cc',
|
| + 'vector_icons_public_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/vector_icons_public.h',
|
| + },
|
| + 'include_dirs': [
|
| + '<(SHARED_INTERMEDIATE_DIR)',
|
| + ],
|
| + 'actions': [
|
| + {
|
| + # GN version: //ui/gfx:aggregate_vector_icons
|
| + 'action_name': 'aggregate_vector_icons',
|
| + 'inputs': [
|
| + 'vector_icons/',
|
| + ],
|
| + 'outputs': [
|
| + '<(vector_icons_cc_file)',
|
| + '<(vector_icons_public_h_file)',
|
| + ],
|
| + 'action': [ 'python',
|
| + 'vector_icons/aggregate_vector_icons.py',
|
| + '--working_directory=vector_icons/',
|
| + '--output_cc=<(vector_icons_cc_file)',
|
| + '--output_h=<(vector_icons_public_h_file)',
|
| + ],
|
| + 'message': 'Aggregating vector resources.',
|
| + 'process_outputs_as_sources': 1,
|
| + },
|
| + ],
|
| + # Export a hard dependency because of generated header files.
|
| + 'hard_dependency': 1,
|
| + },
|
| {
|
| 'target_name': 'gfx_test_support',
|
| 'type': 'static_library',
|
|
|