Index: third_party/libwebp/libwebp.gyp |
diff --git a/third_party/libwebp/libwebp.gyp b/third_party/libwebp/libwebp.gyp |
index 1eb2217aa2e94bb256165cc6bbcc9be83f38512a..ef623977add87672be8fe4986601478ed637c4c2 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 ../../tools/compile_test/compile_test.py ' |
jzern
2013/04/18 21:47:01
would this be better written as (DEPTH)/tools ?
Paweł Hajdan Jr.
2013/04/18 22:08:06
Done.
|
+ '--code "int main() { return 0; }" ' |
+ '--run-linker ' |
+ '--on-success "-lwebp -lwebpdemux" ' |
+ '--on-failure "-lwebp" ' |
+ '-- -lwebpdemux)', |
], |
}, |
} |