1 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'targets': [ 7 { 8 'target_name': 'usb_gadget', 9 'type': 'none', 10 'variables': { 11 'usb_gadget_files': [ 12 '__init__.py', 13 '__main__.py', 14 'default_gadget.py', 15 'echo_gadget.py', 16 'gadget.py', 17 'hid_constants.py', 18 'hid_descriptors.py', 19 'hid_echo_gadget.py', 20 'hid_gadget.py', 21 'keyboard_gadget.py', 22 'linux_gadgetfs.py', 23 'mouse_gadget.py', 24 'server.py', 25 'usb_constants.py', 26 'usb_descriptors.py', 27 ], 28 'usb_gadget_package': '<(PRODUCT_DIR)/usb_gadget.zip', 29 'usb_gadget_package_hash': '<(PRODUCT_DIR)/usb_gadget.zip.md5', 30 }, 31 'actions': [ 32 { 33 'action_name': 'Building USB Gadget ZIP bundle', 34 'inputs': [ 35 'package.py', 36 '<@(usb_gadget_files)', 37 ], 38 'outputs': [ 39 '<(usb_gadget_package)', 40 '<(usb_gadget_package_hash)', 41 ], 42 'action': [ 43 'python', 'package.py', 44 '--zip-file', '<(usb_gadget_package)', 45 '--hash-file', '<(usb_gadget_package_hash)', 46 '<@(usb_gadget_files)', 47 ] 48 } 49 ] 50 } 51 ] 52 } 53