Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3465)

Unified Diff: build/linux/unbundle/libwebp.gyp

Issue 14203006: Extract use_system_foo logic out of gyp files, patch 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/linux/unbundle/libwebp.gyp
diff --git a/build/linux/unbundle/libwebp.gyp b/build/linux/unbundle/libwebp.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..6dbce2e3ab876cf003a5e8a01b7d595731b2517a
--- /dev/null
+++ b/build/linux/unbundle/libwebp.gyp
@@ -0,0 +1,28 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'libwebp',
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'ENABLE_WEBP',
+ ],
+ },
+ 'link_settings': {
+ 'libraries': [
+ # Check for presence of webpdemux library, use it if present.
Ryan Sleevi 2013/04/25 22:19:19 I don't suppose you can just treat this as a varia
Paweł Hajdan Jr. 2013/04/25 22:41:50 I could make it require libwebp-0.3...
Ryan Sleevi 2013/04/25 23:12:40 How is this not exactly that - attempting to detec
Paweł Hajdan Jr. 2013/04/26 00:55:18 I'll take a closer look at how libwebp handles SON
Paweł Hajdan Jr. 2013/04/26 18:21:40 I have further investigated this. Chrome binary bu
+ '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
+ '--code "int main() { return 0; }" '
+ '--run-linker '
+ '--on-success "-lwebp -lwebpdemux" '
+ '--on-failure "-lwebp" '
+ '-- -lwebpdemux)',
+ ],
+ },
+ }
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698