OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/ios/rules.gni") | 5 import("//build/config/ios/rules.gni") |
6 | 6 |
7 source_set("ui_arc") { | |
8 sources = [ | |
9 "network_activity_indicator_manager.h", | |
10 "network_activity_indicator_manager.mm", | |
11 ] | |
12 deps = [ | |
13 "//base", | |
14 ] | |
15 configs += [ "//build/config/compiler:enable_arc" ] | |
16 } | |
17 | |
18 source_set("ui") { | 7 source_set("ui") { |
19 configs += [ "//build/config/compiler:enable_arc" ] | |
20 sources = [ | 8 sources = [ |
21 "UIView+SizeClassSupport.h", | 9 "UIView+SizeClassSupport.h", |
22 "UIView+SizeClassSupport.mm", | 10 "UIView+SizeClassSupport.mm", |
23 "animation_util.h", | 11 "animation_util.h", |
24 "animation_util.mm", | 12 "animation_util.mm", |
25 "background_generator.h", | 13 "background_generator.h", |
26 "background_generator.mm", | 14 "background_generator.mm", |
27 "favicon_view.h", | 15 "favicon_view.h", |
28 "favicon_view.mm", | 16 "favicon_view.mm", |
29 "file_locations.h", | 17 "file_locations.h", |
30 "file_locations.mm", | 18 "file_locations.mm", |
31 "image_util.h", | 19 "image_util.h", |
32 "image_util.mm", | 20 "image_util.mm", |
33 "native_content_controller.h", | 21 "native_content_controller.h", |
34 "native_content_controller.mm", | 22 "native_content_controller.mm", |
| 23 "network_activity_indicator_manager.h", |
| 24 "network_activity_indicator_manager.mm", |
35 "orientation_limiting_navigation_controller.h", | 25 "orientation_limiting_navigation_controller.h", |
36 "orientation_limiting_navigation_controller.mm", | 26 "orientation_limiting_navigation_controller.mm", |
37 "prerender_final_status.h", | 27 "prerender_final_status.h", |
38 "reversed_animation.h", | 28 "reversed_animation.h", |
39 "reversed_animation.mm", | 29 "reversed_animation.mm", |
40 "rtl_geometry.h", | 30 "rtl_geometry.h", |
41 "rtl_geometry.mm", | 31 "rtl_geometry.mm", |
42 "show_mail_composer_util.h", | 32 "show_mail_composer_util.h", |
43 "show_mail_composer_util.mm", | 33 "show_mail_composer_util.mm", |
44 "show_privacy_settings_util.h", | 34 "show_privacy_settings_util.h", |
45 "show_privacy_settings_util.mm", | 35 "show_privacy_settings_util.mm", |
46 "side_swipe_gesture_recognizer.h", | 36 "side_swipe_gesture_recognizer.h", |
47 "side_swipe_gesture_recognizer.mm", | 37 "side_swipe_gesture_recognizer.mm", |
48 "ui_util.h", | 38 "ui_util.h", |
49 "ui_util.mm", | 39 "ui_util.mm", |
50 "uikit_ui_util.h", | 40 "uikit_ui_util.h", |
51 "uikit_ui_util.mm", | 41 "uikit_ui_util.mm", |
52 "url_loader.h", | 42 "url_loader.h", |
53 ] | 43 ] |
54 deps = [ | 44 deps = [ |
55 "//base", | 45 "//base", |
56 "//base:i18n", | 46 "//base:i18n", |
57 "//ios/chrome/browser", | 47 "//ios/chrome/browser", |
58 "//ios/chrome/browser/favicon", | 48 "//ios/chrome/browser/favicon", |
59 "//ios/chrome/browser/ui/commands", | 49 "//ios/chrome/browser/ui/commands", |
60 "//ios/web", | 50 "//ios/web", |
61 "//ui/base", | 51 "//ui/base", |
62 "//ui/gfx", | 52 "//ui/gfx", |
63 ] | 53 ] |
64 public_deps = [ | 54 allow_circular_includes_from = [ "//ios/chrome/browser/ui/commands" ] |
65 ":ui_arc", | |
66 ] | |
67 allow_circular_includes_from = [ | |
68 ":ui_arc", | |
69 "//ios/chrome/browser/ui/commands", | |
70 ] | |
71 libs = [ | 55 libs = [ |
72 "Accelerate.framework", | 56 "Accelerate.framework", |
73 "CoreGraphics.framework", | 57 "CoreGraphics.framework", |
74 "QuartzCore.framework", | 58 "QuartzCore.framework", |
75 ] | 59 ] |
| 60 configs += [ "//build/config/compiler:enable_arc" ] |
76 } | 61 } |
77 | 62 |
78 source_set("unit_tests") { | 63 source_set("unit_tests") { |
79 testonly = true | 64 testonly = true |
80 sources = [ | 65 sources = [ |
81 "browser_container_view_unittest.mm", | 66 "browser_container_view_unittest.mm", |
82 "browser_view_controller_unittest.mm", | 67 "browser_view_controller_unittest.mm", |
83 "chrome_web_view_factory_unittest.mm", | 68 "chrome_web_view_factory_unittest.mm", |
84 "file_locations_unittest.mm", | 69 "file_locations_unittest.mm", |
85 "fullscreen_controller_unittest.mm", | 70 "fullscreen_controller_unittest.mm", |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 } | 426 } |
442 | 427 |
443 # Clean skeleton targets | 428 # Clean skeleton targets |
444 source_set("ui_clean_skeleton") { | 429 source_set("ui_clean_skeleton") { |
445 sources = [ | 430 sources = [ |
446 "ui_types.h", | 431 "ui_types.h", |
447 ] | 432 ] |
448 | 433 |
449 configs += [ "//build/config/compiler:enable_arc" ] | 434 configs += [ "//build/config/compiler:enable_arc" ] |
450 } | 435 } |
OLD | NEW |