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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 source_set("toolbar") { | 7 static_library("toolbar") { |
8 sources = [ | 8 sources = [ |
9 "toolbar_model.cc", | 9 "toolbar_model.cc", |
10 "toolbar_model.h", | 10 "toolbar_model.h", |
11 "toolbar_model_delegate.h", | 11 "toolbar_model_delegate.h", |
12 "toolbar_model_impl.cc", | 12 "toolbar_model_impl.cc", |
13 "toolbar_model_impl.h", | 13 "toolbar_model_impl.h", |
14 ] | 14 ] |
15 | 15 |
16 deps = [ | 16 deps = [ |
17 "//base", | 17 "//base", |
18 "//components/google/core/browser", | 18 "//components/google/core/browser", |
19 "//components/prefs", | 19 "//components/prefs", |
20 "//components/resources", | 20 "//components/resources", |
21 "//components/security_state", | 21 "//components/security_state", |
22 "//components/strings", | 22 "//components/strings", |
23 "//components/url_formatter", | 23 "//components/url_formatter", |
24 "//net", | 24 "//net", |
25 "//ui/base", | 25 "//ui/base", |
26 "//ui/gfx", | 26 "//ui/gfx", |
27 "//url", | 27 "//url", |
28 ] | 28 ] |
29 } | 29 } |
30 | 30 |
31 source_set("test_support") { | 31 static_library("test_support") { |
32 testonly = true | 32 testonly = true |
33 | 33 |
34 sources = [ | 34 sources = [ |
35 "test_toolbar_model.cc", | 35 "test_toolbar_model.cc", |
36 "test_toolbar_model.h", | 36 "test_toolbar_model.h", |
37 ] | 37 ] |
38 | 38 |
39 deps = [ | 39 deps = [ |
40 ":toolbar", | 40 ":toolbar", |
41 "//base", | 41 "//base", |
42 "//components/resources", | 42 "//components/resources", |
43 "//ui/gfx", | 43 "//ui/gfx", |
44 ] | 44 ] |
45 | 45 |
46 if (toolkit_views) { | 46 if (toolkit_views) { |
47 # Needed to get the TOOLKIT_VIEWS define. | 47 # Needed to get the TOOLKIT_VIEWS define. |
48 deps += [ "//ui/views" ] | 48 deps += [ "//ui/views" ] |
49 } | 49 } |
50 } | 50 } |
OLD | NEW |