| 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 import("//build/module_args/v8.gni") | 9 import("//build/module_args/v8.gni") |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (enable_spellcheck) { | 71 if (enable_spellcheck) { |
| 72 defines += [ "ENABLE_SPELLCHECK=1" ] | 72 defines += [ "ENABLE_SPELLCHECK=1" ] |
| 73 } | 73 } |
| 74 if (dont_embed_build_metadata) { | 74 if (dont_embed_build_metadata) { |
| 75 defines += [ "DONT_EMBED_BUILD_METADATA" ] | 75 defines += [ "DONT_EMBED_BUILD_METADATA" ] |
| 76 } | 76 } |
| 77 if (use_udev) { | 77 if (use_udev) { |
| 78 # TODO(brettw) should probably be "=1". | 78 # TODO(brettw) should probably be "=1". |
| 79 defines += [ "USE_UDEV" ] | 79 defines += [ "USE_UDEV" ] |
| 80 } | 80 } |
| 81 if (toolkit_views) { | |
| 82 defines += [ "TOOLKIT_VIEWS=1" ] | |
| 83 } | |
| 84 if (ui_compositor_image_transport) { | 81 if (ui_compositor_image_transport) { |
| 85 # TODO(brettw) should probably be "=1". | 82 # TODO(brettw) should probably be "=1". |
| 86 defines += [ "UI_COMPOSITOR_IMAGE_TRANSPORT" ] | 83 defines += [ "UI_COMPOSITOR_IMAGE_TRANSPORT" ] |
| 87 } | 84 } |
| 88 if (use_ash) { | 85 if (use_ash) { |
| 89 defines += [ "USE_ASH=1" ] | 86 defines += [ "USE_ASH=1" ] |
| 90 } | 87 } |
| 91 if (use_aura) { | 88 if (use_aura) { |
| 92 defines += [ "USE_AURA=1" ] | 89 defines += [ "USE_AURA=1" ] |
| 93 } | 90 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 110 defines += [ "USE_OPENSSL=1" ] | 107 defines += [ "USE_OPENSSL=1" ] |
| 111 if (use_openssl_certs) { | 108 if (use_openssl_certs) { |
| 112 defines += [ "USE_OPENSSL_CERTS=1" ] | 109 defines += [ "USE_OPENSSL_CERTS=1" ] |
| 113 } | 110 } |
| 114 } else if (use_nss_certs) { | 111 } else if (use_nss_certs) { |
| 115 # USE_NSS really means "use nss for certificate validation and storage" | 112 # USE_NSS really means "use nss for certificate validation and storage" |
| 116 # (like USE_OPENSSL_CERTS) and not "we're linking to NSS." It might be nice | 113 # (like USE_OPENSSL_CERTS) and not "we're linking to NSS." It might be nice |
| 117 # to rename this but we're hoping to transition away from NSS. | 114 # to rename this but we're hoping to transition away from NSS. |
| 118 defines += [ "USE_NSS=1" ] | 115 defines += [ "USE_NSS=1" ] |
| 119 } | 116 } |
| 120 if (use_ozone) { | |
| 121 defines += [ "USE_OZONE=1" ] | |
| 122 } | |
| 123 if (use_x11) { | 117 if (use_x11) { |
| 124 defines += [ "USE_X11=1" ] | 118 defines += [ "USE_X11=1" ] |
| 125 } | 119 } |
| 126 if (use_allocator != "tcmalloc") { | 120 if (use_allocator != "tcmalloc") { |
| 127 defines += [ "NO_TCMALLOC" ] | 121 defines += [ "NO_TCMALLOC" ] |
| 128 } | 122 } |
| 129 if (is_asan) { | 123 if (is_asan) { |
| 130 defines += [ | 124 defines += [ |
| 131 "ADDRESS_SANITIZER", | 125 "ADDRESS_SANITIZER", |
| 132 "MEMORY_TOOL_REPLACES_ALLOCATOR", | 126 "MEMORY_TOOL_REPLACES_ALLOCATOR", |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 "CoreFoundation.framework", | 301 "CoreFoundation.framework", |
| 308 "CoreGraphics.framework", | 302 "CoreGraphics.framework", |
| 309 "CoreText.framework", | 303 "CoreText.framework", |
| 310 "Foundation.framework", | 304 "Foundation.framework", |
| 311 "UIKit.framework", | 305 "UIKit.framework", |
| 312 ] | 306 ] |
| 313 } else if (is_linux) { | 307 } else if (is_linux) { |
| 314 libs = [ "dl" ] | 308 libs = [ "dl" ] |
| 315 } | 309 } |
| 316 } | 310 } |
| OLD | NEW |