OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 component("views_examples_lib") { | 7 component("views_examples_lib") { |
8 testonly = true | 8 testonly = true |
9 | 9 |
10 sources = [ | 10 sources = [ |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 if (is_win) { | 82 if (is_win) { |
83 deps += [ "//third_party/wtl" ] | 83 deps += [ "//third_party/wtl" ] |
84 } | 84 } |
85 | 85 |
86 if (use_aura) { | 86 if (use_aura) { |
87 deps += [ "//ui/aura" ] | 87 deps += [ "//ui/aura" ] |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 if (!is_win || link_chrome_on_windows) { | 91 executable("views_examples_exe") { |
92 executable("views_examples_exe") { | 92 testonly = true |
93 testonly = true | |
94 | 93 |
95 sources = [ | 94 sources = [ |
96 "examples_main.cc", | 95 "examples_main.cc", |
97 ] | 96 ] |
98 | 97 |
99 deps = [ | 98 deps = [ |
100 ":views_examples_lib", | 99 ":views_examples_lib", |
101 "//base", | 100 "//base", |
102 "//base:i18n", | 101 "//base:i18n", |
103 "//ui/base", | 102 "//ui/base", |
104 "//ui/compositor", | 103 "//ui/compositor", |
105 "//ui/compositor:test_support", | 104 "//ui/compositor:test_support", |
106 "//ui/gfx", | 105 "//ui/gfx", |
107 "//ui/gl", | 106 "//ui/gl", |
108 "//ui/resources:ui_test_pak", | 107 "//ui/resources:ui_test_pak", |
109 "//ui/views", | 108 "//ui/views", |
110 "//ui/views:test_support", | 109 "//ui/views:test_support", |
111 "//ui/wm", | 110 "//ui/wm", |
112 ] | 111 ] |
113 | 112 |
114 if (use_aura) { | 113 if (use_aura) { |
115 deps += [ "//ui/aura" ] | 114 deps += [ "//ui/aura" ] |
116 } | 115 } |
117 if (use_x11) { | 116 if (use_x11) { |
118 deps += [ "//ui/gfx/x" ] | 117 deps += [ "//ui/gfx/x" ] |
119 } | |
120 } | 118 } |
121 } | 119 } |
122 | 120 |
123 component("views_examples_with_content_lib") { | 121 component("views_examples_with_content_lib") { |
124 testonly = true | 122 testonly = true |
125 sources = [ | 123 sources = [ |
126 "examples_window_with_content.cc", | 124 "examples_window_with_content.cc", |
127 "examples_window_with_content.h", | 125 "examples_window_with_content.h", |
128 "views_examples_with_content_export.h", | 126 "views_examples_with_content_export.h", |
129 "webview_example.cc", | 127 "webview_example.cc", |
(...skipping 28 matching lines...) Expand all Loading... |
158 "//base", | 156 "//base", |
159 "//content", | 157 "//content", |
160 "//ui/views_content_client", | 158 "//ui/views_content_client", |
161 ] | 159 ] |
162 | 160 |
163 if (is_win) { | 161 if (is_win) { |
164 configs += [ "//build/config/win:windowed" ] | 162 configs += [ "//build/config/win:windowed" ] |
165 configs -= [ "//build/config/win:console" ] | 163 configs -= [ "//build/config/win:console" ] |
166 } | 164 } |
167 } | 165 } |
OLD | NEW |