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

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

Issue 2151653003: Convert some GN test support targets to static libs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: crypto Created 4 years, 5 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
« no previous file with comments | « dbus/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
11 import("//build/config/android/rules.gni") # For generate_jni(). 11 import("//build/config/android/rules.gni") # For generate_jni().
12 } 12 }
13 13
14 source_ids = "//third_party/usb_ids/usb.ids" 14 source_ids = "//third_party/usb_ids/usb.ids"
15 generated_ids = "$target_gen_dir/usb_ids_gen.cc" 15 generated_ids = "$target_gen_dir/usb_ids_gen.cc"
16 16
17 source_set("usb") { 17 static_library("usb") {
18 sources = [ 18 sources = [
19 "android/usb_jni_registrar.cc", 19 "android/usb_jni_registrar.cc",
20 "android/usb_jni_registrar.h", 20 "android/usb_jni_registrar.h",
21 "usb_configuration_android.cc", 21 "usb_configuration_android.cc",
22 "usb_configuration_android.h", 22 "usb_configuration_android.h",
23 "usb_descriptors.cc", 23 "usb_descriptors.cc",
24 "usb_descriptors.h", 24 "usb_descriptors.h",
25 "usb_device.cc", 25 "usb_device.cc",
26 "usb_device.h", 26 "usb_device.h",
27 "usb_device_android.cc", 27 "usb_device_android.cc",
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 if (is_chromeos) { 97 if (is_chromeos) {
98 deps += [ 98 deps += [
99 "//chromeos", 99 "//chromeos",
100 "//dbus", 100 "//dbus",
101 ] 101 ]
102 } 102 }
103 } 103 }
104 104
105 source_set("test_support") { 105 static_library("test_support") {
106 testonly = true 106 testonly = true
107 107
108 sources = [ 108 sources = [
109 "fake_usb_device_handle.cc", 109 "fake_usb_device_handle.cc",
110 "fake_usb_device_handle.h", 110 "fake_usb_device_handle.h",
111 "mock_usb_device.cc", 111 "mock_usb_device.cc",
112 "mock_usb_device.h", 112 "mock_usb_device.h",
113 "mock_usb_device_handle.cc", 113 "mock_usb_device_handle.cc",
114 "mock_usb_device_handle.h", 114 "mock_usb_device_handle.h",
115 "mock_usb_service.cc", 115 "mock_usb_service.cc",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 jni_package = "device" 203 jni_package = "device"
204 } 204 }
205 205
206 android_library("java") { 206 android_library("java") {
207 java_files = java_sources_needing_jni 207 java_files = java_sources_needing_jni
208 deps = [ 208 deps = [
209 "//base:base_java", 209 "//base:base_java",
210 ] 210 ]
211 } 211 }
212 } 212 }
OLDNEW
« no previous file with comments | « dbus/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698