| 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 15 matching lines...) Expand all Loading... |
| 26 # TODO(GYP): Get NaCl linking on other platforms. | 26 # TODO(GYP): Get NaCl linking on other platforms. |
| 27 # Also, see if we can always get rid of enable_nacl_untrusted and | 27 # Also, see if we can always get rid of enable_nacl_untrusted and |
| 28 # enable_pnacl and always build them if enable_nacl is true. | 28 # enable_pnacl and always build them if enable_nacl is true. |
| 29 # The "is_nacl" part of the condition is needed to ensure that | 29 # The "is_nacl" part of the condition is needed to ensure that |
| 30 # the untrusted code is built properly; arguably it should be | 30 # the untrusted code is built properly; arguably it should be |
| 31 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but | 31 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but |
| 32 # this will go away when Mac and Win are working and we can just use | 32 # this will go away when Mac and Win are working and we can just use |
| 33 # the commented out logic. | 33 # the commented out logic. |
| 34 # Eventually we want this to be: | 34 # Eventually we want this to be: |
| 35 # enable_nacl = !is_ios && !is_android | 35 # enable_nacl = !is_ios && !is_android |
| 36 enable_nacl = (is_linux && !is_chromeos && !is_component_build && | 36 enable_nacl = (is_linux && !is_chromeos && current_cpu == "x64") || is_nacl |
| 37 current_cpu == "x64") || is_nacl | |
| 38 enable_nacl_untrusted = enable_nacl | 37 enable_nacl_untrusted = enable_nacl |
| 39 enable_pnacl = enable_nacl_untrusted | 38 enable_pnacl = enable_nacl_untrusted |
| 40 | 39 |
| 41 # If debug_devtools is set to true, JavaScript files for DevTools are stored | 40 # If debug_devtools is set to true, JavaScript files for DevTools are stored |
| 42 # as is and loaded from disk. Otherwise, a concatenated file is stored in | 41 # as is and loaded from disk. Otherwise, a concatenated file is stored in |
| 43 # resources.pak. It is still possible to load JS files from disk by passing | 42 # resources.pak. It is still possible to load JS files from disk by passing |
| 44 # --debug-devtools cmdline switch. | 43 # --debug-devtools cmdline switch. |
| 45 debug_devtools = false | 44 debug_devtools = false |
| 46 | 45 |
| 47 # Enables WebRTC. | 46 # Enables WebRTC. |
| 48 # TODO(GYP) make mac and android work. | 47 # TODO(GYP) make mac and android work. |
| 49 enable_webrtc = !is_ios && !is_mac && !is_android | 48 enable_webrtc = !is_ios && !is_mac && !is_android |
| 50 | 49 |
| 51 # Enables the Media Router. | 50 # Enables the Media Router. |
| 52 enable_media_router = !is_ios && !is_android | 51 enable_media_router = !is_ios && !is_android |
| 53 | 52 |
| 54 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. | 53 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. |
| 55 proprietary_codecs = false | 54 # Android OS includes support for proprietary codecs regardless of building |
| 55 # Chromium or Google Chrome. We also ship Google Chrome and Chromecast with |
| 56 # proprietary codecs. |
| 57 # TODO(GYP) The GYP build has || chromecast==1 for this: |
| 58 proprietary_codecs = is_android || is_chrome_branded |
| 56 | 59 |
| 57 enable_configuration_policy = true | 60 enable_configuration_policy = true |
| 58 | 61 |
| 59 # Enables support for background apps. | 62 # Enables support for background apps. |
| 60 enable_background = !is_ios && !is_android | 63 enable_background = !is_ios && !is_android |
| 61 | 64 |
| 62 enable_captive_portal_detection = !is_android && !is_ios | 65 enable_captive_portal_detection = !is_android && !is_ios |
| 63 | 66 |
| 64 # Enables use of the session service, which is enabled by default. | 67 # Enables use of the session service, which is enabled by default. |
| 65 # Android stores them separately on the Java side. | 68 # Android stores them separately on the Java side. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 79 | 82 |
| 80 enable_remoting = !is_ios && !is_android | 83 enable_remoting = !is_ios && !is_android |
| 81 | 84 |
| 82 # Enable hole punching for the protected video. | 85 # Enable hole punching for the protected video. |
| 83 enable_video_hole = is_android | 86 enable_video_hole = is_android |
| 84 | 87 |
| 85 # Enables browser side Content Decryption Modules. Required for embedders | 88 # Enables browser side Content Decryption Modules. Required for embedders |
| 86 # (e.g. Android and ChromeCast) that use a browser side CDM. | 89 # (e.g. Android and ChromeCast) that use a browser side CDM. |
| 87 enable_browser_cdms = is_android | 90 enable_browser_cdms = is_android |
| 88 | 91 |
| 89 # Variable safe_browsing is used to control the build time configuration for | 92 # Variable safe_browsing is used to control the build time configuration |
| 90 # safe browsing feature. Safe browsing can be compiled in 3 different levels: | 93 # for safe browsing feature. Safe browsing can be compiled in 4 different |
| 91 # 0 disables it, 1 enables it fully, and 2 enables only UI and reporting | 94 # levels: 0 disables it, 1 enables it fully, and 2 enables only UI and |
| 92 # features without enabling phishing and malware detection. This is useful to | 95 # reporting features for use with Data Saver on Mobile, and 3 enables |
| 93 # integrate a third party phishing/malware detection to existing safe browsing | 96 # extended mobile protection via an external API. When 3 is fully deployed, |
| 94 # logic. | 97 # it will replace 2. |
| 95 if (is_android) { | 98 if (is_android) { |
| 96 safe_browsing_mode = 2 | 99 safe_browsing_mode = 2 |
| 97 } else if (is_ios) { | 100 } else if (is_ios) { |
| 98 safe_browsing_mode = 0 | 101 safe_browsing_mode = 0 |
| 99 } else { | 102 } else { |
| 100 safe_browsing_mode = 1 | 103 safe_browsing_mode = 1 |
| 101 } | 104 } |
| 102 } | 105 } |
| 103 | 106 |
| 104 # Additional dependent variables ----------------------------------------------- | 107 # Additional dependent variables ----------------------------------------------- |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 # TODO(GYP) also require !embedded to enable. | 187 # TODO(GYP) also require !embedded to enable. |
| 185 use_gconf = is_linux && !is_chromeos | 188 use_gconf = is_linux && !is_chromeos |
| 186 | 189 |
| 187 # Hangout services is an extension that adds extra features to Hangouts. | 190 # Hangout services is an extension that adds extra features to Hangouts. |
| 188 # For official GYP builds, this flag is set, it will likely need to be | 191 # For official GYP builds, this flag is set, it will likely need to be |
| 189 # parameterized in the future for a similar use. | 192 # parameterized in the future for a similar use. |
| 190 enable_hangout_services_extension = false | 193 enable_hangout_services_extension = false |
| 191 | 194 |
| 192 # Whether to back up data before sync. | 195 # Whether to back up data before sync. |
| 193 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) | 196 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) |
| OLD | NEW |