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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
10 import("//ui/base/ui_features.gni") | 10 import("//ui/base/ui_features.gni") |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 "dragdrop/os_exchange_data_provider_builder_mac.mm", | 169 "dragdrop/os_exchange_data_provider_builder_mac.mm", |
170 "dragdrop/os_exchange_data_provider_factory.cc", | 170 "dragdrop/os_exchange_data_provider_factory.cc", |
171 "dragdrop/os_exchange_data_provider_factory.h", | 171 "dragdrop/os_exchange_data_provider_factory.h", |
172 "dragdrop/os_exchange_data_provider_mac.h", | 172 "dragdrop/os_exchange_data_provider_mac.h", |
173 "dragdrop/os_exchange_data_provider_mac.mm", | 173 "dragdrop/os_exchange_data_provider_mac.mm", |
174 "dragdrop/os_exchange_data_provider_win.cc", | 174 "dragdrop/os_exchange_data_provider_win.cc", |
175 "dragdrop/os_exchange_data_provider_win.h", | 175 "dragdrop/os_exchange_data_provider_win.h", |
176 "hit_test.h", | 176 "hit_test.h", |
177 "l10n/formatter.cc", | 177 "l10n/formatter.cc", |
178 "l10n/formatter.h", | 178 "l10n/formatter.h", |
179 "l10n/l10n_font_util.cc", | |
180 "l10n/l10n_font_util.h", | |
181 "l10n/l10n_util.cc", | 179 "l10n/l10n_util.cc", |
182 "l10n/l10n_util.h", | 180 "l10n/l10n_util.h", |
183 "l10n/l10n_util_android.cc", | 181 "l10n/l10n_util_android.cc", |
184 "l10n/l10n_util_android.h", | 182 "l10n/l10n_util_android.h", |
185 "l10n/l10n_util_collator.h", | 183 "l10n/l10n_util_collator.h", |
186 "l10n/l10n_util_mac.h", | 184 "l10n/l10n_util_mac.h", |
187 "l10n/l10n_util_mac.mm", | 185 "l10n/l10n_util_mac.mm", |
188 "l10n/l10n_util_posix.cc", | 186 "l10n/l10n_util_posix.cc", |
189 "l10n/l10n_util_win.cc", | 187 "l10n/l10n_util_win.cc", |
190 "l10n/l10n_util_win.h", | 188 "l10n/l10n_util_win.h", |
191 "l10n/time_format.cc", | 189 "l10n/time_format.cc", |
192 "l10n/time_format.h", | 190 "l10n/time_format.h", |
193 "layout.cc", | 191 "layout.cc", |
194 "layout.h", | 192 "layout.h", |
195 "layout_mac.mm", | 193 "layout_mac.mm", |
196 "material_design/material_design_controller.cc", | |
197 "material_design/material_design_controller.h", | |
198 "models/button_menu_item_model.cc", | |
199 "models/button_menu_item_model.h", | |
200 "models/combobox_model.cc", | |
201 "models/combobox_model.h", | |
202 "models/combobox_model_observer.h", | |
203 "models/dialog_model.cc", | |
204 "models/dialog_model.h", | |
205 "models/list_model.h", | 194 "models/list_model.h", |
206 "models/list_model_observer.h", | 195 "models/list_model_observer.h", |
207 "models/list_selection_model.cc", | |
208 "models/list_selection_model.h", | |
209 "models/menu_model.cc", | |
210 "models/menu_model.h", | |
211 "models/menu_model_delegate.h", | 196 "models/menu_model_delegate.h", |
212 "models/menu_separator_types.h", | 197 "models/menu_separator_types.h", |
213 "models/simple_combobox_model.cc", | |
214 "models/simple_combobox_model.h", | |
215 "models/simple_menu_model.cc", | |
216 "models/simple_menu_model.h", | |
217 "models/table_model.cc", | |
218 "models/table_model.h", | |
219 "models/table_model_observer.h", | |
220 "models/tree_model.cc", | |
221 "models/tree_model.h", | |
222 "models/tree_node_iterator.h", | 198 "models/tree_node_iterator.h", |
223 "models/tree_node_model.h", | 199 "models/tree_node_model.h", |
224 "nine_image_painter_factory.cc", | 200 "nine_image_painter_factory.cc", |
225 "nine_image_painter_factory.h", | 201 "nine_image_painter_factory.h", |
226 "page_transition_types.cc", | 202 "page_transition_types.cc", |
227 "page_transition_types.h", | 203 "page_transition_types.h", |
228 "resource/resource_bundle.cc", | 204 "resource/resource_bundle.cc", |
229 "resource/resource_bundle.h", | 205 "resource/resource_bundle.h", |
230 "resource/resource_bundle_android.cc", | 206 "resource/resource_bundle_android.cc", |
231 "resource/resource_bundle_auralinux.cc", | 207 "resource/resource_bundle_auralinux.cc", |
232 "resource/resource_bundle_ios.mm", | 208 "resource/resource_bundle_ios.mm", |
233 "resource/resource_bundle_mac.mm", | 209 "resource/resource_bundle_mac.mm", |
234 "resource/resource_bundle_win.cc", | 210 "resource/resource_bundle_win.cc", |
235 "resource/resource_bundle_win.h", | 211 "resource/resource_bundle_win.h", |
236 "resource/resource_data_dll_win.cc", | 212 "resource/resource_data_dll_win.cc", |
237 "resource/resource_data_dll_win.h", | 213 "resource/resource_data_dll_win.h", |
238 "template_expressions.cc", | 214 "template_expressions.cc", |
239 "template_expressions.h", | 215 "template_expressions.h", |
240 "theme_provider.cc", | |
241 "theme_provider.h", | |
242 "touch/touch_device.h", | 216 "touch/touch_device.h", |
243 "touch/touch_editing_controller.cc", | |
244 "touch/touch_editing_controller.h", | |
245 "ui_base_export.h", | |
246 "ui_base_exports.cc", | |
247 "ui_base_paths.cc", | 217 "ui_base_paths.cc", |
248 "ui_base_paths.h", | 218 "ui_base_paths.h", |
249 "ui_base_switches.cc", | 219 "ui_base_switches.cc", |
250 "ui_base_switches.h", | 220 "ui_base_switches.h", |
251 "ui_base_switches_util.cc", | |
252 "ui_base_switches_util.h", | |
253 "ui_base_types.cc", | |
254 "ui_base_types.h", | |
255 "user_activity/user_activity_detector.cc", | |
256 "user_activity/user_activity_detector.h", | |
257 "user_activity/user_activity_observer.h", | 221 "user_activity/user_activity_observer.h", |
258 "view_prop.cc", | 222 "view_prop.cc", |
259 "view_prop.h", | 223 "view_prop.h", |
260 "webui/jstemplate_builder.cc", | 224 "webui/jstemplate_builder.cc", |
261 "webui/jstemplate_builder.h", | 225 "webui/jstemplate_builder.h", |
262 "webui/web_ui_util.cc", | 226 "webui/web_ui_util.cc", |
263 "webui/web_ui_util.h", | 227 "webui/web_ui_util.h", |
264 "win/accessibility_ids_win.h", | 228 "win/accessibility_ids_win.h", |
265 "win/accessibility_misc_utils.cc", | 229 "win/accessibility_misc_utils.cc", |
266 "win/accessibility_misc_utils.h", | 230 "win/accessibility_misc_utils.h", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
332 "dragdrop/drag_utils.h", | 296 "dragdrop/drag_utils.h", |
333 "dragdrop/file_info.cc", | 297 "dragdrop/file_info.cc", |
334 "dragdrop/file_info.h", | 298 "dragdrop/file_info.h", |
335 "idle/idle.cc", | 299 "idle/idle.cc", |
336 "idle/idle.h", | 300 "idle/idle.h", |
337 "idle/idle_android.cc", | 301 "idle/idle_android.cc", |
338 "idle/idle_chromeos.cc", | 302 "idle/idle_chromeos.cc", |
339 "idle/idle_linux.cc", | 303 "idle/idle_linux.cc", |
340 "idle/idle_mac.mm", | 304 "idle/idle_mac.mm", |
341 "idle/idle_win.cc", | 305 "idle/idle_win.cc", |
306 "l10n/l10n_font_util.cc", | |
307 "l10n/l10n_font_util.h", | |
308 "material_design/material_design_controller.cc", | |
309 "material_design/material_design_controller.h", | |
310 "models/button_menu_item_model.cc", | |
311 "models/button_menu_item_model.h", | |
312 "models/combobox_model.cc", | |
313 "models/combobox_model.h", | |
314 "models/combobox_model_observer.h", | |
315 "models/dialog_model.cc", | |
316 "models/dialog_model.h", | |
317 "models/list_selection_model.cc", | |
318 "models/list_selection_model.h", | |
319 "models/menu_model.cc", | |
320 "models/menu_model.h", | |
321 "models/simple_combobox_model.cc", | |
322 "models/simple_combobox_model.h", | |
323 "models/simple_menu_model.cc", | |
324 "models/simple_menu_model.h", | |
325 "models/table_model.cc", | |
326 "models/table_model.h", | |
327 "models/table_model_observer.h", | |
328 "models/tree_model.cc", | |
329 "models/tree_model.h", | |
342 "text/bytes_formatting.cc", | 330 "text/bytes_formatting.cc", |
343 "text/bytes_formatting.h", | 331 "text/bytes_formatting.h", |
332 "theme_provider.cc", | |
333 "theme_provider.h", | |
334 "touch/touch_editing_controller.cc", | |
335 "touch/touch_editing_controller.h", | |
336 "ui_base_export.h", | |
337 "ui_base_exports.cc", | |
338 "ui_base_switches_util.cc", | |
339 "ui_base_switches_util.h", | |
340 "ui_base_types.cc", | |
341 "ui_base_types.h", | |
342 "user_activity/user_activity_detector.cc", | |
343 "user_activity/user_activity_detector.h", | |
344 ] | 344 ] |
345 } | 345 } |
346 | 346 |
347 if (is_win) { | 347 if (is_win) { |
348 sources += [ "touch/touch_device_win.cc" ] | 348 sources += [ "touch/touch_device_win.cc" ] |
349 } else if (is_android) { | 349 } else if (is_android) { |
350 sources += [ "touch/touch_device_android.cc" ] | 350 sources += [ "touch/touch_device_android.cc" ] |
351 } else if (is_ios) { | 351 } else if (is_ios) { |
352 sources += [ "touch/touch_device_ios.cc" ] | 352 sources += [ "touch/touch_device_ios.cc" ] |
353 } else if (is_linux) { | 353 } else if (is_linux) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 "//ui/strings", | 386 "//ui/strings", |
387 "//url", | 387 "//url", |
388 ] | 388 ] |
389 | 389 |
390 if (is_ios) { | 390 if (is_ios) { |
391 set_sources_assignment_filter([]) | 391 set_sources_assignment_filter([]) |
392 sources += [ | 392 sources += [ |
393 "l10n/l10n_util_mac.h", | 393 "l10n/l10n_util_mac.h", |
394 "l10n/l10n_util_mac.mm", | 394 "l10n/l10n_util_mac.mm", |
395 ] | 395 ] |
396 public_deps -= [ "//ui/events:events_base" ] | |
397 public_deps += [ "//ui/events:event_constants" ] | |
398 deps -= [ "//ui/events" ] | |
Nico
2016/12/09 12:20:16
Rather than adding this unconditionally and the re
| |
399 | |
396 set_sources_assignment_filter(sources_assignment_filter) | 400 set_sources_assignment_filter(sources_assignment_filter) |
397 } | 401 } |
398 | 402 |
399 if (toolkit_views) { | 403 if (toolkit_views) { |
400 deps += [ "//ui/events" ] | 404 deps += [ "//ui/events" ] |
401 } | 405 } |
402 | 406 |
403 if (use_x11) { | 407 if (use_x11) { |
404 public_deps += [ "//ui/base/x" ] | 408 public_deps += [ "//ui/base/x" ] |
405 configs += [ "//build/config/linux:x11" ] | 409 configs += [ "//build/config/linux:x11" ] |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
726 | 730 |
727 test("ui_base_unittests") { | 731 test("ui_base_unittests") { |
728 sources = [ | 732 sources = [ |
729 "clipboard/clipboard_mac_unittest.mm", | 733 "clipboard/clipboard_mac_unittest.mm", |
730 "clipboard/clipboard_util_mac_unittest.mm", | 734 "clipboard/clipboard_util_mac_unittest.mm", |
731 "l10n/l10n_util_mac_unittest.mm", | 735 "l10n/l10n_util_mac_unittest.mm", |
732 "l10n/l10n_util_unittest.cc", | 736 "l10n/l10n_util_unittest.cc", |
733 "l10n/l10n_util_win_unittest.cc", | 737 "l10n/l10n_util_win_unittest.cc", |
734 "l10n/time_format_unittest.cc", | 738 "l10n/time_format_unittest.cc", |
735 "layout_unittest.cc", | 739 "layout_unittest.cc", |
736 "material_design/material_design_controller_unittest.cc", | |
737 "models/tree_node_iterator_unittest.cc", | 740 "models/tree_node_iterator_unittest.cc", |
738 "resource/data_pack_literal.cc", | 741 "resource/data_pack_literal.cc", |
739 "resource/data_pack_unittest.cc", | 742 "resource/data_pack_unittest.cc", |
740 "resource/resource_bundle_unittest.cc", | 743 "resource/resource_bundle_unittest.cc", |
741 "resource/scale_factor_unittest.cc", | 744 "resource/scale_factor_unittest.cc", |
742 "template_expressions_unittest.cc", | 745 "template_expressions_unittest.cc", |
743 "test/page_transition_types_unittest.cc", | 746 "test/page_transition_types_unittest.cc", |
744 "test/run_all_unittests.cc", | 747 "test/run_all_unittests.cc", |
745 "user_activity/user_activity_detector_unittest.cc", | |
746 ] | 748 ] |
747 if (!is_ios) { | 749 if (!is_ios) { |
748 sources += [ | 750 sources += [ |
751 "material_design/material_design_controller_unittest.cc", | |
749 "test/scoped_fake_nswindow_fullscreen_unittest.mm", | 752 "test/scoped_fake_nswindow_fullscreen_unittest.mm", |
750 "test/test_clipboard_unittest.cc", | 753 "test/test_clipboard_unittest.cc", |
754 "user_activity/user_activity_detector_unittest.cc", | |
751 ] | 755 ] |
752 } | 756 } |
753 | 757 |
754 data = [] | 758 data = [] |
755 data_deps = [] | 759 data_deps = [] |
756 | 760 |
757 if (is_android) { | 761 if (is_android) { |
758 sources -= [ "user_activity/user_activity_detector_unittest.cc" ] | 762 sources -= [ "user_activity/user_activity_detector_unittest.cc" ] |
759 } | 763 } |
760 | 764 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
957 if (is_mac) { | 961 if (is_mac) { |
958 mac_framework_bundle("ui_unittests_framework") { | 962 mac_framework_bundle("ui_unittests_framework") { |
959 testonly = true | 963 testonly = true |
960 deps = [ | 964 deps = [ |
961 "//ui/resources:ui_test_pak_bundle_data", | 965 "//ui/resources:ui_test_pak_bundle_data", |
962 ] | 966 ] |
963 info_plist = "test/framework-Info.plist" | 967 info_plist = "test/framework-Info.plist" |
964 output_name = "ui_unittests Framework" | 968 output_name = "ui_unittests Framework" |
965 } | 969 } |
966 } | 970 } |
OLD | NEW |