OLD | NEW |
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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/ios/ios_sdk.gni") | 6 import("//build/config/ios/ios_sdk.gni") |
7 import("//build/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
8 | 8 |
9 declare_args() { | 9 declare_args() { |
10 # Enable today extension. | 10 # Enable today extension. |
11 ios_enable_today_extension = true | 11 ios_enable_today_extension = true |
12 ios_enable_widget_extension = false | 12 ios_enable_search_widget_extension = true |
13 | 13 |
14 # Enable share extension. | 14 # Enable share extension. |
15 ios_enable_share_extension = true | 15 ios_enable_share_extension = true |
16 | 16 |
17 # Value of the encryption export compliance code. See "Cryptography and | 17 # Value of the encryption export compliance code. See "Cryptography and |
18 # U.S. Export Compliance" in "Submitting the App to App Review" in the | 18 # U.S. Export Compliance" in "Submitting the App to App Review" in the |
19 # Apple developer documentation (https://goo.gl/yv1xEF). | 19 # Apple developer documentation (https://goo.gl/yv1xEF). |
20 ios_encryption_export_compliance_code = "" | 20 ios_encryption_export_compliance_code = "" |
21 | 21 |
22 # List of plist templates to merge when generating chrome Info.plist. | 22 # List of plist templates to merge when generating chrome Info.plist. |
23 ios_chrome_info_plist_additions = [] | 23 ios_chrome_info_plist_additions = [] |
24 | 24 |
25 # List of plist templates to merge when generating chrome entitlements. | 25 # List of plist templates to merge when generating chrome entitlements. |
26 ios_chrome_entitlements_additions = [] | 26 ios_chrome_entitlements_additions = [] |
27 | 27 |
28 # List of plist templates to merge when generating EarlGrey tests | 28 # List of plist templates to merge when generating EarlGrey tests |
29 # entitlements. | 29 # entitlements. |
30 ios_egtests_entitlements_additions = [] | 30 ios_egtests_entitlements_additions = [] |
31 } | 31 } |
32 assert(!(ios_enable_today_extension && ios_enable_widget_extension), | |
33 "Both today extensions cannot be enabled simultaneously.") | |
34 | 32 |
35 # Configure whether breakpad support is enabled. | 33 # Configure whether breakpad support is enabled. |
36 breakpad_enabled = is_official_build && is_chrome_branded | 34 breakpad_enabled = is_official_build && is_chrome_branded |
37 | 35 |
38 if (breakpad_enabled) { | 36 if (breakpad_enabled) { |
39 breakpad_enabled_as_int = 1 | 37 breakpad_enabled_as_int = 1 |
40 is_official_release = enable_dsyms && !use_ios_simulator && | 38 is_official_release = enable_dsyms && !use_ios_simulator && |
41 current_toolchain == default_toolchain | 39 current_toolchain == default_toolchain |
42 } else { | 40 } else { |
43 breakpad_enabled_as_int = 0 | 41 breakpad_enabled_as_int = 0 |
(...skipping 11 matching lines...) Expand all Loading... |
55 url_unsecure_scheme = "googlechrome" | 53 url_unsecure_scheme = "googlechrome" |
56 url_x_callback_scheme = "googlechrome-x-callback" | 54 url_x_callback_scheme = "googlechrome-x-callback" |
57 } else { | 55 } else { |
58 chromium_short_name = "Chromium" | 56 chromium_short_name = "Chromium" |
59 url_channel_scheme = "chromium-dev" | 57 url_channel_scheme = "chromium-dev" |
60 url_secure_scheme = "chromiums" | 58 url_secure_scheme = "chromiums" |
61 url_ssoauth_scheme = "$ios_app_bundle_id_prefix.sso.chromium" | 59 url_ssoauth_scheme = "$ios_app_bundle_id_prefix.sso.chromium" |
62 url_unsecure_scheme = "chromium" | 60 url_unsecure_scheme = "chromium" |
63 url_x_callback_scheme = "chromium-x-callback" | 61 url_x_callback_scheme = "chromium-x-callback" |
64 } | 62 } |
OLD | NEW |