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") { |
11 info_plist = "Info.plist" | 11 info_plist = "Info.plist" |
12 } | 12 } |
13 | 13 |
14 compile_plist("entitlements") { | 14 compile_plist("entitlements") { |
15 format = "xml1" | 15 format = "xml1" |
16 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] | 16 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] |
17 output_name = "$target_gen_dir/today_extension.appex.entitlements" | 17 output_name = "$target_gen_dir/search_widget_extension.appex.entitlements" |
18 plist_templates = | 18 plist_templates = |
19 [ "entitlements/external/widget_extension.appex.entitlements" ] | 19 [ "entitlements/external/search_widget_extension.appex.entitlements" ] |
20 } | 20 } |
21 | 21 |
22 ios_appex_bundle("widget_extension") { | 22 ios_appex_bundle("search_widget_extension") { |
23 sources = [ | 23 sources = [ |
24 "widget_view.h", | 24 "search_widget_view.h", |
25 "widget_view.mm", | 25 "search_widget_view.mm", |
26 "widget_view_controller.h", | 26 "search_widget_view_controller.h", |
27 "widget_view_controller.mm", | 27 "search_widget_view_controller.mm", |
28 ] | 28 ] |
29 | 29 |
30 deps = [ | 30 deps = [ |
31 "//base", | 31 "//base", |
32 "//components/open_from_clipboard:open_from_clipboard_impl", | 32 "//components/open_from_clipboard:open_from_clipboard_impl", |
33 "//components/prefs", | 33 "//components/prefs", |
34 "//components/variations", | 34 "//components/variations", |
35 "//components/version_info", | 35 "//components/version_info", |
36 "//ios/chrome/common", | 36 "//ios/chrome/common", |
37 "//ios/chrome/common/app_group", | 37 "//ios/chrome/common/app_group", |
38 "//ios/chrome/common/app_group:client", | 38 "//ios/chrome/common/app_group:client", |
39 "//ios/chrome/common/physical_web", | 39 "//ios/chrome/common/physical_web", |
40 "//ios/chrome/today_extension/strings", | 40 "//ios/chrome/today_extension/strings", |
41 "//ios/third_party/material_components_ios", | 41 "//ios/third_party/material_components_ios", |
42 "//net", | 42 "//net", |
43 "//ui/base", | 43 "//ui/base", |
44 ] | 44 ] |
45 | 45 |
46 libs = [ | 46 libs = [ |
47 "Foundation.framework", | 47 "Foundation.framework", |
48 "NotificationCenter.framework", | 48 "NotificationCenter.framework", |
49 "UIKit.framework", | 49 "UIKit.framework", |
50 ] | 50 ] |
51 | 51 |
52 extra_substitutions = [ | 52 extra_substitutions = [ |
53 "CHROME_CHANNEL_SCHEME=$url_channel_scheme", | 53 "CHROME_CHANNEL_SCHEME=$url_channel_scheme", |
54 "CHROMIUM_SHORT_NAME=$chromium_short_name", | 54 "CHROMIUM_SHORT_NAME=$chromium_short_name", |
55 | 55 "WIDGET_EXTENSION_BUNDLE_ID=$chromium_bundle_id.SearchTodayExtension", |
56 # The widget_extension and today_extension are using the same provisioning | |
57 # profile during development work. | |
58 # TODO(crbug.com/682238) : Request provisioning profile if widget is kept. | |
59 "WIDGET_EXTENSION_BUNDLE_ID=$chromium_bundle_id.TodayExtension", | |
60 ] | 56 ] |
61 | 57 |
62 configs += [ "//build/config/compiler:enable_arc" ] | 58 configs += [ "//build/config/compiler:enable_arc" ] |
63 | 59 |
64 entitlements_target = ":entitlements" | 60 entitlements_target = ":entitlements" |
65 info_plist_target = ":tweak_info_plist" | 61 info_plist_target = ":tweak_info_plist" |
66 } | 62 } |
OLD | NEW |