• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2013 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.
4
5{
6  'variables': {
7    'chromium_code': 1,
8  },
9  'targets': [
10    {
11      # Protobuf compiler / generator for the MtpFileEntry and
12      # MtpFileEntries protocol buffers.
13      'target_name': 'mtp_file_entry_proto',
14      'type': 'static_library',
15      'sources': [
16        '../../third_party/cros_system_api/dbus/mtp_file_entry.proto',
17      ],
18      'variables': {
19        'proto_in_dir': '../../third_party/cros_system_api/dbus',
20        'proto_out_dir': 'device/media_transfer_protocol',
21      },
22      'includes': ['../../build/protoc.gypi'],
23    },
24    {
25      # Protobuf compiler / generator for the MtpStorageInfo protocol
26      # buffer.
27      'target_name': 'mtp_storage_info_proto',
28      'type': 'static_library',
29      'sources': [
30        '../../third_party/cros_system_api/dbus/mtp_storage_info.proto',
31      ],
32      'variables': {
33        'proto_in_dir': '../../third_party/cros_system_api/dbus',
34        'proto_out_dir': 'device/media_transfer_protocol',
35      },
36      'includes': ['../../build/protoc.gypi'],
37    },
38    {
39      'target_name': 'device_media_transfer_protocol',
40      'type': 'static_library',
41      'dependencies': [
42        '../../build/linux/system.gyp:dbus',
43        'mtp_file_entry_proto',
44        'mtp_storage_info_proto',
45      ],
46      'sources': [
47        'media_transfer_protocol_daemon_client.cc',
48        'media_transfer_protocol_daemon_client.h',
49        'media_transfer_protocol_manager.cc',
50        'media_transfer_protocol_manager.h',
51      ],
52    },
53  ],
54}
55