| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import("//build/config/mac/base_rules.gni") | 6 import("//build/config/mac/base_rules.gni") |
| 7 import("//build/mac/tweak_info_plist.gni") | 7 import("//build/mac/tweak_info_plist.gni") |
| 8 import("//ios/build/chrome_build.gni") | 8 import("//ios/build/chrome_build.gni") |
| 9 | 9 |
| 10 tweak_info_plist("tweak_info_plist") { | 10 tweak_info_plist("tweak_info_plist") { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 entitlements_target = ":entitlements" | 33 entitlements_target = ":entitlements" |
| 34 info_plist_target = ":tweak_info_plist" | 34 info_plist_target = ":tweak_info_plist" |
| 35 } | 35 } |
| 36 | 36 |
| 37 source_set("search_widget") { | 37 source_set("search_widget") { |
| 38 sources = [ | 38 sources = [ |
| 39 "search_widget_view.h", | 39 "search_widget_view.h", |
| 40 "search_widget_view.mm", | 40 "search_widget_view.mm", |
| 41 "search_widget_view_controller.h", | 41 "search_widget_view_controller.h", |
| 42 "search_widget_view_controller.mm", | 42 "search_widget_view_controller.mm", |
| 43 "ui_util.h", |
| 44 "ui_util.mm", |
| 43 ] | 45 ] |
| 44 | 46 |
| 45 deps = [ | 47 deps = [ |
| 48 ":resources", |
| 46 "//base", | 49 "//base", |
| 47 "//components/open_from_clipboard:open_from_clipboard_impl", | 50 "//components/open_from_clipboard:open_from_clipboard_impl", |
| 48 "//ios/chrome/common/app_group", | 51 "//ios/chrome/common/app_group", |
| 49 ] | 52 ] |
| 50 | 53 |
| 51 libs = [ | 54 libs = [ |
| 52 "Foundation.framework", | 55 "Foundation.framework", |
| 53 "NotificationCenter.framework", | 56 "NotificationCenter.framework", |
| 54 "UIKit.framework", | 57 "UIKit.framework", |
| 55 ] | 58 ] |
| 56 | 59 |
| 57 configs += [ "//build/config/compiler:enable_arc" ] | 60 configs += [ "//build/config/compiler:enable_arc" ] |
| 58 } | 61 } |
| 59 | 62 |
| 60 source_set("unit_tests") { | 63 source_set("unit_tests") { |
| 61 testonly = true | 64 testonly = true |
| 62 sources = [ | 65 sources = [ |
| 63 "search_widget_view_controller_unittest.mm", | 66 "search_widget_view_controller_unittest.mm", |
| 64 ] | 67 ] |
| 65 deps = [ | 68 deps = [ |
| 66 ":search_widget", | 69 ":search_widget", |
| 67 "//testing/gtest", | 70 "//testing/gtest", |
| 68 ] | 71 ] |
| 69 configs += [ "//build/config/compiler:enable_arc" ] | 72 configs += [ "//build/config/compiler:enable_arc" ] |
| 70 } | 73 } |
| 74 |
| 75 bundle_data("resources") { |
| 76 visibility = [ ":*" ] |
| 77 sources = [ |
| 78 "resources/quick_action_camera_search.png", |
| 79 "resources/quick_action_camera_search@2x.png", |
| 80 "resources/quick_action_camera_search@3x.png", |
| 81 "resources/quick_action_incognito_search.png", |
| 82 "resources/quick_action_incognito_search@2x.png", |
| 83 "resources/quick_action_incognito_search@3x.png", |
| 84 "resources/quick_action_search.png", |
| 85 "resources/quick_action_search@2x.png", |
| 86 "resources/quick_action_search@3x.png", |
| 87 "resources/quick_action_voice_search.png", |
| 88 "resources/quick_action_voice_search@2x.png", |
| 89 "resources/quick_action_voice_search@3x.png", |
| 90 ] |
| 91 outputs = [ |
| 92 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 93 ] |
| 94 } |
| OLD | NEW |