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_hid', 12 'type': 'static_library', 13 'include_dirs': [ 14 '../..', 15 ], 16 'sources': [ 17 'device_monitor_linux.cc', 18 'device_monitor_linux.h', 19 'hid_collection_info.cc', 20 'hid_collection_info.h', 21 'hid_connection.cc', 22 'hid_connection.h', 23 'hid_connection_linux.cc', 24 'hid_connection_linux.h', 25 'hid_connection_mac.cc', 26 'hid_connection_mac.h', 27 'hid_connection_win.cc', 28 'hid_connection_win.h', 29 'hid_device_filter.cc', 30 'hid_device_filter.h', 31 'hid_device_info.cc', 32 'hid_device_info.h', 33 'hid_report_descriptor.cc', 34 'hid_report_descriptor.h', 35 'hid_report_descriptor_item.cc', 36 'hid_report_descriptor_item.h', 37 'hid_service.cc', 38 'hid_service.h', 39 'hid_service_linux.cc', 40 'hid_service_linux.h', 41 'hid_service_mac.cc', 42 'hid_service_mac.h', 43 'hid_service_win.cc', 44 'hid_service_win.h', 45 'hid_usage_and_page.cc', 46 'hid_usage_and_page.h', 47 'input_service_linux.cc', 48 'input_service_linux.h', 49 ], 50 'conditions': [ 51 ['use_udev==1', { 52 'dependencies': [ 53 '../udev_linux/udev.gyp:udev_linux', 54 ], 55 }, { # use_udev==0 56 # The Linux implementation is based on Udev. 57 'sources!': [ 58 'device_monitor_linux.cc', 59 'device_monitor_linux.h', 60 'hid_service_linux.cc', 61 'hid_service_linux.h', 62 'input_service_linux.cc', 63 'input_service_linux.h', 64 ], 65 }], 66 ], 67 }, 68 ], 69 } 70