Chromium Code Reviews| Index: ios/chrome/proto_today_extension/BUILD.gn |
| diff --git a/ios/chrome/proto_today_extension/BUILD.gn b/ios/chrome/proto_today_extension/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..56f098ada28947291ae807d666aec9f16952e371 |
| --- /dev/null |
| +++ b/ios/chrome/proto_today_extension/BUILD.gn |
| @@ -0,0 +1,42 @@ |
| +# Copyright 2017 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import("//build/config/ios/rules.gni") |
| +import("//build/mac/tweak_info_plist.gni") |
| +import("//ios/build/chrome_build.gni") |
| + |
| +tweak_info_plist("tweak_info_plist") { |
| + info_plist = "Info.plist" |
| +} |
| + |
| +compile_plist("entitlements") { |
| + format = "xml1" |
| + substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] |
| + output_name = "$target_gen_dir/proto_today_extension.appex.entitlements" |
| + plist_templates = [ "../today_extension/entitlements/external/today_extension.appex.entitlements" ] + ios_chrome_entitlements_additions |
|
Olivier
2017/01/17 10:13:05
proto_today_extension
Olivier
2017/01/17 10:13:05
You have to use the same appex name everywhere.
sdefresne
2017/01/17 10:39:07
Why not just copy the file from ios/today_extensio
lody
2017/01/17 17:31:45
Not sure what you mean by "Then you won't have to
|
| +} |
| + |
| +ios_appex_bundle("proto_today_extension") { |
| + sources = [ |
| + "widget_view.h", |
| + "widget_view.mm", |
| + "widget_view_controller.h", |
| + "widget_view_controller.mm", |
| + ] |
| + |
| + libs = [ |
| + "Foundation.framework", |
| + "NotificationCenter.framework", |
| + "UIKit.framework", |
| + ] |
| + |
| + extra_substitutions = [ |
| + "CHROME_CHANNEL_SCHEME=$url_channel_scheme", |
| + "CHROMIUM_SHORT_NAME=$chromium_short_name", |
| + "TODAY_EXTENSION_BUNDLE_ID=$chromium_bundle_id.TodayExtension", |
| + ] |
| + |
|
sdefresne
2017/01/17 10:39:07
It is recommended to use ARC for new code, so:
|
| + entitlements_target = ":entitlements" |
| + info_plist_target = ":tweak_info_plist" |
| +} |