1 # Copyright 2013 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 'variables': { 7 'chromium_code': 1, 8 }, 9 'targets': [ 10 { 11 'target_name': 'device_usb', 12 'type': 'static_library', 13 'include_dirs': [ 14 '../..', 15 ], 16 'sources': [ 17 'usb_ids.cc', 18 'usb_ids.h', 19 ], 20 'actions': [ 21 { 22 'action_name': 'generate_usb_ids', 23 'variables': { 24 'usb_ids_path%': '<(DEPTH)/third_party/usb_ids/usb.ids', 25 'usb_ids_py_path': '<(DEPTH)/tools/usb_ids/usb_ids.py', 26 }, 27 'inputs': [ 28 '<(usb_ids_path)', 29 '<(usb_ids_py_path)', 30 ], 31 'outputs': [ 32 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc', 33 ], 34 'action': [ 35 'python', 36 '<(usb_ids_py_path)', 37 '-i', '<(usb_ids_path)', 38 '-o', '<@(_outputs)', 39 ], 40 'process_outputs_as_sources': 1, 41 }, 42 ], 43 }, 44 ], 45 } 46