Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 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 | |
| 7 # definitions. | |
| 8 # | |
| 9 # However, today we have many "bad" dependencies on some of these flags from, | |
| 10 # e.g. base, so they need to be global. | |
| 11 # | |
| 12 # See also build/config/ui.gni | |
| 13 | |
| 14 declare_args() { | |
| 15 # Multicast DNS. | |
| 16 enable_mdns = is_win || is_linux | |
| 17 | |
| 18 enable_plugins = !is_android || !is_ios | |
| 19 } | |
| 20 | |
| 21 # Additional dependent variables ----------------------------------------------- | |
| 22 | |
| 23 # Set the version of CLD. | |
| 24 # 0: Don't specify the version. This option is for the Finch testing. | |
| 25 # 1: Use only CLD1. | |
| 26 # 2: Use only CLD2. | |
| 27 if (is_android || is_ios) { | |
| 28 cld_version = 1 | |
| 29 } else { | |
| 30 cld_version = 2 | |
| 31 } | |
| 32 | |
| 33 # libudev usage. This currently only affects the content layer. | |
| 34 use_udev = is_linux | |
| 35 | |
| 36 # Enable the spell checker. | |
| 37 enable_spellcheck = !is_android | |
| 38 | |
| 39 enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win) | |
| 40 | |
| 41 if (is_android) { | |
| 42 # Enable printing support and UI. This variable is used to configure which | |
|
scottmg
2014/02/20 23:06:23
nit; dedupe and move this up above is_android
| |
| 43 # parts of printing will be built. 0 disables printing completely, 1 enables | |
| 44 # it fully, and 2 enables only the codepath to generate a Metafile (e.g. | |
| 45 # usually a PDF or EMF) and disables print preview, cloud print, UI, etc. | |
| 46 enable_printing = 2 | |
| 47 } else { | |
| 48 # Enable printing support and UI. This variable is used to configure which | |
| 49 # parts of printing will be built. 0 disables printing completely, 1 enables | |
| 50 # it fully, and 2 enables only the codepath to generate a Metafile (e.g. | |
| 51 # usually a PDF or EMF) and disables print preview, cloud print, UI, etc. | |
| 52 enable_printing = 1 | |
| 53 } | |
| OLD | NEW |