| 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 ] |
| 62 } else { | 66 } else { |
| 63 sources += [ | 67 sources += [ |
| 64 "usb_context.cc", | 68 "usb_context.cc", |
| 65 "usb_context.h", | 69 "usb_context.h", |
| 66 "usb_device_handle_impl.cc", | 70 "usb_device_handle_impl.cc", |
| 67 "usb_device_handle_impl.h", | 71 "usb_device_handle_impl.h", |
| 68 "usb_device_impl.cc", | 72 "usb_device_impl.cc", |
| 69 "usb_device_impl.h", | 73 "usb_device_impl.h", |
| 70 "usb_error.cc", | 74 "usb_error.cc", |
| 71 "usb_error.h", | 75 "usb_error.h", |
| 72 "usb_service_impl.cc", | 76 "usb_service_impl.cc", |
| 73 "usb_service_impl.h", | 77 "usb_service_impl.h", |
| 74 ] | 78 ] |
| 75 | 79 |
| 76 deps += [ "//third_party/libusb" ] | 80 deps += [ "//third_party/libusb" ] |
| 77 } | 81 } |
| 78 | 82 |
| 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 |
| 79 if (is_chromeos) { | 94 if (is_chromeos) { |
| 80 deps += [ | 95 deps += [ |
| 81 "//chromeos", | 96 "//chromeos", |
| 82 "//dbus", | 97 "//dbus", |
| 83 ] | 98 ] |
| 84 } | 99 } |
| 85 } | 100 } |
| 86 | 101 |
| 87 source_set("mocks") { | 102 source_set("mocks") { |
| 88 testonly = true | 103 testonly = true |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 162 } |
| 148 | 163 |
| 149 android_library("java") { | 164 android_library("java") { |
| 150 java_files = java_sources_needing_jni | 165 java_files = java_sources_needing_jni |
| 151 deps = [ | 166 deps = [ |
| 152 "//base:base_java", | 167 "//base:base_java", |
| 153 ] | 168 ] |
| 154 srcjar_deps = [ ":usb_descriptors_javagen" ] | 169 srcjar_deps = [ ":usb_descriptors_javagen" ] |
| 155 } | 170 } |
| 156 } | 171 } |
| OLD | NEW |