| 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 25 matching lines...) Expand all Loading... |
| 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 ] | 43 ] |
| 44 | 44 |
| 45 deps = [ | 45 deps = [ |
| 46 ":resources", |
| 46 "//base", | 47 "//base", |
| 47 "//components/open_from_clipboard:open_from_clipboard_impl", | 48 "//components/open_from_clipboard:open_from_clipboard_impl", |
| 48 "//ios/chrome/common/app_group", | 49 "//ios/chrome/common/app_group", |
| 49 ] | 50 ] |
| 50 | 51 |
| 51 libs = [ | 52 libs = [ |
| 52 "Foundation.framework", | 53 "Foundation.framework", |
| 53 "NotificationCenter.framework", | 54 "NotificationCenter.framework", |
| 54 "UIKit.framework", | 55 "UIKit.framework", |
| 55 ] | 56 ] |
| 56 | 57 |
| 57 configs += [ "//build/config/compiler:enable_arc" ] | 58 configs += [ "//build/config/compiler:enable_arc" ] |
| 58 } | 59 } |
| 59 | 60 |
| 60 source_set("unit_tests") { | 61 source_set("unit_tests") { |
| 61 testonly = true | 62 testonly = true |
| 62 sources = [ | 63 sources = [ |
| 63 "search_widget_view_controller_unittest.mm", | 64 "search_widget_view_controller_unittest.mm", |
| 64 ] | 65 ] |
| 65 deps = [ | 66 deps = [ |
| 66 ":search_widget", | 67 ":search_widget", |
| 67 "//testing/gtest", | 68 "//testing/gtest", |
| 68 ] | 69 ] |
| 69 configs += [ "//build/config/compiler:enable_arc" ] | 70 configs += [ "//build/config/compiler:enable_arc" ] |
| 70 } | 71 } |
| 72 |
| 73 bundle_data("resources") { |
| 74 visibility = [ ":*" ] |
| 75 sources = [ |
| 76 "resources/quick_action_camera_search.png", |
| 77 "resources/quick_action_camera_search@2x.png", |
| 78 "resources/quick_action_camera_search@3x.png", |
| 79 "resources/quick_action_incognito_search.png", |
| 80 "resources/quick_action_incognito_search@2x.png", |
| 81 "resources/quick_action_incognito_search@3x.png", |
| 82 "resources/quick_action_search.png", |
| 83 "resources/quick_action_search@2x.png", |
| 84 "resources/quick_action_search@3x.png", |
| 85 "resources/quick_action_voice_search.png", |
| 86 "resources/quick_action_voice_search@2x.png", |
| 87 "resources/quick_action_voice_search@3x.png", |
| 88 ] |
| 89 outputs = [ |
| 90 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 91 ] |
| 92 } |
| OLD | NEW |