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

Unified Diff: device/media_transfer_protocol/BUILD.gn

Issue 2009983002: Guard dbus component and config with assert(use_dbus) (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Remove unnecessary //dbus when //dbus:test_support exists Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dbus/BUILD.gn ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/media_transfer_protocol/BUILD.gn
diff --git a/device/media_transfer_protocol/BUILD.gn b/device/media_transfer_protocol/BUILD.gn
index a36c606e93bb675e245b24bb993685e8eaa10d4e..57cb8957e9ed16d218c45d7c8022fd9e8b4ff243 100644
--- a/device/media_transfer_protocol/BUILD.gn
+++ b/device/media_transfer_protocol/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
import("//third_party/protobuf/proto_library.gni")
# GYP version: device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_file_entry_proto
@@ -34,9 +35,11 @@ static_library("media_transfer_protocol") {
":mtp_storage_info_proto",
"//base",
]
- deps = [
- "//dbus",
- ]
+ if (use_dbus) {
+ deps = [
+ "//dbus",
+ ]
+ }
if (is_chromeos) {
deps += [ "//chromeos" ]
« no previous file with comments | « dbus/BUILD.gn ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698