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

Unified 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: depend on skia 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gfx.gyp
diff --git a/ui/gfx/gfx.gyp b/ui/gfx/gfx.gyp
index 4a329b9a9afadaa96ed8ce252d91785cfd9e977f..fe96106288edd14aab114b30a7fd5c89392f0ac1 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,54 @@
}],
],
},
+ # Separate from gfx to limit the impact of the hard_dependency.
+ {
+ 'target_name': 'gfx_vector_icons',
+ 'type': '<(component)',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/skia/skia.gyp:skia',
+ 'gfx',
+ ],
+ 'defines': [
+ 'GFX_IMPLEMENTATION',
+ ],
+ '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,
+ },
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
{
'target_name': 'gfx_test_support',
'type': 'static_library',
« 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