| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/allocator.gni") | 5 import("//build/config/allocator.gni") |
| 6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 | 9 |
| 10 declare_args() { | 10 declare_args() { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 # USE_X11 for all dependents so that everything that could use X11 gets the | 26 # USE_X11 for all dependents so that everything that could use X11 gets the |
| 27 # define, but anything that doesn't depend on X11 doesn't see it. | 27 # define, but anything that doesn't depend on X11 doesn't see it. |
| 28 # | 28 # |
| 29 # For now we define these globally to match the current GYP build. | 29 # For now we define these globally to match the current GYP build. |
| 30 config("feature_flags") { | 30 config("feature_flags") { |
| 31 # TODO(brettw) most of these need to be parameterized. | 31 # TODO(brettw) most of these need to be parameterized. |
| 32 defines = [ | 32 defines = [ |
| 33 "CHROMIUM_BUILD", | 33 "CHROMIUM_BUILD", |
| 34 "ENABLE_ONE_CLICK_SIGNIN", | 34 "ENABLE_ONE_CLICK_SIGNIN", |
| 35 "ENABLE_REMOTING=1", | 35 "ENABLE_REMOTING=1", |
| 36 "ENABLE_CONFIGURATION_POLICY", | |
| 37 "ENABLE_NOTIFICATIONS", | 36 "ENABLE_NOTIFICATIONS", |
| 38 "ENABLE_EGLIMAGE=1", | 37 "ENABLE_EGLIMAGE=1", |
| 39 "ENABLE_TASK_MANAGER=1", | |
| 40 "ENABLE_PLUGIN_INSTALLATION=1", | |
| 41 "ENABLE_SESSION_SERVICE=1", | |
| 42 "ENABLE_THEMES=1", | |
| 43 "ENABLE_AUTOFILL_DIALOG=1", | |
| 44 "ENABLE_BACKGROUND=1", | 38 "ENABLE_BACKGROUND=1", |
| 45 "ENABLE_GOOGLE_NOW=1", | 39 "ENABLE_GOOGLE_NOW=1", |
| 46 "ENABLE_CAPTIVE_PORTAL_DETECTION=1", | |
| 47 "ENABLE_APP_LIST=1", | |
| 48 "ENABLE_SETTINGS_APP=1", | 40 "ENABLE_SETTINGS_APP=1", |
| 49 "ENABLE_MANAGED_USERS=1", | |
| 50 "ENABLE_SERVICE_DISCOVERY=1", | |
| 51 "USE_MOJO=1", | 41 "USE_MOJO=1", |
| 52 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. | 42 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
| 53 # Temporary suppression until Blink code can be removed. | 43 # Temporary suppression until Blink code can be removed. |
| 54 "BLINK_SCALE_FILTERS_AT_RECORD_TIME", | 44 "BLINK_SCALE_FILTERS_AT_RECORD_TIME", |
| 55 ] | 45 ] |
| 56 | 46 |
| 57 if (cld_version > 0) { | 47 if (cld_version > 0) { |
| 58 defines += [ "CLD_VERSION=$cld_version" ] | 48 defines += [ "CLD_VERSION=$cld_version" ] |
| 59 } | 49 } |
| 60 if (enable_mdns) { | 50 if (enable_mdns) { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 } | 126 } |
| 137 if (disable_ftp_support) { | 127 if (disable_ftp_support) { |
| 138 defines += [ "DISABLE_FTP_SUPPORT=1" ] | 128 defines += [ "DISABLE_FTP_SUPPORT=1" ] |
| 139 } | 129 } |
| 140 if (!enable_nacl) { | 130 if (!enable_nacl) { |
| 141 defines += [ "DISABLE_NACL" ] | 131 defines += [ "DISABLE_NACL" ] |
| 142 } | 132 } |
| 143 if (enable_extensions) { | 133 if (enable_extensions) { |
| 144 defines += [ "ENABLE_EXTENSIONS=1" ] | 134 defines += [ "ENABLE_EXTENSIONS=1" ] |
| 145 } | 135 } |
| 136 if (enable_configuration_policy) { |
| 137 defines += [ "ENABLE_CONFIGURATION_POLICY" ] |
| 138 } |
| 139 if (enable_task_manager) { |
| 140 defines += [ "ENABLE_TASK_MANAGER=1" ] |
| 141 } |
| 142 if (enable_themes) { |
| 143 defines += [ "ENABLE_THEMES=1" ] |
| 144 } |
| 145 if (is_win && win_pdf_metafile_for_printing) { |
| 146 defines += [ "WIN_PDF_METAFILE_FOR_PRINTING=1" ] |
| 147 } |
| 148 if (enable_captive_portal_detection) { |
| 149 defines += [ "ENABLE_CAPTIVE_PORTAL_DETECTION=1" ] |
| 150 } |
| 151 if (enable_session_service) { |
| 152 defines += [ "ENABLE_SESSION_SERVICE=1" ] |
| 153 } |
| 154 if (enable_rlz) { |
| 155 defines += [ "ENABLE_RLZ" ] |
| 156 } |
| 157 if (enable_plugin_installation) { |
| 158 defines += [ "ENABLE_PLUGIN_INSTALLATION=1" ] |
| 159 } |
| 160 if (enable_app_list) { |
| 161 defines += [ "ENABLE_APP_LIST=1" ] |
| 162 } |
| 163 if (enable_managed_users) { |
| 164 defines += [ "ENABLE_MANAGED_USERS=1" ] |
| 165 } |
| 166 if (enable_service_discovery) { |
| 167 defines += [ "ENABLE_SERVICE_DISCOVERY=1" ] |
| 168 } |
| 169 if (enable_autofill_dialog) { |
| 170 defines += [ "ENABLE_AUTOFILL_DIALOG=1" ] |
| 171 } |
| 172 if (enable_wifi_bootstrapping) { |
| 173 defines += [ "ENABLE_WIFI_BOOTSTRAPPING=1" ] |
| 174 } |
| 146 } | 175 } |
| 147 | 176 |
| 148 # Debug/release ---------------------------------------------------------------- | 177 # Debug/release ---------------------------------------------------------------- |
| 149 | 178 |
| 150 config("debug") { | 179 config("debug") { |
| 151 defines = [ | 180 defines = [ |
| 152 "_DEBUG", | 181 "_DEBUG", |
| 153 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 182 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 154 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 183 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
| 155 ] | 184 ] |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 "CoreText.framework", | 268 "CoreText.framework", |
| 240 "Foundation.framework", | 269 "Foundation.framework", |
| 241 "UIKit.framework", | 270 "UIKit.framework", |
| 242 ] | 271 ] |
| 243 } else if (is_linux) { | 272 } else if (is_linux) { |
| 244 libs = [ | 273 libs = [ |
| 245 "dl", | 274 "dl", |
| 246 ] | 275 ] |
| 247 } | 276 } |
| 248 } | 277 } |
| OLD | NEW |