| 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. |
| 11 # | 11 # |
| 12 # See also build/config/ui.gni | 12 # See also build/config/ui.gni |
| 13 | 13 |
| 14 if (is_android) { | 14 if (is_android) { |
| 15 import("//build/config/android/config.gni") | 15 import("//build/config/android/config.gni") |
| 16 } | 16 } |
| 17 | 17 |
| 18 declare_args() { | 18 declare_args() { |
| 19 # Multicast DNS. | 19 # Multicast DNS. |
| 20 enable_mdns = is_win || is_linux | 20 enable_mdns = is_win || is_linux |
| 21 | 21 |
| 22 enable_plugins = !is_android && !is_ios | 22 enable_plugins = !is_android && !is_ios |
| 23 | 23 |
| 24 # Enables Native Client support. | 24 # Enables Native Client support. |
| 25 # TODO(GYP) enable this when nacl works in GN. | 25 # TODO(GYP): Get NaCl linking on other platforms. |
| 26 enable_nacl = false | 26 # Also, see if we can always get rid of enable_nacl_untrusted and |
| 27 #enable_nacl = (!is_ios && !is_android) | 27 # enable_pnacl and always build them if enable_nacl is true. |
| 28 # The "is_nacl" part of the condition is needed to ensure that |
| 29 # the untrusted code is built properly; arguably it should be |
| 30 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but |
| 31 # this will go away when Mac and Win are working and we can just use |
| 32 # the commented out logic. |
| 33 # enable_nacl = !is_ios && !is_android |
| 34 enable_nacl = (is_linux && build_cpu_arch == "x64") || is_nacl |
| 35 enable_nacl_untrusted = enable_nacl |
| 36 enable_pnacl = true |
| 28 | 37 |
| 29 # If debug_devtools is set to true, JavaScript files for DevTools are stored | 38 # If debug_devtools is set to true, JavaScript files for DevTools are stored |
| 30 # as is and loaded from disk. Otherwise, a concatenated file is stored in | 39 # as is and loaded from disk. Otherwise, a concatenated file is stored in |
| 31 # resources.pak. It is still possible to load JS files from disk by passing | 40 # resources.pak. It is still possible to load JS files from disk by passing |
| 32 # --debug-devtools cmdline switch. | 41 # --debug-devtools cmdline switch. |
| 33 debug_devtools = false | 42 debug_devtools = false |
| 34 | 43 |
| 35 # Enables WebRTC. | 44 # Enables WebRTC. |
| 36 #enable_webrtc = !is_ios TODO(GYP) use this condition when WebRTC works in | 45 #enable_webrtc = !is_ios TODO(GYP) use this condition when WebRTC works in |
| 37 # the GN build. | 46 # the GN build. |
| 38 enable_webrtc = false | 47 enable_webrtc = !is_ios |
| 39 | 48 |
| 40 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. | 49 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. |
| 41 proprietary_codecs = false | 50 proprietary_codecs = false |
| 42 } | 51 } |
| 43 | 52 |
| 44 # Additional dependent variables ----------------------------------------------- | 53 # Additional dependent variables ----------------------------------------------- |
| 45 | 54 |
| 46 # Set the version of CLD. | 55 # Set the version of CLD. |
| 47 # 0: Don't specify the version. This option is for the Finch testing. | 56 # 0: Don't specify the version. This option is for the Finch testing. |
| 48 # 1: Use only CLD1. | 57 # 1: Use only CLD1. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 167 |
| 159 # Option controlling the use of GConf (the classic GNOME configuration | 168 # Option controlling the use of GConf (the classic GNOME configuration |
| 160 # system). | 169 # system). |
| 161 # TODO(GYP) also require !embedded to enable. | 170 # TODO(GYP) also require !embedded to enable. |
| 162 use_gconf = is_linux && !is_chromeos | 171 use_gconf = is_linux && !is_chromeos |
| 163 | 172 |
| 164 # Hangout services is an extension that adds extra features to Hangouts. | 173 # Hangout services is an extension that adds extra features to Hangouts. |
| 165 # For official GYP builds, this flag is set, it will likely need to be | 174 # For official GYP builds, this flag is set, it will likely need to be |
| 166 # parameterized in the future for a similar use. | 175 # parameterized in the future for a similar use. |
| 167 enable_hangout_services_extension = false | 176 enable_hangout_services_extension = false |
| OLD | NEW |