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

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

Issue 2632333002: Add a prototype today extension behind gn flag (Closed)
Patch Set: 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 (ios_enable_today_extension && current_toolchain == default_toolchain) {
277 deps += [ ":today_extension_bundle" ] 277 deps += [ ":today_extension_bundle" ]
278 } 278 }
279 279
280 if (!ios_enable_today_extension && ios_enable_proto_today_extension &&
sdefresne 2017/01/17 10:39:07 I +1-ing olivierrobin earlier comment (use assert
lody 2017/01/17 17:31:45 Done.
281 current_toolchain == default_toolchain) {
282 deps += [ ":proto_today_extension_bundle" ]
283 }
284
280 if (ios_enable_share_extension && current_toolchain == default_toolchain) { 285 if (ios_enable_share_extension && current_toolchain == default_toolchain) {
281 deps += [ ":share_extension_bundle" ] 286 deps += [ ":share_extension_bundle" ]
282 } 287 }
283 288
284 extra_substitutions = [ 289 extra_substitutions = [
285 "CHROMIUM_BUNDLE_ID=$chromium_bundle_id", 290 "CHROMIUM_BUNDLE_ID=$chromium_bundle_id",
286 "CHROMIUM_HANDOFF_ID=$chromium_handoff_id", 291 "CHROMIUM_HANDOFF_ID=$chromium_handoff_id",
287 "CHROMIUM_SHORT_NAME=$chromium_short_name", 292 "CHROMIUM_SHORT_NAME=$chromium_short_name",
288 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme", 293 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme",
289 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme", 294 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme",
(...skipping 15 matching lines...) Expand all
305 ] 310 ]
306 sources = [ 311 sources = [
307 "$root_out_dir/today_extension.appex", 312 "$root_out_dir/today_extension.appex",
308 ] 313 ]
309 outputs = [ 314 outputs = [
310 "{{bundle_plugins_dir}}/{{source_file_part}}", 315 "{{bundle_plugins_dir}}/{{source_file_part}}",
311 ] 316 ]
312 } 317 }
313 } 318 }
314 319
320 if (!ios_enable_today_extension && ios_enable_proto_today_extension &&
sdefresne 2017/01/17 10:39:07 ditto, I would recommend refactoring this to if (
lody 2017/01/17 17:31:45 Done.
321 current_toolchain == default_toolchain) {
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}}",
331 ]
332 }
333 }
334
315 if (ios_enable_share_extension && current_toolchain == default_toolchain) { 335 if (ios_enable_share_extension && current_toolchain == default_toolchain) {
316 bundle_data("share_extension_bundle") { 336 bundle_data("share_extension_bundle") {
317 public_deps = [ 337 public_deps = [
318 "//ios/chrome/share_extension", 338 "//ios/chrome/share_extension",
319 ] 339 ]
320 sources = [ 340 sources = [
321 "$root_out_dir/share_extension.appex", 341 "$root_out_dir/share_extension.appex",
322 ] 342 ]
323 outputs = [ 343 outputs = [
324 "{{bundle_plugins_dir}}/{{source_file_part}}", 344 "{{bundle_plugins_dir}}/{{source_file_part}}",
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 "app_delegate.mm", 418 "app_delegate.mm",
399 ] 419 ]
400 420
401 configs += [ "//build/config/compiler:enable_arc" ] 421 configs += [ "//build/config/compiler:enable_arc" ]
402 422
403 deps = [ 423 deps = [
404 ":application_state_clean_skeleton", 424 ":application_state_clean_skeleton",
405 "//ios/chrome/app/steps", 425 "//ios/chrome/app/steps",
406 ] 426 ]
407 } 427 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698