--- third_party/libusb/libusb.gyp.orig 2016-05-20 17:19:03 UTC +++ third_party/libusb/libusb.gyp @@ -1,4 +1,4 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. +# 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. @@ -6,133 +6,29 @@ 'targets': [ { 'target_name': 'libusb', - 'type': 'static_library', - 'sources': [ - 'src/config.h', - 'src/libusb/core.c', - 'src/libusb/descriptor.c', - 'src/libusb/hotplug.c', - 'src/libusb/hotplug.h', - 'src/libusb/interrupt.c', - 'src/libusb/interrupt.h', - 'src/libusb/io.c', - 'src/libusb/libusb.h', - 'src/libusb/libusbi.h', - 'src/libusb/strerror.c', - 'src/libusb/sync.c', - 'src/libusb/version.h', - 'src/libusb/version_nano.h', - ], + 'type': 'none', 'variables': { - 'clang_warning_flags': [ - # guid_eq in windows_usb.c is unused. - '-Wno-unused-function', + 'headers_root_path': 'src/libusb', + 'header_filenames': [ + 'libusb.h', ], }, - 'include_dirs': [ - 'src', - 'src/libusb', - 'src/libusb/os', + 'includes': [ + '../../build/shim_headers.gypi', ], 'direct_dependent_settings': { - 'include_dirs': [ - 'src/libusb', + 'cflags': [ + '