| 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   } | 
|   81   if (ui_compositor_image_transport) { |   84   if (ui_compositor_image_transport) { | 
|   82     # TODO(brettw) should probably be "=1". |   85     # TODO(brettw) should probably be "=1". | 
|   83     defines += [ "UI_COMPOSITOR_IMAGE_TRANSPORT" ] |   86     defines += [ "UI_COMPOSITOR_IMAGE_TRANSPORT" ] | 
|   84   } |   87   } | 
 |   88   if (use_ash) { | 
 |   89     defines += [ "USE_ASH=1" ] | 
 |   90   } | 
 |   91   if (use_aura) { | 
 |   92     defines += [ "USE_AURA=1" ] | 
 |   93   } | 
 |   94   if (use_pango) { | 
 |   95     defines += [ "USE_PANGO=1" ] | 
 |   96   } | 
 |   97   if (use_cairo) { | 
 |   98     defines += [ "USE_CAIRO=1" ] | 
 |   99   } | 
 |  100   if (use_clipboard_aurax11) { | 
 |  101     defines += [ "USE_CLIPBOARD_AURAX11=1" ] | 
 |  102   } | 
 |  103   if (use_default_render_theme) { | 
 |  104     defines += [ "USE_DEFAULT_RENDER_THEME=1" ] | 
 |  105   } | 
|   85   if (use_glib) { |  106   if (use_glib) { | 
|   86     defines += [ "USE_GLIB=1" ] |  107     defines += [ "USE_GLIB=1" ] | 
|   87   } |  108   } | 
|   88   if (use_openssl) { |  109   if (use_openssl) { | 
|   89     defines += [ "USE_OPENSSL=1" ] |  110     defines += [ "USE_OPENSSL=1" ] | 
|   90     if (use_openssl_certs) { |  111     if (use_openssl_certs) { | 
|   91       defines += [ "USE_OPENSSL_CERTS=1" ] |  112       defines += [ "USE_OPENSSL_CERTS=1" ] | 
|   92     } |  113     } | 
|   93   } else if (use_nss_certs) { |  114   } else if (use_nss_certs) { | 
|   94     # USE_NSS really means "use nss for certificate validation and storage" |  115     # USE_NSS really means "use nss for certificate validation and storage" | 
|   95     # (like USE_OPENSSL_CERTS) and not "we're linking to NSS." It might be nice |  116     # (like USE_OPENSSL_CERTS) and not "we're linking to NSS." It might be nice | 
|   96     # to rename this but we're hoping to transition away from NSS. |  117     # to rename this but we're hoping to transition away from NSS. | 
|   97     defines += [ "USE_NSS=1" ] |  118     defines += [ "USE_NSS=1" ] | 
|   98   } |  119   } | 
 |  120   if (use_ozone) { | 
 |  121     defines += [ "USE_OZONE=1" ] | 
 |  122   } | 
|   99   if (use_x11) { |  123   if (use_x11) { | 
|  100     defines += [ "USE_X11=1" ] |  124     defines += [ "USE_X11=1" ] | 
|  101   } |  125   } | 
|  102   if (use_allocator != "tcmalloc") { |  126   if (use_allocator != "tcmalloc") { | 
|  103     defines += [ "NO_TCMALLOC" ] |  127     defines += [ "NO_TCMALLOC" ] | 
|  104   } |  128   } | 
|  105   if (is_asan) { |  129   if (is_asan) { | 
|  106     defines += [ |  130     defines += [ | 
|  107       "ADDRESS_SANITIZER", |  131       "ADDRESS_SANITIZER", | 
|  108       "MEMORY_TOOL_REPLACES_ALLOCATOR", |  132       "MEMORY_TOOL_REPLACES_ALLOCATOR", | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  165   } |  189   } | 
|  166   if (enable_remoting) { |  190   if (enable_remoting) { | 
|  167     defines += [ "ENABLE_REMOTING=1" ] |  191     defines += [ "ENABLE_REMOTING=1" ] | 
|  168   } |  192   } | 
|  169   if (enable_google_now) { |  193   if (enable_google_now) { | 
|  170     defines += [ "ENABLE_GOOGLE_NOW=1" ] |  194     defines += [ "ENABLE_GOOGLE_NOW=1" ] | 
|  171   } |  195   } | 
|  172   if (enable_one_click_signin) { |  196   if (enable_one_click_signin) { | 
|  173     defines += [ "ENABLE_ONE_CLICK_SIGNIN" ] |  197     defines += [ "ENABLE_ONE_CLICK_SIGNIN" ] | 
|  174   } |  198   } | 
|  175   if (use_athena) { |  | 
|  176     defines += [ "USE_ATHENA=1" ] |  | 
|  177   } |  | 
|  178   if (enable_hidpi) { |  199   if (enable_hidpi) { | 
|  179     defines += [ "ENABLE_HIDPI=1" ] |  200     defines += [ "ENABLE_HIDPI=1" ] | 
|  180   } |  201   } | 
|  181   if (proprietary_codecs) { |  202   if (proprietary_codecs) { | 
|  182     defines += [ "USE_PROPRIETARY_CODECS" ] |  203     defines += [ "USE_PROPRIETARY_CODECS" ] | 
|  183   } |  204   } | 
|  184   if (enable_hangout_services_extension) { |  205   if (enable_hangout_services_extension) { | 
|  185     defines += [ "ENABLE_HANGOUT_SERVICES_EXTENSION=1" ] |  206     defines += [ "ENABLE_HANGOUT_SERVICES_EXTENSION=1" ] | 
|  186   } |  207   } | 
|  187   if (v8_use_external_startup_data) { |  208   if (v8_use_external_startup_data) { | 
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  283       "CoreFoundation.framework", |  304       "CoreFoundation.framework", | 
|  284       "CoreGraphics.framework", |  305       "CoreGraphics.framework", | 
|  285       "CoreText.framework", |  306       "CoreText.framework", | 
|  286       "Foundation.framework", |  307       "Foundation.framework", | 
|  287       "UIKit.framework", |  308       "UIKit.framework", | 
|  288     ] |  309     ] | 
|  289   } else if (is_linux) { |  310   } else if (is_linux) { | 
|  290     libs = [ "dl" ] |  311     libs = [ "dl" ] | 
|  291   } |  312   } | 
|  292 } |  313 } | 
| OLD | NEW |