michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: { michael@0: 'variables': { michael@0: 'conditions': [ michael@0: ['sysroot!=""', { michael@0: 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', michael@0: }, { michael@0: 'pkg-config': 'pkg-config' michael@0: }] michael@0: ], michael@0: }, michael@0: 'conditions': [ michael@0: [ 'os_posix==1 and OS!="mac"', { michael@0: 'variables': { michael@0: # We use our own copy of libssl3, although we still need to link against michael@0: # the rest of NSS. michael@0: 'use_system_ssl%': 0, michael@0: }, michael@0: }, { michael@0: 'variables': { michael@0: 'use_system_ssl%': 1, michael@0: }, michael@0: }], michael@0: [ 'chromeos==0', { michael@0: # Hide GTK and related dependencies for Chrome OS, so they won't get michael@0: # added back to Chrome OS. Don't try to use GTK on Chrome OS. michael@0: 'targets': [ michael@0: { michael@0: 'target_name': 'gtk', michael@0: 'type': 'none', michael@0: 'toolsets': ['host', 'target'], michael@0: 'variables': { michael@0: # gtk requires gmodule, but it does not list it as a dependency michael@0: # in some misconfigured systems. michael@0: 'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0', michael@0: }, michael@0: 'conditions': [ michael@0: ['_toolset=="target"', { michael@0: 'direct_dependent_settings': { michael@0: 'cflags': [ michael@0: '= <(ibus_min_version)")', michael@0: ], michael@0: }, michael@0: 'link_settings': { michael@0: 'ldflags': [ michael@0: '= <(ibus_min_version)")', michael@0: ], michael@0: 'libraries': [ michael@0: '= <(ibus_min_version)")', michael@0: ], michael@0: }, michael@0: }], michael@0: ], michael@0: }, michael@0: { michael@0: 'target_name': 'udev', michael@0: 'type': 'none', michael@0: 'conditions': [ michael@0: # libudev is not available on *BSD michael@0: ['_toolset=="target" and os_bsd!=1', { michael@0: 'direct_dependent_settings': { michael@0: 'cflags': [ michael@0: '