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

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

Issue 1295353002: use_udev is more accurate than is_linux for udev gn deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: import features.gni Created 5 years, 4 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 | « device/hid/BUILD.gn ('k') | device/usb/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
6 7
7 # GYP version: device/serial/serial.gyp:device_serial 8 # GYP version: device/serial/serial.gyp:device_serial
8 static_library("serial") { 9 static_library("serial") {
9 output_name = "device_serial" 10 output_name = "device_serial"
10 11
11 sources = [ 12 sources = [
12 "buffer.cc", 13 "buffer.cc",
13 "buffer.h", 14 "buffer.h",
14 "data_receiver.cc", 15 "data_receiver.cc",
(...skipping 27 matching lines...) Expand all
42 ] 43 ]
43 44
44 public_deps = [ 45 public_deps = [
45 ":serial_mojo", 46 ":serial_mojo",
46 "//base", 47 "//base",
47 ] 48 ]
48 deps = [ 49 deps = [
49 "//third_party/mojo/src/mojo/public/cpp/system", 50 "//third_party/mojo/src/mojo/public/cpp/system",
50 ] 51 ]
51 52
52 if (is_linux) { 53 if (use_udev) {
53 deps += [ "//device/udev_linux" ] 54 deps += [ "//device/udev_linux" ]
54 } 55 }
55 if (is_chromeos) { 56 if (is_chromeos) {
56 deps += [ "//chromeos" ] 57 deps += [ "//chromeos" ]
57 } 58 }
58 } 59 }
59 60
60 # GYP version: device/serial/serial.gyp:device_serial_test_util 61 # GYP version: device/serial/serial.gyp:device_serial_test_util
61 static_library("test_support") { 62 static_library("test_support") {
62 sources = [ 63 sources = [
(...skipping 13 matching lines...) Expand all
76 "//extensions:extensions_renderer_resources_grit", 77 "//extensions:extensions_renderer_resources_grit",
77 ] 78 ]
78 79
79 sources = [ 80 sources = [
80 "data_stream.mojom", 81 "data_stream.mojom",
81 "data_stream_serialization.mojom", 82 "data_stream_serialization.mojom",
82 "serial.mojom", 83 "serial.mojom",
83 "serial_serialization.mojom", 84 "serial_serialization.mojom",
84 ] 85 ]
85 } 86 }
OLDNEW
« no previous file with comments | « device/hid/BUILD.gn ('k') | device/usb/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698