Chromium Code Reviews| 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(phaldan.jr): Once we do not need to support | |
| 494 # speech-dispatcher < 0.8 we can get rid of all this (including | |
| 495 # third_party/speech-dispatcher) and just include | |
| 496 # speech-dispatcher/libspeechd.h unconditionally. | |
| 497 'libspeechd_h_prefix%': '', | |
| 483 }, | 498 }, |
| 484 'action_name': 'generate_libspeechd_loader', | 499 'action_name': 'generate_libspeechd_loader', |
| 485 'inputs': [ | 500 'inputs': [ |
| 486 '<(generator)', | 501 '<(generator)', |
| 487 ], | 502 ], |
| 488 'outputs': [ | 503 'outputs': [ |
| 489 '<(output_h)', | 504 '<(output_h)', |
| 490 '<(output_cc)', | 505 '<(output_cc)', |
| 491 ], | 506 ], |
| 492 'action': ['python', | 507 'action': ['python', |
| 493 '<(generator)', | 508 '<(generator)', |
| 494 '--name', 'LibSpeechdLoader', | 509 '--name', 'LibSpeechdLoader', |
| 495 '--output-h', '<(output_h)', | 510 '--output-h', '<(output_h)', |
| 496 '--output-cc', '<(output_cc)', | 511 '--output-cc', '<(output_cc)', |
| 497 '--header', '<libspeechd.h>', | 512 '--header', '<<(libspeechd_h_prefix)libspeechd.h>', |
| 513 '--bundled-header', '"third_party/speech-dispatcher/libspee chd.h"', | |
|
Paweł Hajdan Jr.
2013/04/17 21:42:53
nit: Please move the second argument to the next l
| |
| 498 '--link-directly=<(linux_link_libspeechd)', | 514 '--link-directly=<(linux_link_libspeechd)', |
| 499 'spd_open', | 515 'spd_open', |
| 500 'spd_say', | 516 'spd_say', |
| 501 'spd_stop', | 517 'spd_stop', |
| 502 'spd_close', | 518 'spd_close', |
| 503 'spd_set_notification_on', | 519 'spd_set_notification_on', |
| 504 'spd_set_voice_rate', | 520 'spd_set_voice_rate', |
| 505 'spd_set_voice_pitch', | 521 'spd_set_voice_pitch', |
| 506 ], | 522 ], |
| 507 'message': 'Generating libspeechd library loader.', | 523 'message': 'Generating libspeechd library loader.', |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 817 ], | 833 ], |
| 818 'libraries': [ | 834 'libraries': [ |
| 819 '<!@(<(pkg-config) --libs-only-l libudev)', | 835 '<!@(<(pkg-config) --libs-only-l libudev)', |
| 820 ], | 836 ], |
| 821 }, | 837 }, |
| 822 }], | 838 }], |
| 823 ], | 839 ], |
| 824 }, | 840 }, |
| 825 ], | 841 ], |
| 826 } | 842 } |
| OLD | NEW |