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

Side by Side Diff: third_party/libusb/libusb.gyp

Issue 10519005: Fix libusb dependecy for Chromium with Android OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 unified diff | Download patch
« chrome/chrome_browser.gypi ('K') | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« chrome/chrome_browser.gypi ('K') | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698