Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / device / media_transfer_protocol / BUILD.gn
bloba36c606e93bb675e245b24bb993685e8eaa10d4e
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
3 # found in the LICENSE file.
5 import("//third_party/protobuf/proto_library.gni")
7 # GYP version: device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_file_entry_proto
8 proto_library("mtp_file_entry_proto") {
9   sources = [
10     "//third_party/cros_system_api/dbus/mtp_file_entry.proto",
11   ]
12   proto_out_dir = "device/media_transfer_protocol"
15 # GYP version: device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_storage_info_proto
16 proto_library("mtp_storage_info_proto") {
17   sources = [
18     "//third_party/cros_system_api/dbus/mtp_storage_info.proto",
19   ]
20   proto_out_dir = "device/media_transfer_protocol"
23 # GYP version: device/media_transfer_protocol:media_transfer_protocol.gyp:media_transfer_protocol
24 static_library("media_transfer_protocol") {
25   sources = [
26     "media_transfer_protocol_daemon_client.cc",
27     "media_transfer_protocol_daemon_client.h",
28     "media_transfer_protocol_manager.cc",
29     "media_transfer_protocol_manager.h",
30   ]
32   public_deps = [
33     ":mtp_file_entry_proto",
34     ":mtp_storage_info_proto",
35     "//base",
36   ]
37   deps = [
38     "//dbus",
39   ]
41   if (is_chromeos) {
42     deps += [ "//chromeos" ]
43   }