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

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

Issue 2632333002: Add a prototype today extension behind gn flag (Closed)
Patch Set: renaming 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_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 wo rks and clobbering is not necessary when switching between this extension and th e today extension.
sdefresne 2017/01/18 11:11:35 Please reformat your comment to fit in 80 characte
lody 2017/01/18 14:56:39 Done.
330 outputs = [
331 "{{bundle_plugins_dir}}/today_extension.appex",
Olivier 2017/01/18 11:54:08 I am a little worried to have bundle name (today_e
lody 2017/01/18 14:56:39 Yes I did :P
332 ]
333 }
334 }
335
336 if (ios_enable_share_extension) {
337 bundle_data("share_extension_bundle") {
338 public_deps = [
339 "//ios/chrome/share_extension",
340 ]
341 sources = [
342 "$root_out_dir/share_extension.appex",
343 ]
344 outputs = [
345 "{{bundle_plugins_dir}}/{{source_file_part}}",
346 ]
347 }
312 } 348 }
313 } 349 }
314 350
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. 351 # Clean Skeleton targets.
330 ios_app_bundle("chrome_clean_skeleton") { 352 ios_app_bundle("chrome_clean_skeleton") {
331 output_name = "CSChromium" 353 output_name = "CSChromium"
332 354
333 entitlements_path = "//ios/chrome/app/resources/Chrome.entitlements" 355 entitlements_path = "//ios/chrome/app/resources/Chrome.entitlements"
334 info_plist_target = ":info_plist" 356 info_plist_target = ":info_plist"
335 357
336 deps = [ 358 deps = [
337 ":main_clean_skeleton", 359 ":main_clean_skeleton",
338 "//ios/chrome/app:tests_fake_hook", 360 "//ios/chrome/app:tests_fake_hook",
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 "app_delegate.mm", 420 "app_delegate.mm",
399 ] 421 ]
400 422
401 configs += [ "//build/config/compiler:enable_arc" ] 423 configs += [ "//build/config/compiler:enable_arc" ]
402 424
403 deps = [ 425 deps = [
404 ":application_state_clean_skeleton", 426 ":application_state_clean_skeleton",
405 "//ios/chrome/app/steps", 427 "//ios/chrome/app/steps",
406 ] 428 ]
407 } 429 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698