Index: third_party/libwebp/libwebp.gyp |
diff --git a/third_party/libwebp/libwebp.gyp b/third_party/libwebp/libwebp.gyp |
index 1eb2217aa2e94bb256165cc6bbcc9be83f38512a..10a66154aaebd006e5a978b95358154f77439b43 100644 |
--- a/third_party/libwebp/libwebp.gyp |
+++ b/third_party/libwebp/libwebp.gyp |
@@ -162,7 +162,13 @@ |
}, |
'link_settings': { |
'libraries': [ |
- '-lwebp', |
+ # Check for presence of webpdemux library, use it if present. |
+ '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
+ '--code "int main() { return 0; }" ' |
+ '--run-linker ' |
+ '--on-success "-lwebp -lwebpdemux" ' |
+ '--on-failure "-lwebp" ' |
+ '-- -lwebpdemux)', |
], |
}, |
} |