Index: components/toolbar.gypi |
diff --git a/components/toolbar.gypi b/components/toolbar.gypi |
index 4a94c602a037da93611235a586309a9387bd1d8f..a690d696f4e0ecc3f0cbef10265d9770cb570620 100644 |
--- a/components/toolbar.gypi |
+++ b/components/toolbar.gypi |
@@ -22,5 +22,31 @@ |
'toolbar/toolbar_model.h', |
], |
}, |
+ { |
+ # GN version: //components/toolbar:test_support |
+ 'target_name': 'toolbar_test_support', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ '../base/base.gyp:base', |
+ '../ui/gfx/gfx.gyp:gfx_vector_icons', |
+ 'components_resources.gyp:components_resources', |
+ 'toolbar', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ ], |
+ 'sources': [ |
+ 'toolbar/test_toolbar_model.cc', |
+ 'toolbar/test_toolbar_model.h', |
+ ], |
+ 'conditions': [ |
+ ['toolkit_views==1', { |
+ # Needed to get the TOOLKIT_VIEWS define. |
+ 'dependencies': [ |
+ '<(DEPTH)/ui/views/views.gyp:views', |
+ ], |
+ }], |
+ ], |
+ }, |
], |
} |