Chromium Code Reviews| 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 "TODAY_EXTENSION_BUNDLE_ID=$chromium_bundle_id.TodayExtension", | |
|
sdefresne
2017/01/18 11:11:35
I would rename TODAY_EXTENSION_BUNDLE_ID to WIDGET
lody
2017/01/18 14:56:39
Done.
| |
| 40 ] | |
| 41 | |
| 42 configs += [ "//build/config/compiler:enable_arc" ] | |
| 43 | |
| 44 entitlements_target = ":entitlements" | |
| 45 info_plist_target = ":tweak_info_plist" | |
| 46 } | |
| OLD | NEW |