OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['sysroot!=""', { | 8 ['sysroot!=""', { |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
10 }, { | 10 }, { |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
473 }], | 473 }], |
474 ], | 474 ], |
475 }, | 475 }, |
476 'hard_dependency': 1, | 476 'hard_dependency': 1, |
477 'actions': [ | 477 'actions': [ |
478 { | 478 { |
479 'variables': { | 479 'variables': { |
480 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h ', | 480 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h ', |
481 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc', | 481 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc', |
482 'generator': '../../tools/generate_library_loader/generate_library_l oader.py', | 482 'generator': '../../tools/generate_library_loader/generate_library_l oader.py', |
483 | |
484 # speech-dispatcher >= 0.8 installs libspeechd.h into | |
485 # speech-dispatcher/libspeechd.h, whereas speech-dispatcher < 0.8 | |
486 # puts libspeechd.h in the top-level include directory. | |
487 # Since we need to support both cases for now, we ship a copy of | |
488 # libspeechd.h in third_party/speech-dispatcher. If the user | |
489 # prefers to link against the speech-dispatcher directly, the | |
490 # `libspeechd_h_prefix' variable can be passed to gyp with a value | |
491 # such as "speech-dispatcher/" that will be prepended to | |
492 # "libspeechd.h" in the #include directive. | |
493 # TODO: Once we do not need to support speech-dispatcher < 0.8 we | |
Paweł Hajdan Jr.
2013/04/17 17:30:48
TODO(phajdan.jr)
| |
494 # can get rid of all this (including third_party/speech-dispatcher) | |
495 # and just include speech-dispatcher/libspeechd.h unconditionally. | |
496 'libspeechd_h_prefix%': '', | |
483 }, | 497 }, |
484 'action_name': 'generate_libspeechd_loader', | 498 'action_name': 'generate_libspeechd_loader', |
485 'inputs': [ | 499 'inputs': [ |
486 '<(generator)', | 500 '<(generator)', |
487 ], | 501 ], |
488 'outputs': [ | 502 'outputs': [ |
489 '<(output_h)', | 503 '<(output_h)', |
490 '<(output_cc)', | 504 '<(output_cc)', |
491 ], | 505 ], |
492 'action': ['python', | 506 'action': ['python', |
493 '<(generator)', | 507 '<(generator)', |
494 '--name', 'LibSpeechdLoader', | 508 '--name', 'LibSpeechdLoader', |
495 '--output-h', '<(output_h)', | 509 '--output-h', '<(output_h)', |
496 '--output-cc', '<(output_cc)', | 510 '--output-cc', '<(output_cc)', |
497 '--header', '<libspeechd.h>', | 511 '--header', '<<(libspeechd_h_prefix)libspeechd.h>', |
512 '--bundled-header', '"third_party/speech-dispatcher/libspee chd.h"', | |
498 '--link-directly=<(linux_link_libspeechd)', | 513 '--link-directly=<(linux_link_libspeechd)', |
499 'spd_open', | 514 'spd_open', |
500 'spd_say', | 515 'spd_say', |
501 'spd_stop', | 516 'spd_stop', |
502 'spd_close', | 517 'spd_close', |
503 'spd_set_notification_on', | 518 'spd_set_notification_on', |
504 'spd_set_voice_rate', | 519 'spd_set_voice_rate', |
505 'spd_set_voice_pitch', | 520 'spd_set_voice_pitch', |
506 ], | 521 ], |
507 'message': 'Generating libspeechd library loader.', | 522 'message': 'Generating libspeechd library loader.', |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
817 ], | 832 ], |
818 'libraries': [ | 833 'libraries': [ |
819 '<!@(<(pkg-config) --libs-only-l libudev)', | 834 '<!@(<(pkg-config) --libs-only-l libudev)', |
820 ], | 835 ], |
821 }, | 836 }, |
822 }], | 837 }], |
823 ], | 838 ], |
824 }, | 839 }, |
825 ], | 840 ], |
826 } | 841 } |
OLD | NEW |