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

Side by Side Diff: components/storage_monitor/BUILD.gn

Issue 2333573003: //device/media_transfer_protocol depends on dbus (Closed)
Patch Set: Created 4 years, 3 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 | « chrome/browser/BUILD.gn ('k') | device/media_transfer_protocol/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("//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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 ] 49 ]
50 50
51 if (is_mac) { 51 if (is_mac) {
52 libs = [ 52 libs = [
53 "DiskArbitration.framework", 53 "DiskArbitration.framework",
54 "Foundation.framework", 54 "Foundation.framework",
55 "ImageCaptureCore.framework", 55 "ImageCaptureCore.framework",
56 ] 56 ]
57 } 57 }
58 58
59 if (is_linux) { 59 if (is_linux && use_dbus) {
60 deps += [ 60 deps += [
61 "//device/media_transfer_protocol", 61 "//device/media_transfer_protocol",
62 "//device/media_transfer_protocol:mtp_file_entry_proto", 62 "//device/media_transfer_protocol:mtp_file_entry_proto",
63 "//device/media_transfer_protocol:mtp_storage_info_proto", 63 "//device/media_transfer_protocol:mtp_storage_info_proto",
64 ] 64 ]
65 } 65 }
66 66
67 if (use_udev) { 67 if (use_udev) {
68 deps += [ "//device/udev_linux" ] 68 deps += [ "//device/udev_linux" ]
69 } else if (is_linux) { 69 } else if (is_linux) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 "test_volume_mount_watcher_win.cc", 104 "test_volume_mount_watcher_win.cc",
105 "test_volume_mount_watcher_win.h", 105 "test_volume_mount_watcher_win.h",
106 ] 106 ]
107 107
108 public_deps = [ 108 public_deps = [
109 ":storage_monitor", 109 ":storage_monitor",
110 "//base", 110 "//base",
111 "//content/public/browser", 111 "//content/public/browser",
112 ] 112 ]
113 113
114 if (is_linux) { 114 if (is_linux && use_dbus) {
115 deps = [ 115 deps = [
116 "//device/media_transfer_protocol", 116 "//device/media_transfer_protocol",
117 "//device/media_transfer_protocol:mtp_file_entry_proto", 117 "//device/media_transfer_protocol:mtp_file_entry_proto",
118 "//device/media_transfer_protocol:mtp_storage_info_proto", 118 "//device/media_transfer_protocol:mtp_storage_info_proto",
119 ] 119 ]
120 } 120 }
121 121
122 if (is_win) { 122 if (is_win) {
123 deps = [ 123 deps = [
124 "//testing/gtest", 124 "//testing/gtest",
(...skipping 14 matching lines...) Expand all
139 ] 139 ]
140 140
141 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 141 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
142 142
143 deps = [ 143 deps = [
144 ":test_support", 144 ":test_support",
145 "//content/test:test_support", 145 "//content/test:test_support",
146 "//testing/gtest", 146 "//testing/gtest",
147 ] 147 ]
148 148
149 if (is_linux) { 149 if (is_linux && use_dbus) {
150 deps += [ "//device/media_transfer_protocol" ] 150 deps += [ "//device/media_transfer_protocol" ]
151 if (!is_chromeos) { 151 if (!is_chromeos) {
152 sources += [ "storage_monitor_linux_unittest.cc" ] 152 sources += [ "storage_monitor_linux_unittest.cc" ]
153 } 153 }
154 } 154 }
155 if (is_chromeos) { 155 if (is_chromeos) {
156 sources += [ "storage_monitor_chromeos_unittest.cc" ] 156 sources += [ "storage_monitor_chromeos_unittest.cc" ]
157 deps += [ 157 deps += [
158 "//chromeos:test_support", 158 "//chromeos:test_support",
159 "//testing/gmock", 159 "//testing/gmock",
160 ] 160 ]
161 } 161 }
162 } 162 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | device/media_transfer_protocol/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698