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("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
6 | 7 |
7 # GYP version: device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_fi
le_entry_proto | 8 # GYP version: device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_fi
le_entry_proto |
8 proto_library("mtp_file_entry_proto") { | 9 proto_library("mtp_file_entry_proto") { |
9 sources = [ | 10 sources = [ |
10 "//third_party/cros_system_api/dbus/mtp_file_entry.proto", | 11 "//third_party/cros_system_api/dbus/mtp_file_entry.proto", |
11 ] | 12 ] |
12 proto_out_dir = "device/media_transfer_protocol" | 13 proto_out_dir = "device/media_transfer_protocol" |
13 } | 14 } |
14 | 15 |
(...skipping 12 matching lines...) Expand all Loading... |
27 "media_transfer_protocol_daemon_client.h", | 28 "media_transfer_protocol_daemon_client.h", |
28 "media_transfer_protocol_manager.cc", | 29 "media_transfer_protocol_manager.cc", |
29 "media_transfer_protocol_manager.h", | 30 "media_transfer_protocol_manager.h", |
30 ] | 31 ] |
31 | 32 |
32 public_deps = [ | 33 public_deps = [ |
33 ":mtp_file_entry_proto", | 34 ":mtp_file_entry_proto", |
34 ":mtp_storage_info_proto", | 35 ":mtp_storage_info_proto", |
35 "//base", | 36 "//base", |
36 ] | 37 ] |
37 deps = [ | 38 if (use_dbus) { |
38 "//dbus", | 39 deps = [ |
39 ] | 40 "//dbus", |
| 41 ] |
| 42 } |
40 | 43 |
41 if (is_chromeos) { | 44 if (is_chromeos) { |
42 deps += [ "//chromeos" ] | 45 deps += [ "//chromeos" ] |
43 } | 46 } |
44 } | 47 } |
OLD | NEW |