OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'libusb', | 8 'target_name': 'libusb', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'sources': [ | 10 'sources': [ |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 'src/libusb/os/linux_usbfs.c', | 56 'src/libusb/os/linux_usbfs.c', |
57 'src/libusb/os/linux_usbfs.h', | 57 'src/libusb/os/linux_usbfs.h', |
58 ], | 58 ], |
59 'defines': [ | 59 'defines': [ |
60 'OS_LINUX=1', | 60 'OS_LINUX=1', |
61 '_GNU_SOURCE=1', | 61 '_GNU_SOURCE=1', |
62 ], | 62 ], |
63 }], | 63 }], |
64 ['use_udev==1', { | 64 ['use_udev==1', { |
65 'sources': [ | 65 'sources': [ |
66 'src/libusb/os/linux_udev.c', | 66 'src/libusb/os/linux_udev.cc', |
67 ], | 67 ], |
68 'defines': [ | 68 'defines': [ |
69 'HAVE_LIBUDEV=1', | 69 'HAVE_LIBUDEV=1', |
70 'USE_UDEV=1', | 70 'USE_UDEV=1', |
71 ], | 71 ], |
| 72 'dependencies': [ |
| 73 '../../device/udev_linux/udev.gyp:udev_linux', |
| 74 ], |
| 75 'include_dirs': [ |
| 76 '../..', |
| 77 ], |
72 }], | 78 }], |
73 ['OS=="linux" and use_udev==0', { | 79 ['OS=="linux" and use_udev==0', { |
74 'sources': [ | 80 'sources': [ |
75 'src/libusb/os/linux_netlink.c', | 81 'src/libusb/os/linux_netlink.c', |
76 ], | 82 ], |
77 'defines': [ | 83 'defines': [ |
78 'HAVE_LINUX_NETLINK_H', | 84 'HAVE_LINUX_NETLINK_H', |
79 ], | 85 ], |
80 'conditions': [ | 86 'conditions': [ |
81 ['clang==1', { | 87 ['clang==1', { |
(...skipping 30 matching lines...) Expand all Loading... |
112 ], | 118 ], |
113 'include_dirs': [ | 119 'include_dirs': [ |
114 'src/msvc', | 120 'src/msvc', |
115 ], | 121 ], |
116 'msvs_disabled_warnings': [ 4267 ], | 122 'msvs_disabled_warnings': [ 4267 ], |
117 }], | 123 }], |
118 ], | 124 ], |
119 }, | 125 }, |
120 ], | 126 ], |
121 } | 127 } |
OLD | NEW |