| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # This file contains UI-related build flags. It should theoretically be in the | 5 # This file contains UI-related build flags. It should theoretically be in the |
| 6 # src/ui directory and only things that depend on the ui module should get the | 6 # src/ui directory and only things that depend on the ui module should get the |
| 7 # definitions. | 7 # definitions. |
| 8 # | 8 # |
| 9 # However, today we have many "bad" dependencies on some of these flags from, | 9 # However, today we have many "bad" dependencies on some of these flags from, |
| 10 # e.g. base, so they need to be global. | 10 # e.g. base, so they need to be global. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) | 78 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) |
| 79 | 79 |
| 80 enable_remoting = !is_ios && !is_android | 80 enable_remoting = !is_ios && !is_android |
| 81 | 81 |
| 82 # Enable hole punching for the protected video. | 82 # Enable hole punching for the protected video. |
| 83 enable_video_hole = is_android | 83 enable_video_hole = is_android |
| 84 | 84 |
| 85 # Enables browser side Content Decryption Modules. Required for embedders | 85 # Enables browser side Content Decryption Modules. Required for embedders |
| 86 # (e.g. Android and ChromeCast) that use a browser side CDM. | 86 # (e.g. Android and ChromeCast) that use a browser side CDM. |
| 87 enable_browser_cdms = is_android | 87 enable_browser_cdms = is_android |
| 88 |
| 89 # Variable safe_browsing is used to control the build time configuration for |
| 90 # safe browsing feature. Safe browsing can be compiled in 3 different levels: |
| 91 # 0 disables it, 1 enables it fully, and 2 enables only UI and reporting |
| 92 # features without enabling phishing and malware detection. This is useful to |
| 93 # integrate a third party phishing/malware detection to existing safe browsing |
| 94 # logic. |
| 95 if (is_android) { |
| 96 safe_browsing_mode = 2 |
| 97 } else if (is_ios) { |
| 98 safe_browsing_mode = 0 |
| 99 } else { |
| 100 safe_browsing_mode = 1 |
| 101 } |
| 88 } | 102 } |
| 89 | 103 |
| 90 # Additional dependent variables ----------------------------------------------- | 104 # Additional dependent variables ----------------------------------------------- |
| 91 | 105 |
| 92 # Set the version of CLD. | 106 # Set the version of CLD. |
| 93 # 0: Don't specify the version. This option is for the Finch testing. | 107 # 0: Don't specify the version. This option is for the Finch testing. |
| 94 # 1: Use only CLD1. | 108 # 1: Use only CLD1. |
| 95 # 2: Use only CLD2. | 109 # 2: Use only CLD2. |
| 96 if (is_android) { | 110 if (is_android) { |
| 97 cld_version = 1 | 111 cld_version = 1 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 127 | 141 |
| 128 # TODO(brettw) this should be moved to net and only dependents get this define. | 142 # TODO(brettw) this should be moved to net and only dependents get this define. |
| 129 disable_ftp_support = is_ios | 143 disable_ftp_support = is_ios |
| 130 | 144 |
| 131 enable_web_speech = !is_android && !is_ios | 145 enable_web_speech = !is_android && !is_ios |
| 132 | 146 |
| 133 use_dbus = is_linux | 147 use_dbus = is_linux |
| 134 | 148 |
| 135 enable_extensions = !is_android && !is_ios | 149 enable_extensions = !is_android && !is_ios |
| 136 | 150 |
| 137 # Variable safe_browsing is used to control the build time configuration for | |
| 138 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0 | |
| 139 # disables it, 1 enables it fully, and 2 enables only UI and reporting features | |
| 140 # without enabling phishing and malware detection. This is useful to integrate | |
| 141 # a third party phishing/malware detection to existing safe browsing logic. | |
| 142 if (is_android) { | |
| 143 safe_browsing_mode = 2 | |
| 144 } else if (is_ios) { | |
| 145 safe_browsing_mode = 0 | |
| 146 } else { | |
| 147 safe_browsing_mode = 1 | |
| 148 } | |
| 149 | |
| 150 enable_task_manager = !is_ios && !is_android | 151 enable_task_manager = !is_ios && !is_android |
| 151 | 152 |
| 152 use_cups = is_desktop_linux || is_mac | 153 use_cups = is_desktop_linux || is_mac |
| 153 | 154 |
| 154 enable_themes = !is_android && !is_ios | 155 enable_themes = !is_android && !is_ios |
| 155 | 156 |
| 156 # TODO(scottmg) remove this when we've fixed printing. | 157 # TODO(scottmg) remove this when we've fixed printing. |
| 157 win_pdf_metafile_for_printing = true | 158 win_pdf_metafile_for_printing = true |
| 158 | 159 |
| 159 # Whether we are using the rlz library or not. Platforms like Android send | 160 # Whether we are using the rlz library or not. Platforms like Android send |
| (...skipping 23 matching lines...) Expand all Loading... |
| 183 # TODO(GYP) also require !embedded to enable. | 184 # TODO(GYP) also require !embedded to enable. |
| 184 use_gconf = is_linux && !is_chromeos | 185 use_gconf = is_linux && !is_chromeos |
| 185 | 186 |
| 186 # Hangout services is an extension that adds extra features to Hangouts. | 187 # Hangout services is an extension that adds extra features to Hangouts. |
| 187 # For official GYP builds, this flag is set, it will likely need to be | 188 # For official GYP builds, this flag is set, it will likely need to be |
| 188 # parameterized in the future for a similar use. | 189 # parameterized in the future for a similar use. |
| 189 enable_hangout_services_extension = false | 190 enable_hangout_services_extension = false |
| 190 | 191 |
| 191 # Whether to back up data before sync. | 192 # Whether to back up data before sync. |
| 192 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) | 193 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) |
| OLD | NEW |