Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Side by Side Diff: build/config/features.gni

Issue 1377333002: Make cld2_table_size configurable in GN builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Chrome-feature-related build flags (see ui.gni for 5 # This file contains Chrome-feature-related build flags (see ui.gni for
6 # UI-related ones). These should theoretically be moved to the build files of 6 # UI-related ones). These should theoretically be moved to the build files of
7 # the features themselves. 7 # the features themselves.
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 to match the GYP configuration. Also, 10 # e.g. base, so they need to be global to match the GYP configuration. Also,
11 # anything that needs a grit define must be in either this file or ui.gni. 11 # anything that needs a grit define must be in either this file or ui.gni.
12 # 12 #
13 # PLEASE TRY TO AVOID ADDING FLAGS TO THIS FILE in cases where grit isn't 13 # PLEASE TRY TO AVOID ADDING FLAGS TO THIS FILE in cases where grit isn't
14 # required. See the declare_args block of BUILDCONFIG.gn for advice on how 14 # required. See the declare_args block of BUILDCONFIG.gn for advice on how
15 # to set up feature flags. 15 # to set up feature flags.
16 16
17 import("//build/config/chrome_build.gni") 17 import("//build/config/chrome_build.gni")
18 import("//build/config/chromecast_build.gni") 18 import("//build/config/chromecast_build.gni")
19 if (is_android) { 19 if (is_android) {
20 import("//build/config/android/config.gni") 20 import("//build/config/android/config.gni")
21 } 21 }
22 22
23 declare_args() { 23 declare_args() {
24 if (is_android || is_ios) {
brettw 2015/10/01 17:24:22 I notice this is only used in third_party/cld_2/BU
Tomasz Moniuszko 2015/10/02 07:56:41 Done. It seems that there was another cld2_table_s
25 cld2_table_size = 0 # Small, accurate tables
26 } else {
27 cld2_table_size = 2 # Larger, more accurate tables
28 }
29
24 # Multicast DNS. 30 # Multicast DNS.
25 enable_mdns = is_win || is_linux 31 enable_mdns = is_win || is_linux
26 32
27 enable_plugins = (!is_android && !is_ios) || is_chromecast 33 enable_plugins = (!is_android && !is_ios) || is_chromecast
28 enable_pdf = !is_android && !is_ios && !is_chromecast 34 enable_pdf = !is_android && !is_ios && !is_chromecast
29 35
30 # Enables Native Client support. 36 # Enables Native Client support.
31 # TODO(GYP): Get NaCl linking on other platforms. 37 # TODO(GYP): Get NaCl linking on other platforms.
32 # Also, see if we can always get rid of enable_nacl_untrusted and 38 # Also, see if we can always get rid of enable_nacl_untrusted and
33 # enable_pnacl and always build them if enable_nacl is true. 39 # enable_pnacl and always build them if enable_nacl is true.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 fieldtrial_testing_like_official_build = is_chrome_branded 124 fieldtrial_testing_like_official_build = is_chrome_branded
119 } 125 }
120 126
121 # Additional dependent variables ----------------------------------------------- 127 # Additional dependent variables -----------------------------------------------
122 128
123 # Set the version of CLD. 129 # Set the version of CLD.
124 # 1: (DEPRECATED! See http://crbug.com/528305 for info) Use only CLD1. 130 # 1: (DEPRECATED! See http://crbug.com/528305 for info) Use only CLD1.
125 # 2: Use only CLD2. 131 # 2: Use only CLD2.
126 cld_version = 2 132 cld_version = 2
127 133
128 if (is_android || is_ios) {
129 cld2_table_size = 0 # Small, accurate tables
130 } else {
131 cld2_table_size = 2 # Larger, more accurate tables
132 }
133
134 # libudev usage. This currently only affects the content layer. 134 # libudev usage. This currently only affects the content layer.
135 use_udev = is_linux && !is_chromecast 135 use_udev = is_linux && !is_chromecast
136 136
137 # Enable the spell checker. 137 # Enable the spell checker.
138 enable_spellcheck = !is_ios 138 enable_spellcheck = !is_ios
139 139
140 # Use the operating system's spellchecker rather than hunspell. 140 # Use the operating system's spellchecker rather than hunspell.
141 use_browser_spellchecker = is_android || is_mac 141 use_browser_spellchecker = is_android || is_mac
142 142
143 # Enable basic printing support and UI. 143 # Enable basic printing support and UI.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 # Option controlling the use of GConf (the classic GNOME configuration 204 # Option controlling the use of GConf (the classic GNOME configuration
205 # system). 205 # system).
206 use_gconf = is_linux && !is_chromeos && !is_chromecast 206 use_gconf = is_linux && !is_chromeos && !is_chromecast
207 207
208 # Whether to back up data before sync. 208 # Whether to back up data before sync.
209 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) 209 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos)
210 210
211 # Enable WebVR support by default on Android 211 # Enable WebVR support by default on Android
212 # Still requires command line flag to access API 212 # Still requires command line flag to access API
213 enable_webvr = is_android 213 enable_webvr = is_android
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698