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 ships a .pc file and installs | |
485 # libspeechd.h into speech-dispatcher/libspeechd.h, whereas | |
486 # speech-dispatcher < 0.7 does not install a .pc file and puts | |
487 # libspeechd.h in the top-level include directory. | |
488 # Take both cases into account by assuming that if the .pc file | |
489 # exists we have speech-dispatcher >= 0.8 and the header is in | |
490 # speech-dispatcher/. | |
491 'header_prefix': '<!(<(pkg-config) --exists speech-dispatcher && ech o "speech-dispatcher/" || echo)', | |
Paweł Hajdan Jr.
2013/04/16 19:23:42
I'm not really happy about this. Auto-detection fo
| |
483 }, | 492 }, |
484 'action_name': 'generate_libspeechd_loader', | 493 'action_name': 'generate_libspeechd_loader', |
485 'inputs': [ | 494 'inputs': [ |
486 '<(generator)', | 495 '<(generator)', |
487 ], | 496 ], |
488 'outputs': [ | 497 'outputs': [ |
489 '<(output_h)', | 498 '<(output_h)', |
490 '<(output_cc)', | 499 '<(output_cc)', |
491 ], | 500 ], |
492 'action': ['python', | 501 'action': ['python', |
493 '<(generator)', | 502 '<(generator)', |
494 '--name', 'LibSpeechdLoader', | 503 '--name', 'LibSpeechdLoader', |
495 '--output-h', '<(output_h)', | 504 '--output-h', '<(output_h)', |
496 '--output-cc', '<(output_cc)', | 505 '--output-cc', '<(output_cc)', |
497 '--header', '<libspeechd.h>', | 506 '--header', '<<(header_prefix)libspeechd.h>', |
498 '--link-directly=<(linux_link_libspeechd)', | 507 '--link-directly=<(linux_link_libspeechd)', |
499 'spd_open', | 508 'spd_open', |
500 'spd_say', | 509 'spd_say', |
501 'spd_stop', | 510 'spd_stop', |
502 'spd_close', | 511 'spd_close', |
503 'spd_set_notification_on', | 512 'spd_set_notification_on', |
504 'spd_set_voice_rate', | 513 'spd_set_voice_rate', |
505 'spd_set_voice_pitch', | 514 'spd_set_voice_pitch', |
506 ], | 515 ], |
507 'message': 'Generating libspeechd library loader.', | 516 'message': 'Generating libspeechd library loader.', |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
817 ], | 826 ], |
818 'libraries': [ | 827 'libraries': [ |
819 '<!@(<(pkg-config) --libs-only-l libudev)', | 828 '<!@(<(pkg-config) --libs-only-l libudev)', |
820 ], | 829 ], |
821 }, | 830 }, |
822 }], | 831 }], |
823 ], | 832 ], |
824 }, | 833 }, |
825 ], | 834 ], |
826 } | 835 } |
OLD | NEW |