OLD | NEW |
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("//build/config/features.gni") |
6 | 6 |
7 # GYP version: components/storage_monitor.gypi:storage_monitor | 7 # GYP version: components/storage_monitor.gypi:storage_monitor |
8 static_library("storage_monitor") { | 8 static_library("storage_monitor") { |
9 sources = [ | 9 sources = [ |
10 "image_capture_device.h", | 10 "image_capture_device.h", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 "//device/media_transfer_protocol", | 59 "//device/media_transfer_protocol", |
60 "//device/media_transfer_protocol:mtp_file_entry_proto", | 60 "//device/media_transfer_protocol:mtp_file_entry_proto", |
61 "//device/media_transfer_protocol:mtp_storage_info_proto", | 61 "//device/media_transfer_protocol:mtp_storage_info_proto", |
62 ] | 62 ] |
63 } | 63 } |
64 | 64 |
65 if (use_udev) { | 65 if (use_udev) { |
66 deps += [ | 66 deps += [ |
67 "//device/udev_linux", | 67 "//device/udev_linux", |
68 ] | 68 ] |
69 } else if (is_linux) { | 69 } else { |
70 # These were already removed for non-Linux. | |
71 sources -= [ | 70 sources -= [ |
72 "storage_monitor_linux.cc", | 71 "storage_monitor_linux.cc", |
73 "storage_monitor_linux.h", | 72 "storage_monitor_linux.h", |
74 "udev_util_linux.cc", | 73 "udev_util_linux.cc", |
75 "udev_util_linux.h", | 74 "udev_util_linux.h", |
76 ] | 75 ] |
77 } | 76 } |
78 | 77 |
79 if (is_chromeos) { | 78 if (is_chromeos) { |
80 sources -= [ | 79 sources -= [ |
(...skipping 27 matching lines...) Expand all Loading... |
108 ":storage_monitor", | 107 ":storage_monitor", |
109 ] | 108 ] |
110 | 109 |
111 if (is_linux) { | 110 if (is_linux) { |
112 deps += [ | 111 deps += [ |
113 "//device/media_transfer_protocol", | 112 "//device/media_transfer_protocol", |
114 "//device/media_transfer_protocol:mtp_file_entry_proto", | 113 "//device/media_transfer_protocol:mtp_file_entry_proto", |
115 ] | 114 ] |
116 } | 115 } |
117 } | 116 } |
OLD | NEW |