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

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

Issue 1439973004: [PoC] Reformat all BUILD.gn and *.gni files with new gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-sort-deps
Patch Set: Synchronize with new version of gn patch Created 5 years, 1 month 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 6
7 assert(!is_android && !is_ios) 7 assert(!is_android && !is_ios)
8 8
9 source_ids = "//third_party/usb_ids/usb.ids" 9 source_ids = "//third_party/usb_ids/usb.ids"
10 generated_ids = "$target_gen_dir/usb_ids_gen.cc" 10 generated_ids = "$target_gen_dir/usb_ids_gen.cc"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 sources = [ 65 sources = [
66 "mock_usb_device.cc", 66 "mock_usb_device.cc",
67 "mock_usb_device.h", 67 "mock_usb_device.h",
68 "mock_usb_device_handle.cc", 68 "mock_usb_device_handle.cc",
69 "mock_usb_device_handle.h", 69 "mock_usb_device_handle.h",
70 "mock_usb_service.cc", 70 "mock_usb_service.cc",
71 "mock_usb_service.h", 71 "mock_usb_service.h",
72 ] 72 ]
73 73
74 deps = [ 74 deps = [
75 ":usb",
75 "//base", 76 "//base",
76 "//testing/gmock", 77 "//testing/gmock",
77 ":usb",
78 ] 78 ]
79 } 79 }
80 80
81 action("usb_device_ids") { 81 action("usb_device_ids") {
82 script = "//device/usb/tools/usb_ids.py" 82 script = "//device/usb/tools/usb_ids.py"
83 inputs = [ 83 inputs = [
84 source_ids, 84 source_ids,
85 ] 85 ]
86 outputs = [ 86 outputs = [
87 generated_ids, 87 generated_ids,
88 ] 88 ]
89 args = [ 89 args = [
90 "-i", 90 "-i",
91 rebase_path(source_ids, root_build_dir), 91 rebase_path(source_ids, root_build_dir),
92 "-o", 92 "-o",
93 rebase_path(generated_ids, root_build_dir), 93 rebase_path(generated_ids, root_build_dir),
94 ] 94 ]
95 95
96 # Only the device_usb target can depend on us. 96 # Only the device_usb target can depend on us.
97 visibility = [ ":usb" ] 97 visibility = [ ":usb" ]
98 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698