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

Side by Side Diff: device/device.gyp

Issue 11344039: Adding USB ID vendor and product lookups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding use_system_usbutils option. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | device/usb/usb_ids.h » ('j') | 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 'chromium_code': 1, 7 'chromium_code': 1,
8 'use_system_usbutils%': 0,
Paweł Hajdan Jr. 2012/10/31 19:03:21 nit: This won't be needed with my other comment. :
8 }, 9 },
9 'targets': [ 10 'targets': [
10 { 11 {
11 'target_name': 'device_bluetooth', 12 'target_name': 'device_bluetooth',
12 'type': '<(library)', 13 'type': '<(library)',
13 'dependencies': [ 14 'dependencies': [
14 '../chrome/chrome_resources.gyp:chrome_strings', 15 '../chrome/chrome_resources.gyp:chrome_strings',
15 '../third_party/libxml/libxml.gyp:libxml', 16 '../third_party/libxml/libxml.gyp:libxml',
16 '../ui/ui.gyp:ui' 17 '../ui/ui.gyp:ui'
17 ], 18 ],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 'bluetooth/test/mock_bluetooth_adapter.cc', 63 'bluetooth/test/mock_bluetooth_adapter.cc',
63 'bluetooth/test/mock_bluetooth_adapter.h', 64 'bluetooth/test/mock_bluetooth_adapter.h',
64 'bluetooth/test/mock_bluetooth_device.cc', 65 'bluetooth/test/mock_bluetooth_device.cc',
65 'bluetooth/test/mock_bluetooth_device.h', 66 'bluetooth/test/mock_bluetooth_device.h',
66 ], 67 ],
67 'include_dirs': [ 68 'include_dirs': [
68 '..', 69 '..',
69 ], 70 ],
70 }, 71 },
71 { 72 {
73 'target_name': 'device_usb',
74 'type': 'static_library',
75 'sources': [
76 'usb/usb_ids.cc',
77 'usb/usb_ids.h',
78 ],
79 'include_dirs': [
80 '..',
81 ],
82 'actions': [
83 {
84 'action_name': 'generate_usb_ids',
85 'variables': {
86 'usb_ids_path': '<(DEPTH)/third_party/usb_ids/usb.ids',
87 'usb_ids_py_path': '<(DEPTH)/tools/usb_ids/usb_ids.py',
88 },
89 'conditions': [
90 ['use_system_usbutils==1', {
91 'variables': {
92 'usb_ids_path': '/var/lib/usbutils/usb.ids',
Paweł Hajdan Jr. 2012/10/31 19:03:21 nit: You can just let distros configure gyp with t
93 },
94 }],
95 ],
96 'inputs': [
97 '<(usb_ids_path)',
98 '<(usb_ids_py_path)',
99 ],
100 'outputs': [
101 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
102 ],
103 'action': [
104 'python',
105 '<(usb_ids_py_path)',
106 '-i', '<(usb_ids_path)',
107 '-o', '<@(_outputs)',
108 ],
109 'process_outputs_as_sources': 1,
110 },
111 ],
112 },
113 {
72 'target_name': 'device_unittests', 114 'target_name': 'device_unittests',
73 'type': '<(gtest_target_type)', 115 'type': '<(gtest_target_type)',
74 'dependencies': [ 116 'dependencies': [
75 'device_bluetooth', 117 'device_bluetooth',
76 'device_bluetooth_mocks', 118 'device_bluetooth_mocks',
119 'device_usb',
77 '../base/base.gyp:test_support_base', 120 '../base/base.gyp:test_support_base',
78 '../content/content.gyp:test_support_content', 121 '../content/content.gyp:test_support_content',
79 '../testing/gmock.gyp:gmock', 122 '../testing/gmock.gyp:gmock',
80 '../testing/gtest.gyp:gtest', 123 '../testing/gtest.gyp:gtest',
81 ], 124 ],
82 'sources': [ 125 'sources': [
83 'bluetooth/bluetooth_adapter_chromeos_unittest.cc', 126 'bluetooth/bluetooth_adapter_chromeos_unittest.cc',
84 'bluetooth/bluetooth_adapter_devices_chromeos_unittest.cc', 127 'bluetooth/bluetooth_adapter_devices_chromeos_unittest.cc',
85 'bluetooth/bluetooth_service_record_unittest.cc', 128 'bluetooth/bluetooth_service_record_unittest.cc',
86 'bluetooth/bluetooth_utils_unittest.cc', 129 'bluetooth/bluetooth_utils_unittest.cc',
87 'test/device_test_suite.cc', 130 'test/device_test_suite.cc',
88 'test/device_test_suite.h', 131 'test/device_test_suite.h',
89 'test/run_all_unittests.cc', 132 'test/run_all_unittests.cc',
133 'usb/usb_ids_unittest.cc',
90 ], 134 ],
91 'conditions': [ 135 'conditions': [
92 ['chromeos==1', { 136 ['chromeos==1', {
93 'dependencies': [ 137 'dependencies': [
94 '../build/linux/system.gyp:dbus', 138 '../build/linux/system.gyp:dbus',
95 '../chromeos/chromeos.gyp:chromeos_test_support', 139 '../chromeos/chromeos.gyp:chromeos_test_support',
96 '../dbus/dbus.gyp:dbus', 140 '../dbus/dbus.gyp:dbus',
97 ] 141 ]
98 }], 142 }],
99 ], 143 ],
100 }, 144 },
101 ], 145 ],
102 } 146 }
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | device/usb/usb_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698