Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: device/usb/BUILD.gn

Issue 2821813002: Use Mojo enum types in the C++ USB interface (Closed)
Patch Set: Fix circular dependency Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 import("//testing/libfuzzer/fuzzer_test.gni") 6 import("//testing/libfuzzer/fuzzer_test.gni")
7 7
8 assert(!is_ios) 8 assert(!is_ios)
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 generated_ids, 55 generated_ids,
56 ] 56 ]
57 57
58 deps = [ 58 deps = [
59 ":usb_device_ids", 59 ":usb_device_ids",
60 "//base", 60 "//base",
61 "//base/third_party/dynamic_annotations", 61 "//base/third_party/dynamic_annotations",
62 "//components/device_event_log", 62 "//components/device_event_log",
63 "//device/base", 63 "//device/base",
64 "//net", 64 "//net",
65
66 # Depend on the header generation target only to avoid the circular
67 # dependency caused by both using enums defined in the mojom headers and
68 # typemappings linking against this target.
69 "public/interfaces:interfaces__generator",
65 ] 70 ]
66 71
67 if (use_udev) { 72 if (use_udev) {
68 sources += [ 73 sources += [
69 "usb_service_linux.cc", 74 "usb_service_linux.cc",
70 "usb_service_linux.h", 75 "usb_service_linux.h",
71 ] 76 ]
72 deps += [ "//device/udev_linux" ] 77 deps += [ "//device/udev_linux" ]
73 } 78 }
74 79
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 jni_package = "device" 218 jni_package = "device"
214 } 219 }
215 220
216 android_library("java") { 221 android_library("java") {
217 java_files = java_sources_needing_jni 222 java_files = java_sources_needing_jni
218 deps = [ 223 deps = [
219 "//base:base_java", 224 "//base:base_java",
220 ] 225 ]
221 } 226 }
222 } 227 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698