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

Unified Diff: tools/usb_gadget.gyp

Issue 414833004: [usb_gadget p08] Package the USB gadget framework for easy distribution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/usb_gadget/package.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/usb_gadget.gyp
diff --git a/tools/usb_gadget.gyp b/tools/usb_gadget.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..7f9f72f280cfb22040133c441dbf3c4bda697a0f
--- /dev/null
+++ b/tools/usb_gadget.gyp
@@ -0,0 +1,50 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
tfarina 2014/08/29 15:42:06 I think this file should have been added to tools/
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
tfarina 2014/08/29 15:42:06 optional (just showing there is other way): this
+ 'usb_gadget_files': [
+ 'usb_gadget/__init__.py',
+ 'usb_gadget/__main__.py',
+ 'usb_gadget/default_gadget.py',
+ 'usb_gadget/gadget.py',
+ 'usb_gadget/hid_constants.py',
+ 'usb_gadget/hid_descriptors.py',
+ 'usb_gadget/hid_gadget.py',
+ 'usb_gadget/keyboard_gadget.py',
+ 'usb_gadget/linux_gadgetfs.py',
+ 'usb_gadget/mouse_gadget.py',
+ 'usb_gadget/server.py',
+ 'usb_gadget/usb_constants.py',
+ 'usb_gadget/usb_descriptors.py',
+ ],
+ 'usb_gadget_package': '<(PRODUCT_DIR)/usb_gadget.zip',
+ 'usb_gadget_package_hash': '<(PRODUCT_DIR)/usb_gadget.zip.md5',
+ },
+ 'targets': [
+ {
+ 'target_name': 'usb_gadget',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'Building USB Gadget ZIP bundle',
+ 'inputs': [
+ 'usb_gadget/package.py',
+ '<@(usb_gadget_files)',
+ ],
+ 'outputs': [
+ '<(usb_gadget_package)',
+ '<(usb_gadget_package_hash)',
+ ],
+ 'action': [
+ 'python', 'usb_gadget/package.py',
+ '--zip-file', '<(usb_gadget_package)',
+ '--hash-file', '<(usb_gadget_package_hash)',
+ '<@(usb_gadget_files)',
+ ]
+ }
+ ]
+ }
+ ]
+}
« no previous file with comments | « no previous file | tools/usb_gadget/package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698