Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: ios/chrome/share_extension/BUILD.gn

Issue 2586713002: Upstream code and resources for Chrome on iOS extensions. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/BUILD.gn ('k') | ios/chrome/share_extension/Info.plist » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/locales.gni") 6 import("//build/config/locales.gni")
7 import("//build/config/mac/base_rules.gni")
8 import("//build/mac/tweak_info_plist.gni")
9 import("//ios/build/chrome_build.gni")
6 import("//ios/chrome/extension_repack.gni") 10 import("//ios/chrome/extension_repack.gni")
11 import("//ios/chrome/tools/strings/generate_localizable_strings.gni")
12 import("//ios/public/provider/chrome/browser/build_config.gni")
7 13
8 group("resources") { 14 group("resources") {
9 deps = [ 15 deps = [
10 "//ios/chrome/share_extension/strings", 16 "//ios/chrome/share_extension/strings",
11 ] 17 ]
12 } 18 }
13 19
14 extension_repack_all_locales("packed_resources") { 20 extension_repack_all_locales("packed_resources") {
15 extension = "share_extension" 21 extension = "share_extension"
16 input_locales = ios_packed_locales 22 input_locales = ios_packed_locales
17 output_locales = ios_packed_locales_as_mac_outputs 23 output_locales = ios_packed_locales_as_mac_outputs
18 } 24 }
25
26 tweak_info_plist("tweak_info_plist") {
27 info_plist = "Info.plist"
28 }
29
30 compile_plist("entitlements") {
31 format = "xml1"
32 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
33 output_name = "$target_gen_dir/share_extension.appex.entitlements"
34 plist_templates =
35 [ "entitlements/external/share_extension.appex.entitlements" ] +
36 ios_chrome_entitlements_additions
37 }
38
39 ios_appex_bundle("share_extension") {
40 sources = [
41 "share_extension_view.h",
42 "share_extension_view.mm",
43 "share_view_controller.h",
44 "share_view_controller.mm",
45 "ui_util.h",
46 "ui_util.mm",
47 ]
48
49 configs += [ "//build/config/compiler:enable_arc" ]
50
51 deps = [
52 ":system_strings",
53 "//base",
54 "//ios/chrome/common/app_group",
55 "//ios/chrome/common/app_group:client",
56 ]
57 bundle_deps_filter = [ "//third_party/icu:icudata" ]
58
59 libs = [
60 "Foundation.framework",
61 "Social.framework",
62 "CoreGraphics.framework",
63 "MobileCoreServices.framework",
64 "UIKit.framework",
65 ]
66
67 extra_substitutions = [
68 "CHROME_CHANNEL_SCHEME=$url_channel_scheme",
69 "CHROMIUM_SHORT_NAME=$chromium_short_name",
70 "SHARE_EXTENSION_BUNDLE_ID=$chromium_bundle_id.ShareExtension",
71 ]
72
73 entitlements_target = ":entitlements"
74 info_plist_target = ":tweak_info_plist"
75 }
76
77 generate_localizable_strings("system_strings") {
78 visibility = [ ":*" ]
79 _packed_resources_target = "//ios/chrome/share_extension:packed_resources"
80 config_file = "share_extension_localize_strings_config.plist"
81 datapack_dir = get_label_info(_packed_resources_target, "target_gen_dir")
82 packed_locales = ios_packed_locales_as_mac_outputs
83 output_filenames = [ "Localizable.strings" ]
84 deps = [
85 _packed_resources_target,
86 ]
87 }
OLDNEW
« no previous file with comments | « ios/BUILD.gn ('k') | ios/chrome/share_extension/Info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698