| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 | 6 |
| 7 assert(!is_ios) | 7 assert(!is_ios) |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/rules.gni") # For generate_jni(). | 10 import("//build/config/android/rules.gni") # For generate_jni(). |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 "//device/core", | 52 "//device/core", |
| 53 "//net", | 53 "//net", |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 if (use_udev) { | 56 if (use_udev) { |
| 57 deps += [ "//device/udev_linux" ] | 57 deps += [ "//device/udev_linux" ] |
| 58 } | 58 } |
| 59 | 59 |
| 60 if (is_android) { | 60 if (is_android) { |
| 61 deps += [ ":jni_headers" ] | 61 deps += [ ":jni_headers" ] |
| 62 sources += [ | |
| 63 "usb_device_handle_usbfs.cc", | |
| 64 "usb_device_handle_usbfs.h", | |
| 65 ] | |
| 66 } else { | 62 } else { |
| 67 sources += [ | 63 sources += [ |
| 68 "usb_context.cc", | 64 "usb_context.cc", |
| 69 "usb_context.h", | 65 "usb_context.h", |
| 70 "usb_device_handle_impl.cc", | 66 "usb_device_handle_impl.cc", |
| 71 "usb_device_handle_impl.h", | 67 "usb_device_handle_impl.h", |
| 72 "usb_device_impl.cc", | 68 "usb_device_impl.cc", |
| 73 "usb_device_impl.h", | 69 "usb_device_impl.h", |
| 74 "usb_error.cc", | 70 "usb_error.cc", |
| 75 "usb_error.h", | 71 "usb_error.h", |
| 76 "usb_service_impl.cc", | 72 "usb_service_impl.cc", |
| 77 "usb_service_impl.h", | 73 "usb_service_impl.h", |
| 78 ] | 74 ] |
| 79 | 75 |
| 80 deps += [ "//third_party/libusb" ] | 76 deps += [ "//third_party/libusb" ] |
| 81 } | 77 } |
| 82 | 78 |
| 83 if (is_linux || is_chromeos) { | |
| 84 sources += [ | |
| 85 "usb_device_handle_usbfs.cc", | |
| 86 "usb_device_handle_usbfs.h", | |
| 87 ] | |
| 88 sources -= [ | |
| 89 "usb_device_handle_impl.cc", | |
| 90 "usb_device_handle_impl.h", | |
| 91 ] | |
| 92 } | |
| 93 | |
| 94 if (is_chromeos) { | 79 if (is_chromeos) { |
| 95 deps += [ | 80 deps += [ |
| 96 "//chromeos", | 81 "//chromeos", |
| 97 "//dbus", | 82 "//dbus", |
| 98 ] | 83 ] |
| 99 } | 84 } |
| 100 } | 85 } |
| 101 | 86 |
| 102 source_set("mocks") { | 87 source_set("mocks") { |
| 103 testonly = true | 88 testonly = true |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 147 } |
| 163 | 148 |
| 164 android_library("java") { | 149 android_library("java") { |
| 165 java_files = java_sources_needing_jni | 150 java_files = java_sources_needing_jni |
| 166 deps = [ | 151 deps = [ |
| 167 "//base:base_java", | 152 "//base:base_java", |
| 168 ] | 153 ] |
| 169 srcjar_deps = [ ":usb_descriptors_javagen" ] | 154 srcjar_deps = [ ":usb_descriptors_javagen" ] |
| 170 } | 155 } |
| 171 } | 156 } |
| OLD | NEW |