| OLD | NEW |
| 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 Loading... |
| 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 ":tests_fake_hook", | 271 ":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_widget_extension) { |
| 281 deps += [ ":share_extension_bundle" ] | 281 deps += [ ":widget_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_widget_extension) { |
| 321 bundle_data("widget_extension_bundle") { |
| 322 public_deps = [ |
| 323 "//ios/chrome/widget_extension", |
| 324 ] |
| 325 sources = [ |
| 326 "$root_out_dir/widget_extension.appex", |
| 327 ] |
| 328 |
| 329 # The output is renamed today_extension.appex so that signing in canary |
| 330 # works and clobbering is not necessary when switching between this |
| 331 # extension and the today extension. |
| 332 # TODO(crbug.com/682230) : Rename this when widget gets its own |
| 333 # mobileprovision. |
| 334 outputs = [ |
| 335 "{{bundle_plugins_dir}}/today_extension.appex", |
| 336 ] |
| 337 } |
| 338 } |
| 339 |
| 340 if (ios_enable_share_extension) { |
| 341 bundle_data("share_extension_bundle") { |
| 342 public_deps = [ |
| 343 "//ios/chrome/share_extension", |
| 344 ] |
| 345 sources = [ |
| 346 "$root_out_dir/share_extension.appex", |
| 347 ] |
| 348 outputs = [ |
| 349 "{{bundle_plugins_dir}}/{{source_file_part}}", |
| 350 ] |
| 351 } |
| 312 } | 352 } |
| 313 } | 353 } |
| 314 | |
| 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 } | |
| OLD | NEW |