| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|  | 2 # Use of this source code is governed by a BSD-style license that can be | 
|  | 3 # found in the LICENSE file. | 
|  | 4 | 
|  | 5 { | 
|  | 6   'variables': { | 
|  | 7     'use_system_libmtp%': 0, | 
|  | 8   }, | 
|  | 9   'conditions': [ | 
|  | 10     ['use_system_libmtp==0', { | 
|  | 11       'targets': [ | 
|  | 12         { | 
|  | 13           'target_name': 'libmtp', | 
|  | 14           'type': 'shared_library', | 
|  | 15           'product_name': 'mtp', | 
|  | 16           'dependencies': [ | 
|  | 17             '../../third_party/libusb/libusb.gyp:libusb', | 
|  | 18           ], | 
|  | 19           'sources': [ | 
|  | 20             'src/libmtp.c', | 
|  | 21             'src/libusb1-glue.c', | 
|  | 22             'src/ptp.c', | 
|  | 23             'src/unicode.c', | 
|  | 24             'src/util.c', | 
|  | 25           ], | 
|  | 26           'cflags!': ['-fvisibility=hidden'], | 
|  | 27           'include_dirs': [ | 
|  | 28             '.', | 
|  | 29             'src', | 
|  | 30           ], | 
|  | 31           'direct_dependent_settings': { | 
|  | 32             'include_dirs': [ | 
|  | 33               'src', | 
|  | 34             ], | 
|  | 35           }, | 
|  | 36         }, | 
|  | 37       ], | 
|  | 38     }, { # use_system_libmtp==1 | 
|  | 39       'conditions': [ | 
|  | 40         ['sysroot!=""', { | 
|  | 41           'variables': { | 
|  | 42             'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)" "<(
    target_arch)"', | 
|  | 43           }, | 
|  | 44         }, { | 
|  | 45           'variables': { | 
|  | 46             'pkg-config': 'pkg-config' | 
|  | 47           }, | 
|  | 48         }], | 
|  | 49       ], | 
|  | 50       'targets': [ | 
|  | 51         { | 
|  | 52           'target_name': 'libmtp', | 
|  | 53           'type': 'none', | 
|  | 54           'direct_dependent_settings': { | 
|  | 55             'cflags': [ | 
|  | 56                 '<!@(<(pkg-config) --cflags libmtp)', | 
|  | 57             ], | 
|  | 58           }, | 
|  | 59           'link_settings': { | 
|  | 60             'ldflags': [ | 
|  | 61               '<!@(<(pkg-config) --libs-only-L --libs-only-other libmtp)', | 
|  | 62             ], | 
|  | 63             'libraries': [ | 
|  | 64               '<!@(<(pkg-config) --libs-only-l libmtp)', | 
|  | 65             ], | 
|  | 66           }, | 
|  | 67         } | 
|  | 68       ], | 
|  | 69     }], | 
|  | 70   ] | 
|  | 71 } | 
| OLD | NEW | 
|---|