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

Side by Side Diff: ui/views/mus/BUILD.gn

Issue 2291803002: Remove views.gypi, inline sources into GN files. (Closed)
Patch Set: Remove shared file Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//services/shell/public/cpp/service.gni") 7 import("//services/shell/public/cpp/service.gni")
8 import("//services/shell/public/service_manifest.gni") 8 import("//services/shell/public/service_manifest.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//tools/grit/repack.gni") 10 import("//tools/grit/repack.gni")
11 11
12 gypi = exec_script("//build/gypi_to_gn.py",
13 [ rebase_path("../views.gyp") ],
14 "scope",
15 [ "../views.gyp" ])
16 component("mus") { 12 component("mus") {
17 output_name = "ui_views_mus_lib" 13 output_name = "ui_views_mus_lib"
18 14
19 sources = [ 15 sources = [
20 "aura_init.cc", 16 "aura_init.cc",
21 "aura_init.h", 17 "aura_init.h",
22 "clipboard_mus.cc", 18 "clipboard_mus.cc",
23 "clipboard_mus.h", 19 "clipboard_mus.h",
24 "display_list.cc", 20 "display_list.cc",
25 "display_list.h", 21 "display_list.h",
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ] 140 ]
145 141
146 data_deps = [ 142 data_deps = [
147 "//ui/resources:ui_test_pak_data", 143 "//ui/resources:ui_test_pak_data",
148 ] 144 ]
149 } 145 }
150 146
151 test("views_mus_unittests") { 147 test("views_mus_unittests") {
152 testonly = true 148 testonly = true
153 149
154 configs += [ "//build/config:precompiled_headers" ]
155
156 sources = [ 150 sources = [
157 "display_list_unittest.cc", 151 "display_list_unittest.cc",
158 "native_widget_mus_unittest.cc", 152 "native_widget_mus_unittest.cc",
159 "os_exchange_data_provider_mus_unittest.cc", 153 "os_exchange_data_provider_mus_unittest.cc",
160 "pointer_watcher_event_router_unittest.cc", 154 "pointer_watcher_event_router_unittest.cc",
161 "run_all_unittests_mus.cc", 155 "run_all_unittests_mus.cc",
162 "screen_mus_unittest.cc", 156 "screen_mus_unittest.cc",
163 ] 157 ]
164 158
165 sources += rebase_path(gypi.views_unittests_sources, ".", "//ui/views") 159 configs += [ "//build/config:precompiled_headers" ]
166 sources += rebase_path(gypi.views_unittests_aura_sources, ".", "//ui/views")
167
168 sources -= [
169 # Mus has its own runner.
170 "../run_all_unittests_main.cc",
171
172 # EventGenerator doesn't work well with IME in mus.
173 # crbug.com/615033 crbug.com/548407
174 "../controls/textfield/textfield_unittest.cc",
175
176 # Tooltips. crbug.com/599558
177 "../corewm/tooltip_controller_unittest.cc",
178
179 # Some of the tests need drag-drop support. crbug.com/614037
180 "../touchui/touch_selection_controller_impl_unittest.cc",
181 ]
182 160
183 deps = [ 161 deps = [
184 ":mus", 162 ":mus",
185 ":test_support", 163 ":test_support",
186 "//base", 164 "//base",
187 "//base:i18n", 165 "//base:i18n",
188 "//base/test:test_support", 166 "//base/test:test_support",
189 "//cc", 167 "//cc",
190 "//net", 168 "//net",
191 "//services/shell/background:main", # Provides main(). 169 "//services/shell/background:main", # Provides main().
(...skipping 14 matching lines...) Expand all
206 "//ui/events:events_base", 184 "//ui/events:events_base",
207 "//ui/events:test_support", 185 "//ui/events:test_support",
208 "//ui/events/platform", 186 "//ui/events/platform",
209 "//ui/gfx:test_support", 187 "//ui/gfx:test_support",
210 "//ui/gfx/geometry", 188 "//ui/gfx/geometry",
211 "//ui/native_theme", 189 "//ui/native_theme",
212 "//ui/strings", 190 "//ui/strings",
213 "//ui/touch_selection", 191 "//ui/touch_selection",
214 "//ui/views", 192 "//ui/views",
215 "//ui/views:test_support_internal", 193 "//ui/views:test_support_internal",
194 "//ui/views:views_unittests_sources",
216 "//ui/wm", 195 "//ui/wm",
217 "//url", 196 "//url",
218 ] 197 ]
219 198
220 data_deps = [ 199 data_deps = [
221 ":unittests_manifest", 200 ":unittests_manifest",
222 "//services/ui/test_wm", 201 "//services/ui/test_wm",
223 ] 202 ]
224 203
225 if (is_win) { 204 if (is_win) {
(...skipping 20 matching lines...) Expand all
246 "//ui/gfx/x", 225 "//ui/gfx/x",
247 ] 226 ]
248 } 227 }
249 } 228 }
250 229
251 # Tests that must run sequentially because they access system-wide features 230 # Tests that must run sequentially because they access system-wide features
252 # like capture. 231 # like capture.
253 test("views_mus_interactive_ui_tests") { 232 test("views_mus_interactive_ui_tests") {
254 testonly = true 233 testonly = true
255 234
256 configs += [ "//build/config:precompiled_headers" ]
257
258 sources = [ 235 sources = [
259 "../widget/widget_interactive_uitest.cc", 236 "../widget/widget_interactive_uitest.cc",
260 "clipboard_unittest.cc", 237 "clipboard_unittest.cc",
261 "interactive_ui_tests_mus.cc", 238 "interactive_ui_tests_mus.cc",
262 ] 239 ]
263 240
264 deps = [ 241 deps = [
265 ":mus", 242 ":mus",
266 ":test_support", 243 ":test_support",
267 "//base", 244 "//base",
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 type = "exe" 280 type = "exe"
304 name = "views_mus_unittests" 281 name = "views_mus_unittests"
305 source = "unittests_manifest.json" 282 source = "unittests_manifest.json"
306 } 283 }
307 284
308 service_manifest("interactive_ui_tests_manifest") { 285 service_manifest("interactive_ui_tests_manifest") {
309 type = "exe" 286 type = "exe"
310 name = "views_mus_interactive_ui_tests" 287 name = "views_mus_interactive_ui_tests"
311 source = "interactive_ui_tests_manifest.json" 288 source = "interactive_ui_tests_manifest.json"
312 } 289 }
OLDNEW
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698