# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'conditions': [ ['sysroot!="" and qt_os!="embedded_linux"', { 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', }, { 'pkg-config': 'pkg-config' }], ], 'linux_link_libgps%': 0, 'linux_link_libpci%': 0, 'linux_link_libspeechd%': 0, 'linux_link_libbrlapi%': 0, }, 'conditions': [ [ 'os_posix==1 and OS!="mac"', { 'variables': { # We use our own copy of libssl3, although we still need to link against # the rest of NSS. 'use_system_ssl%': 0, }, }, { 'variables': { 'use_system_ssl%': 1, }, }], [ 'chromeos==0 and use_qt==0', { # Hide GTK and related dependencies for Chrome OS, so they won't get # added back to Chrome OS. Don't try to use GTK on Chrome OS. 'targets': [ { 'target_name': 'gdk', 'type': 'none', 'conditions': [ ['_toolset=="target"', { 'direct_dependent_settings': { 'cflags': [ '', '--link-directly=<(linux_link_gsettings)', 'g_settings_new', 'g_settings_get_child', 'g_settings_get_string', 'g_settings_get_boolean', 'g_settings_get_int', 'g_settings_get_strv', 'g_settings_list_schemas', ], 'message': 'Generating libgio library loader', 'process_outputs_as_sources': 1, }, ], }], ], }, { 'target_name': 'glib', 'type': 'none', 'toolsets': ['host', 'target'], 'variables': { 'glib_packages': 'glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0', }, 'conditions': [ ['_toolset=="target"', { 'direct_dependent_settings': { 'cflags': [ '', '--link-directly=<(linux_link_libbrlapi)', 'brlapi_getHandleSize', 'brlapi_error_location', 'brlapi_expandKeyCode', 'brlapi_strerror', 'brlapi__acceptKeys', 'brlapi__openConnection', 'brlapi__closeConnection', 'brlapi__getDisplaySize', 'brlapi__enterTtyModeWithPath', 'brlapi__leaveTtyMode', 'brlapi__writeDots', 'brlapi__readKey', ], 'message': 'Generating libbrlapi library loader', 'process_outputs_as_sources': 1, }, ], }, { 'target_name': 'libcap', 'type': 'none', 'link_settings': { 'libraries': [ '-lcap', ], }, }, { 'target_name': 'libgcrypt', 'type': 'none', 'conditions': [ ['_toolset=="target" and use_cups==1', { 'direct_dependent_settings': { 'cflags': [ '', # TODO(phajdan.jr): Report problem to pciutils project # and get it fixed so that we don't need --use-extern-c. '--use-extern-c', '--link-directly=<(linux_link_libpci)', 'pci_alloc', 'pci_init', 'pci_cleanup', 'pci_scan_bus', 'pci_fill_info', 'pci_lookup_name', ], 'message': 'Generating libpci library loader', 'process_outputs_as_sources': 1, }, ], }], ], }, { 'target_name': 'libresolv', 'type': 'none', 'link_settings': { 'libraries': [ '-lresolv', ], }, }, { 'target_name': 'libspeechd', 'type': 'static_library', 'direct_dependent_settings': { 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)', ], 'conditions': [ ['linux_link_libspeechd==1', { 'link_settings': { 'libraries': [ '-lspeechd', ], } }], ], }, 'include_dirs': [ '../..', ], 'hard_dependency': 1, 'actions': [ { 'variables': { 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h', 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc', 'generator': '../../tools/generate_library_loader/generate_library_loader.py', # speech-dispatcher >= 0.8 installs libspeechd.h into # speech-dispatcher/libspeechd.h, whereas speech-dispatcher < 0.8 # puts libspeechd.h in the top-level include directory. # Since we need to support both cases for now, we ship a copy of # libspeechd.h in third_party/speech-dispatcher. If the user # prefers to link against the speech-dispatcher directly, the # `libspeechd_h_prefix' variable can be passed to gyp with a value # such as "speech-dispatcher/" that will be prepended to # "libspeechd.h" in the #include directive. # TODO(phaldan.jr): Once we do not need to support # speech-dispatcher < 0.8 we can get rid of all this (including # third_party/speech-dispatcher) and just include # speech-dispatcher/libspeechd.h unconditionally. 'libspeechd_h_prefix%': '', }, 'action_name': 'generate_libspeechd_loader', 'inputs': [ '<(generator)', ], 'outputs': [ '<(output_h)', '<(output_cc)', ], 'action': ['python', '<(generator)', '--name', 'LibSpeechdLoader', '--output-h', '<(output_h)', '--output-cc', '<(output_cc)', '--header', '<<(libspeechd_h_prefix)libspeechd.h>', '--bundled-header', '"third_party/speech-dispatcher/libspeechd.h"', '--link-directly=<(linux_link_libspeechd)', 'spd_open', 'spd_say', 'spd_stop', 'spd_close', 'spd_pause', 'spd_resume', 'spd_set_notification_on', 'spd_set_voice_rate', 'spd_set_voice_pitch', 'spd_list_synthesis_voices', 'spd_set_synthesis_voice', 'spd_list_modules', 'spd_set_output_module', ], 'message': 'Generating libspeechd library loader', 'process_outputs_as_sources': 1, }, ], }, { 'target_name': 'pangocairo', 'type': 'none', 'toolsets': ['host', 'target'], 'conditions': [ ['use_pango==1', { 'conditions': [ ['_toolset=="target"', { 'direct_dependent_settings': { 'cflags': [ '