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 { | 69 } else if (is_linux) { |
| 70 # These were already removed for non-Linux. |
70 sources -= [ | 71 sources -= [ |
71 "storage_monitor_linux.cc", | 72 "storage_monitor_linux.cc", |
72 "storage_monitor_linux.h", | 73 "storage_monitor_linux.h", |
73 "udev_util_linux.cc", | 74 "udev_util_linux.cc", |
74 "udev_util_linux.h", | 75 "udev_util_linux.h", |
75 ] | 76 ] |
76 } | 77 } |
77 | 78 |
78 if (is_chromeos) { | 79 if (is_chromeos) { |
79 sources -= [ | 80 sources -= [ |
(...skipping 27 matching lines...) Expand all Loading... |
107 ":storage_monitor", | 108 ":storage_monitor", |
108 ] | 109 ] |
109 | 110 |
110 if (is_linux) { | 111 if (is_linux) { |
111 deps += [ | 112 deps += [ |
112 "//device/media_transfer_protocol", | 113 "//device/media_transfer_protocol", |
113 "//device/media_transfer_protocol:mtp_file_entry_proto", | 114 "//device/media_transfer_protocol:mtp_file_entry_proto", |
114 ] | 115 ] |
115 } | 116 } |
116 } | 117 } |
OLD | NEW |