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

Unified Diff: libmtp.gyp

Issue 2364793002: Revert "Uprev libmtp to 1.1.12" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libmtp@master
Patch Set: Created 4 years, 3 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
« no previous file with comments | « install-sh ('k') | libmtp.pc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libmtp.gyp
diff --git a/libmtp.gyp b/libmtp.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..0c02790f48c65d965c1afbca2720f8f1fe700d8b
--- /dev/null
+++ b/libmtp.gyp
@@ -0,0 +1,71 @@
+# Copyright (c) 2012 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.
+
+{
+ 'variables': {
+ 'use_system_libmtp%': 0,
+ },
+ 'conditions': [
+ ['use_system_libmtp==0', {
+ 'targets': [
+ {
+ 'target_name': 'libmtp',
+ 'type': 'shared_library',
+ 'product_name': 'mtp',
+ 'dependencies': [
+ '../../third_party/libusb/libusb.gyp:libusb',
+ ],
+ 'sources': [
+ 'src/libmtp.c',
+ 'src/libusb1-glue.c',
+ 'src/ptp.c',
+ 'src/unicode.c',
+ 'src/util.c',
+ ],
+ 'cflags!': ['-fvisibility=hidden'],
+ 'include_dirs': [
+ '.',
+ 'src',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'src',
+ ],
+ },
+ },
+ ],
+ }, { # use_system_libmtp==1
+ 'conditions': [
+ ['sysroot!=""', {
+ 'variables': {
+ 'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
+ },
+ }, {
+ 'variables': {
+ 'pkg-config': 'pkg-config'
+ },
+ }],
+ ],
+ 'targets': [
+ {
+ 'target_name': 'libmtp',
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'cflags': [
+ '<!@(<(pkg-config) --cflags libmtp)',
+ ],
+ },
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other libmtp)',
+ ],
+ 'libraries': [
+ '<!@(<(pkg-config) --libs-only-l libmtp)',
+ ],
+ },
+ }
+ ],
+ }],
+ ]
+}
« no previous file with comments | « install-sh ('k') | libmtp.pc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698