OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 # GN version: //components/toolbar | 8 # GN version: //components/toolbar |
9 'target_name': 'toolbar', | 9 'target_name': 'toolbar', |
10 'type': 'static_library', | 10 'type': 'static_library', |
11 'dependencies': [ | 11 'dependencies': [ |
12 '../base/base.gyp:base', | 12 '../base/base.gyp:base', |
13 '../url/url.gyp:url_lib', | 13 '../url/url.gyp:url_lib', |
14 'security_state', | 14 'security_state', |
15 ], | 15 ], |
16 'include_dirs': [ | 16 'include_dirs': [ |
17 '..', | 17 '..', |
18 ], | 18 ], |
19 'sources': [ | 19 'sources': [ |
20 # Note: sources list duplicated in GN build. | 20 # Note: sources list duplicated in GN build. |
21 'toolbar/toolbar_model.cc', | 21 'toolbar/toolbar_model.cc', |
22 'toolbar/toolbar_model.h', | 22 'toolbar/toolbar_model.h', |
23 ], | 23 ], |
24 }, | 24 }, |
| 25 { |
| 26 # GN version: //components/toolbar:test_support |
| 27 'target_name': 'toolbar_test_support', |
| 28 'type': 'static_library', |
| 29 'dependencies': [ |
| 30 '../base/base.gyp:base', |
| 31 '../ui/gfx/gfx.gyp:gfx_vector_icons', |
| 32 'components_resources.gyp:components_resources', |
| 33 'toolbar', |
| 34 ], |
| 35 'include_dirs': [ |
| 36 '..', |
| 37 ], |
| 38 'sources': [ |
| 39 'toolbar/test_toolbar_model.cc', |
| 40 'toolbar/test_toolbar_model.h', |
| 41 ], |
| 42 'conditions': [ |
| 43 ['toolkit_views==1', { |
| 44 # Needed to get the TOOLKIT_VIEWS define. |
| 45 'dependencies': [ |
| 46 '<(DEPTH)/ui/views/views.gyp:views', |
| 47 ], |
| 48 }], |
| 49 ], |
| 50 }, |
25 ], | 51 ], |
26 } | 52 } |
OLD | NEW |