summaryrefslogtreecommitdiffstats
path: root/device/usb
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-03 00:22:30 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-03 00:22:30 +0000
commite3a9ccfc70c99db0dd85be51e4c096d63f8a29bd (patch)
treeeab2629e42f6f80d2b557691d19945c0ec696cce /device/usb
parent7131880e814ea51968b4eb589d40c9478b10cb8d (diff)
downloadchromium_src-e3a9ccfc70c99db0dd85be51e4c096d63f8a29bd.zip
chromium_src-e3a9ccfc70c99db0dd85be51e4c096d63f8a29bd.tar.gz
chromium_src-e3a9ccfc70c99db0dd85be51e4c096d63f8a29bd.tar.bz2
device: Restructure the layout of gyp files.
This follow the same structure used by ui/keyboard/. Now the directory hierachy looks like this: device/bluetooth/bluetooth.gyp device/bluetooth/bluetooth_strings.gyp device/bluetooth/bluetooth_strings.grd device/bluetooth/strings device/usb/usb.gyp R=bryeung@chromium.org,miket@chromium.org Review URL: https://chromiumcodereview.appspot.com/16231013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/usb')
-rw-r--r--device/usb/usb.gyp45
-rw-r--r--device/usb/usb_ids.h2
2 files changed, 46 insertions, 1 deletions
diff --git a/device/usb/usb.gyp b/device/usb/usb.gyp
new file mode 100644
index 0000000..b7cae89
--- /dev/null
+++ b/device/usb/usb.gyp
@@ -0,0 +1,45 @@
+# 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.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'targets': [
+ {
+ 'target_name': 'device_usb',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../..',
+ ],
+ 'sources': [
+ 'usb_ids.cc',
+ 'usb_ids.h',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_usb_ids',
+ 'variables': {
+ 'usb_ids_path%': '<(DEPTH)/third_party/usb_ids/usb.ids',
+ 'usb_ids_py_path': '<(DEPTH)/tools/usb_ids/usb_ids.py',
+ },
+ 'inputs': [
+ '<(usb_ids_path)',
+ '<(usb_ids_py_path)',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
+ ],
+ 'action': [
+ 'python',
+ '<(usb_ids_py_path)',
+ '-i', '<(usb_ids_path)',
+ '-o', '<@(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ },
+ ],
+ },
+ ],
+}
diff --git a/device/usb/usb_ids.h b/device/usb/usb_ids.h
index 2f6b950..9b9461e 100644
--- a/device/usb/usb_ids.h
+++ b/device/usb/usb_ids.h
@@ -45,7 +45,7 @@ class UsbIds {
// such vendor exists.
static const UsbVendor* FindVendor(uint16_t vendor_id);
- // These fields are defined in a generated file. See device/device.gyp for
+ // These fields are defined in a generated file. See device/usb/usb.gyp for
// more information on how they are generated.
static const size_t vendor_size_;
static const UsbVendor vendors_[];