Chromium Code Reviews| 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 'variables': { | 6 'variables': { |
| 7 'use_system_libusb%': 0, | 7 'use_system_libusb%': 0, |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 'target_name': 'libusb', | 11 'target_name': 'libusb', |
| 12 'conditions': [ | 12 'conditions': [ |
| 13 ['OS == "android"', { | |
|
Lei Zhang
2012/06/05 18:22:53
Why is this in a separate section by itself, and n
Paweł Hajdan Jr.
2012/06/06 08:20:00
Please do what Lei said. It makes no sense to dupl
felipeg
2012/06/06 09:48:31
Done.
| |
| 14 'sources': [ | |
| 15 'src/libusb/os/linux_usbfs.c', | |
| 16 'src/libusb/os/threads_posix.c', | |
| 17 ], | |
| 18 'defines': [ | |
| 19 'DEFAULT_VISIBILITY=', | |
| 20 'HAVE_POLL_H=1', | |
| 21 'HAVE_SYS_TIME_H=1', | |
| 22 'OS_LINUX=1', | |
| 23 'POLL_NFDS_TYPE=nfds_t', | |
| 24 'THREADS_POSIX=1', | |
| 25 '_GNU_SOURCE=1', | |
| 26 ], | |
| 27 }], | |
| 13 ['OS == "linux" and use_system_libusb', { | 28 ['OS == "linux" and use_system_libusb', { |
| 14 'type': 'none', | 29 'type': 'none', |
| 15 'direct_dependent_settings': { | 30 'direct_dependent_settings': { |
| 16 'defines': [ | 31 'defines': [ |
| 17 'USE_SYSTEM_LIBUSB', | 32 'USE_SYSTEM_LIBUSB', |
| 18 ], | 33 ], |
| 19 'cflags': [ | 34 'cflags': [ |
| 20 '<!@(pkg-config --cflags libusb-1.0)', | 35 '<!@(pkg-config --cflags libusb-1.0)', |
| 21 ], | 36 ], |
| 22 'link_settings': { | 37 'link_settings': { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 'THREADS_POSIX=1', | 99 'THREADS_POSIX=1', |
| 85 '_GNU_SOURCE=1', | 100 '_GNU_SOURCE=1', |
| 86 ], | 101 ], |
| 87 }], | 102 }], |
| 88 ], | 103 ], |
| 89 }], | 104 }], |
| 90 ], | 105 ], |
| 91 }, | 106 }, |
| 92 ], | 107 ], |
| 93 } | 108 } |
| OLD | NEW |