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

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

Issue 2632333002: Add a prototype today extension behind gn flag (Closed)
Patch Set: arc and comments Created 3 years, 11 months 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//ios/public/provider/chrome/browser/build_config.gni") 9 import("//ios/public/provider/chrome/browser/build_config.gni")
10 10
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 entitlements_target = ":entitlements" 266 entitlements_target = ":entitlements"
267 info_plist_target = ":info_plist" 267 info_plist_target = ":info_plist"
268 268
269 deps = [ 269 deps = [
270 ":main", 270 ":main",
271 "//ios/chrome/app:tests_fake_hook", 271 "//ios/chrome/app:tests_fake_hook",
272 ] 272 ]
273 273
274 bundle_deps = [ "//ios/chrome/app/resources" ] 274 bundle_deps = [ "//ios/chrome/app/resources" ]
275 275
276 if (ios_enable_today_extension && current_toolchain == default_toolchain) { 276 if (current_toolchain == default_toolchain) {
277 deps += [ ":today_extension_bundle" ] 277 if (ios_enable_today_extension) {
278 } 278 deps += [ ":today_extension_bundle" ]
279 279 }
280 if (ios_enable_share_extension && current_toolchain == default_toolchain) { 280 if (ios_enable_proto_today_extension) {
281 deps += [ ":share_extension_bundle" ] 281 deps += [ ":proto_today_extension_bundle" ]
282 }
283 if (ios_enable_share_extension) {
284 deps += [ ":share_extension_bundle" ]
285 }
282 } 286 }
283 287
284 extra_substitutions = [ 288 extra_substitutions = [
285 "CHROMIUM_BUNDLE_ID=$chromium_bundle_id", 289 "CHROMIUM_BUNDLE_ID=$chromium_bundle_id",
286 "CHROMIUM_HANDOFF_ID=$chromium_handoff_id", 290 "CHROMIUM_HANDOFF_ID=$chromium_handoff_id",
287 "CHROMIUM_SHORT_NAME=$chromium_short_name", 291 "CHROMIUM_SHORT_NAME=$chromium_short_name",
288 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme", 292 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme",
289 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme", 293 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme",
290 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme", 294 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme",
291 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme", 295 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme",
292 "SSOAUTH_URL_SCHEME=$url_ssoauth_scheme", 296 "SSOAUTH_URL_SCHEME=$url_ssoauth_scheme",
293 ] 297 ]
294 298
295 if (ios_encryption_export_compliance_code != "") { 299 if (ios_encryption_export_compliance_code != "") {
296 extra_substitutions += [ "ENCRYPTION_EXPORT_COMPLIANCE_CODE=" + 300 extra_substitutions += [ "ENCRYPTION_EXPORT_COMPLIANCE_CODE=" +
297 ios_encryption_export_compliance_code ] 301 ios_encryption_export_compliance_code ]
298 } 302 }
299 } 303 }
300 304
301 if (ios_enable_today_extension && current_toolchain == default_toolchain) { 305 if (current_toolchain == default_toolchain) {
302 bundle_data("today_extension_bundle") { 306 if (ios_enable_today_extension) {
303 public_deps = [ 307 bundle_data("today_extension_bundle") {
304 "//ios/chrome/today_extension", 308 public_deps = [
305 ] 309 "//ios/chrome/today_extension",
306 sources = [ 310 ]
307 "$root_out_dir/today_extension.appex", 311 sources = [
308 ] 312 "$root_out_dir/today_extension.appex",
309 outputs = [ 313 ]
310 "{{bundle_plugins_dir}}/{{source_file_part}}", 314 outputs = [
311 ] 315 "{{bundle_plugins_dir}}/{{source_file_part}}",
316 ]
317 }
318 }
319
320 if (ios_enable_proto_today_extension &&
321 current_toolchain == default_toolchain) {
Olivier 2017/01/17 17:44:13 remove current_toolchain test.
lody 2017/01/18 10:48:41 Done.
322 bundle_data("proto_today_extension_bundle") {
323 public_deps = [
324 "//ios/chrome/proto_today_extension",
325 ]
326 sources = [
327 "$root_out_dir/proto_today_extension.appex",
328 ]
329 outputs = [
330 "{{bundle_plugins_dir}}/{{source_file_part}}",
Olivier 2017/01/17 17:44:13 Signature mobileprovision selection is based on bu
sdefresne 2017/01/17 17:59:42 Agreed, you need to rename the .appex today_extens
Olivier 2017/01/18 08:49:13 Another possibility is to copy manually (in create
lody 2017/01/18 10:48:41 I went with the renaming option since I best under
331 ]
332 }
333 }
334
335 if (ios_enable_share_extension) {
336 bundle_data("share_extension_bundle") {
337 public_deps = [
338 "//ios/chrome/share_extension",
339 ]
340 sources = [
341 "$root_out_dir/share_extension.appex",
342 ]
343 outputs = [
344 "{{bundle_plugins_dir}}/{{source_file_part}}",
345 ]
346 }
312 } 347 }
313 } 348 }
314 349
315 if (ios_enable_share_extension && current_toolchain == default_toolchain) {
316 bundle_data("share_extension_bundle") {
317 public_deps = [
318 "//ios/chrome/share_extension",
319 ]
320 sources = [
321 "$root_out_dir/share_extension.appex",
322 ]
323 outputs = [
324 "{{bundle_plugins_dir}}/{{source_file_part}}",
325 ]
326 }
327 }
328
329 # Clean Skeleton targets. 350 # Clean Skeleton targets.
330 ios_app_bundle("chrome_clean_skeleton") { 351 ios_app_bundle("chrome_clean_skeleton") {
331 output_name = "CSChromium" 352 output_name = "CSChromium"
332 353
333 entitlements_path = "//ios/chrome/app/resources/Chrome.entitlements" 354 entitlements_path = "//ios/chrome/app/resources/Chrome.entitlements"
334 info_plist_target = ":info_plist" 355 info_plist_target = ":info_plist"
335 356
336 deps = [ 357 deps = [
337 ":main_clean_skeleton", 358 ":main_clean_skeleton",
338 "//ios/chrome/app:tests_fake_hook", 359 "//ios/chrome/app:tests_fake_hook",
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 "app_delegate.mm", 419 "app_delegate.mm",
399 ] 420 ]
400 421
401 configs += [ "//build/config/compiler:enable_arc" ] 422 configs += [ "//build/config/compiler:enable_arc" ]
402 423
403 deps = [ 424 deps = [
404 ":application_state_clean_skeleton", 425 ":application_state_clean_skeleton",
405 "//ios/chrome/app/steps", 426 "//ios/chrome/app/steps",
406 ] 427 ]
407 } 428 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698