| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/ios/rules.gni") |
| 6 import("//build/mac/tweak_info_plist.gni") |
| 7 import("//ios/build/chrome_build.gni") |
| 8 |
| 9 tweak_info_plist("tweak_info_plist") { |
| 10 info_plist = "Info.plist" |
| 11 } |
| 12 |
| 13 compile_plist("entitlements") { |
| 14 format = "xml1" |
| 15 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] |
| 16 output_name = "$target_gen_dir/today_extension.appex.entitlements" |
| 17 plist_templates = |
| 18 [ "entitlements/external/widget_extension.appex.entitlements" ] + |
| 19 ios_chrome_entitlements_additions |
| 20 } |
| 21 |
| 22 ios_appex_bundle("widget_extension") { |
| 23 sources = [ |
| 24 "widget_view.h", |
| 25 "widget_view.mm", |
| 26 "widget_view_controller.h", |
| 27 "widget_view_controller.mm", |
| 28 ] |
| 29 |
| 30 libs = [ |
| 31 "Foundation.framework", |
| 32 "NotificationCenter.framework", |
| 33 "UIKit.framework", |
| 34 ] |
| 35 |
| 36 extra_substitutions = [ |
| 37 "CHROME_CHANNEL_SCHEME=$url_channel_scheme", |
| 38 "CHROMIUM_SHORT_NAME=$chromium_short_name", |
| 39 |
| 40 # The widget_extension and today_extension are using the same provisioning |
| 41 # profile during development work. |
| 42 # TODO(crbug.com/682238) : Request provisioning profile if widget is kept. |
| 43 "WIDGET_EXTENSION_BUNDLE_ID=$chromium_bundle_id.TodayExtension", |
| 44 ] |
| 45 |
| 46 configs += [ "//build/config/compiler:enable_arc" ] |
| 47 |
| 48 entitlements_target = ":entitlements" |
| 49 info_plist_target = ":tweak_info_plist" |
| 50 } |
| OLD | NEW |