Chromium Code Reviews| Index: build/linux/system.gyp |
| diff --git a/build/linux/system.gyp b/build/linux/system.gyp |
| index d9e553d7ddea8935317a9234238560295414765c..3c6c7e3d0b4ef57fccbf709e2d9691c274041afd 100644 |
| --- a/build/linux/system.gyp |
| +++ b/build/linux/system.gyp |
| @@ -480,6 +480,20 @@ |
| '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: Once we do not need to support speech-dispatcher < 0.8 we |
|
Paweł Hajdan Jr.
2013/04/17 17:30:48
TODO(phajdan.jr)
|
| + # 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': [ |
| @@ -494,7 +508,8 @@ |
| '--name', 'LibSpeechdLoader', |
| '--output-h', '<(output_h)', |
| '--output-cc', '<(output_cc)', |
| - '--header', '<libspeechd.h>', |
| + '--header', '<<(libspeechd_h_prefix)libspeechd.h>', |
| + '--bundled-header', '"third_party/speech-dispatcher/libspeechd.h"', |
| '--link-directly=<(linux_link_libspeechd)', |
| 'spd_open', |
| 'spd_say', |