| 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/locales.gni") | 6 import("//build/config/locales.gni") |
| 7 import("//build/config/mac/base_rules.gni") | 7 import("//build/config/mac/base_rules.gni") |
| 8 import("//build/mac/tweak_info_plist.gni") | 8 import("//build/mac/tweak_info_plist.gni") |
| 9 import("//ios/build/chrome_build.gni") | 9 import("//ios/build/chrome_build.gni") |
| 10 import("//tools/grit/repack.gni") | 10 import("//tools/grit/repack.gni") |
| 11 import("//ios/chrome/tools/strings/generate_localizable_strings.gni") | 11 import("//ios/chrome/tools/strings/generate_localizable_strings.gni") |
| 12 | 12 |
| 13 tweak_info_plist("tweak_info_plist") { | 13 tweak_info_plist("tweak_info_plist") { |
| 14 info_plist = "Info.plist" | 14 info_plist = "Info.plist" |
| 15 } | 15 } |
| 16 | 16 |
| 17 compile_plist("entitlements") { | 17 compile_plist("entitlements") { |
| 18 format = "xml1" | 18 format = "xml1" |
| 19 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] | 19 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] |
| 20 output_name = "$target_gen_dir/search_widget_extension.appex.entitlements" | 20 output_name = "$target_gen_dir/search_widget_extension.appex.entitlements" |
| 21 plist_templates = | 21 plist_templates = |
| 22 [ "entitlements/external/search_widget_extension.appex.entitlements" ] | 22 [ "entitlements/external/search_widget_extension.appex.entitlements" ] |
| 23 } | 23 } |
| 24 | 24 |
| 25 ios_appex_bundle("search_widget_extension") { | 25 ios_appex_bundle("search_widget_extension") { |
| 26 deps = [ | 26 deps = [ |
| 27 ":resources", |
| 27 ":search_widget", | 28 ":search_widget", |
| 29 ":system_strings", |
| 28 ] | 30 ] |
| 29 | 31 |
| 30 extra_substitutions = [ | 32 extra_substitutions = [ |
| 31 "CHROME_CHANNEL_SCHEME=$url_channel_scheme", | 33 "CHROME_CHANNEL_SCHEME=$url_channel_scheme", |
| 32 "CHROMIUM_SHORT_NAME=$chromium_short_name", | 34 "CHROMIUM_SHORT_NAME=$chromium_short_name", |
| 33 "WIDGET_EXTENSION_BUNDLE_ID=$chromium_bundle_id.SearchTodayExtension", | 35 "WIDGET_EXTENSION_BUNDLE_ID=$chromium_bundle_id.SearchTodayExtension", |
| 34 ] | 36 ] |
| 35 | 37 |
| 36 entitlements_target = ":entitlements" | 38 entitlements_target = ":entitlements" |
| 37 info_plist_target = ":tweak_info_plist" | 39 info_plist_target = ":tweak_info_plist" |
| 38 } | 40 } |
| 39 | 41 |
| 40 source_set("search_widget") { | 42 source_set("search_widget") { |
| 41 sources = [ | 43 sources = [ |
| 42 "search_widget_view.h", | 44 "search_widget_view.h", |
| 43 "search_widget_view.mm", | 45 "search_widget_view.mm", |
| 44 "search_widget_view_controller.h", | 46 "search_widget_view_controller.h", |
| 45 "search_widget_view_controller.mm", | 47 "search_widget_view_controller.mm", |
| 46 "ui_util.h", | 48 "ui_util.h", |
| 47 "ui_util.mm", | 49 "ui_util.mm", |
| 48 ] | 50 ] |
| 49 | 51 |
| 50 deps = [ | 52 deps = [ |
| 51 ":resources", | |
| 52 ":system_strings", | |
| 53 "//base", | 53 "//base", |
| 54 "//components/open_from_clipboard:open_from_clipboard_impl", | 54 "//components/open_from_clipboard:open_from_clipboard_impl", |
| 55 "//ios/chrome/common/app_group", | 55 "//ios/chrome/common/app_group", |
| 56 ] | 56 ] |
| 57 | 57 |
| 58 libs = [ | 58 libs = [ |
| 59 "Foundation.framework", | 59 "Foundation.framework", |
| 60 "NotificationCenter.framework", | 60 "NotificationCenter.framework", |
| 61 "UIKit.framework", | 61 "UIKit.framework", |
| 62 ] | 62 ] |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 deps = [ | 125 deps = [ |
| 126 "//ios/chrome/search_widget_extension/strings:ios_search_widget_extension_ch
romium_strings", | 126 "//ios/chrome/search_widget_extension/strings:ios_search_widget_extension_ch
romium_strings", |
| 127 | 127 |
| 128 # Depends on both branding strings target to ensure the proper .h exists | 128 # Depends on both branding strings target to ensure the proper .h exists |
| 129 # (the .plist configuration can only reference one of them, and their | 129 # (the .plist configuration can only reference one of them, and their |
| 130 # content is identical). | 130 # content is identical). |
| 131 "//ios/chrome/search_widget_extension/strings:ios_search_widget_extension_go
ogle_chrome_strings", | 131 "//ios/chrome/search_widget_extension/strings:ios_search_widget_extension_go
ogle_chrome_strings", |
| 132 _packed_resources_target, | 132 _packed_resources_target, |
| 133 ] | 133 ] |
| 134 } | 134 } |
| OLD | NEW |