Make the build work with speech-dispatcher >= 0.8.
speech-dispatcher 0.8 has changed the location where the libspeechd.h header file is installed, and users are expected to reference it from the top-level directory, ie. #include <speech-dispatcher/libspeechd.h> Version 0.8 also installs a .pc pkg-config file. Since speech-dispatcher 0.7 is still very widespread, we cannot assume this new structure and .pc file are always available, so resort to adding the "speech-dispatcher/" prefix to the #include based on whether `pkg-config --exists' does not fail. Arguably, we should also start calling `pkg-config --{cflags,libs-only-l,etc}', but not having the .pc file always available would make the changes more complicated. Since everything has worked so far without that, keeping the status quo for now should be fine. BUG= TEST=Build with speech-dispatcher >= 0.8 installed. Review URL: https://chromiumcodereview.appspot.com/14296005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195204 0039d316-1c4b-4281-b951-d872f2087c98
Showing
This diff is collapsed.
Please register or sign in to comment