| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 # USE_NSS really means "use nss for certificate validation and storage" | 114 # USE_NSS really means "use nss for certificate validation and storage" |
| 115 # (like USE_OPENSSL_CERTS) and not "we're linking to NSS." It might be nice | 115 # (like USE_OPENSSL_CERTS) and not "we're linking to NSS." It might be nice |
| 116 # to rename this but we're hoping to transition away from NSS. | 116 # to rename this but we're hoping to transition away from NSS. |
| 117 defines += [ "USE_NSS=1" ] | 117 defines += [ "USE_NSS=1" ] |
| 118 } | 118 } |
| 119 if (use_ozone) { | 119 if (use_ozone) { |
| 120 defines += [ "USE_OZONE=1" ] | 120 defines += [ "USE_OZONE=1" ] |
| 121 } | 121 } |
| 122 if (use_x11) { | 122 if (use_x11) { |
| 123 defines += [ "USE_X11=1" ] | 123 defines += [ "USE_X11=1" ] |
| 124 if (use_xi2_mt > 0) { | |
| 125 defines += [ "USE_XI2_MT=$use_xi2_mt" ] | |
| 126 } | |
| 127 } | 124 } |
| 128 if (use_allocator != "tcmalloc") { | 125 if (use_allocator != "tcmalloc") { |
| 129 defines += [ "NO_TCMALLOC" ] | 126 defines += [ "NO_TCMALLOC" ] |
| 130 } | 127 } |
| 131 if (is_asan) { | 128 if (is_asan) { |
| 132 defines += [ | 129 defines += [ |
| 133 "ADDRESS_SANITIZER", | 130 "ADDRESS_SANITIZER", |
| 134 "MEMORY_TOOL_REPLACES_ALLOCATOR", | 131 "MEMORY_TOOL_REPLACES_ALLOCATOR", |
| 135 "MEMORY_SANITIZER_INITIAL_SIZE", | 132 "MEMORY_SANITIZER_INITIAL_SIZE", |
| 136 ] | 133 ] |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 "CoreText.framework", | 303 "CoreText.framework", |
| 307 "Foundation.framework", | 304 "Foundation.framework", |
| 308 "UIKit.framework", | 305 "UIKit.framework", |
| 309 ] | 306 ] |
| 310 } else if (is_linux) { | 307 } else if (is_linux) { |
| 311 libs = [ | 308 libs = [ |
| 312 "dl", | 309 "dl", |
| 313 ] | 310 ] |
| 314 } | 311 } |
| 315 } | 312 } |
| OLD | NEW |