summaryrefslogtreecommitdiffstats
path: root/components/drive.gypi
blob: 781f54617a0208b197a04af53871f70468ac12cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      # GN version: //components/drive:drive
      'target_name': 'drive',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        'drive_proto',
        '../base/base.gyp:base',
        '../components/components.gyp:invalidation_public',

        # TODO(lukasza): Remove this dependency (see DEPS file for more info).
        '../content/content.gyp:content_browser',

        '../google_apis/google_apis.gyp:google_apis',
        '../net/net.gyp:net',
        '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
        '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
        '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
        '../third_party/re2/re2.gyp:re2',
      ],
      'sources': [
        'drive/change_list_loader.cc',
        'drive/change_list_loader.h',
        'drive/change_list_loader_observer.h',
        'drive/change_list_processor.cc',
        'drive/change_list_processor.h',
        'drive/directory_loader.cc',
        'drive/directory_loader.h',
        'drive/drive_api_util.cc',
        'drive/drive_api_util.h',
        'drive/drive_app_registry.cc',
        'drive/drive_app_registry.h',
        'drive/drive_app_registry_observer.h',
        'drive/drive_notification_manager.cc',
        'drive/drive_notification_manager.h',
        'drive/drive_notification_observer.h',
        'drive/drive_pref_names.cc',
        'drive/drive_pref_names.h',
        'drive/drive_uploader.cc',
        'drive/drive_uploader.h',
        'drive/event_logger.cc',
        'drive/event_logger.h',
        'drive/file_cache.cc',
        'drive/file_cache.h',
        'drive/file_change.cc',
        'drive/file_change.h',
        'drive/file_errors.cc',
        'drive/file_errors.h',
        'drive/file_system.cc',
        'drive/file_system.h',
        'drive/file_system/copy_operation.cc',
        'drive/file_system/copy_operation.h',
        'drive/file_system/create_directory_operation.cc',
        'drive/file_system/create_directory_operation.h',
        'drive/file_system/create_file_operation.cc',
        'drive/file_system/create_file_operation.h',
        'drive/file_system/download_operation.cc',
        'drive/file_system/download_operation.h',
        'drive/file_system/get_file_for_saving_operation.cc',
        'drive/file_system/get_file_for_saving_operation.h',
        'drive/file_system/move_operation.cc',
        'drive/file_system/move_operation.h',
        'drive/file_system/open_file_operation.cc',
        'drive/file_system/open_file_operation.h',
        'drive/file_system/operation_delegate.cc',
        'drive/file_system/operation_delegate.h',
        'drive/file_system/remove_operation.cc',
        'drive/file_system/remove_operation.h',
        'drive/file_system/search_operation.cc',
        'drive/file_system/search_operation.h',
        'drive/file_system/set_property_operation.cc',
        'drive/file_system/set_property_operation.h',
        'drive/file_system/touch_operation.cc',
        'drive/file_system/touch_operation.h',
        'drive/file_system/truncate_operation.cc',
        'drive/file_system/truncate_operation.h',
        'drive/file_system_core_util.cc',
        'drive/file_system_core_util.h',
        'drive/file_system_interface.cc',
        'drive/file_system_interface.h',
        'drive/file_system_metadata.cc',
        'drive/file_system_metadata.h',
        'drive/file_system_observer.h',
        'drive/file_write_watcher.cc',
        'drive/file_write_watcher.h',
        'drive/job_list.cc',
        'drive/job_list.h',
        'drive/job_queue.cc',
        'drive/job_queue.h',
        'drive/job_scheduler.cc',
        'drive/job_scheduler.h',
        'drive/local_file_reader.cc',
        'drive/local_file_reader.h',
        'drive/remove_stale_cache_files.cc',
        'drive/remove_stale_cache_files.h',
        'drive/resource_entry_conversion.cc',
        'drive/resource_entry_conversion.h',
        'drive/resource_metadata.cc',
        'drive/resource_metadata.h',
        'drive/resource_metadata_storage.cc',
        'drive/resource_metadata_storage.h',
        'drive/search_metadata.cc',
        'drive/search_metadata.h',
        'drive/service/drive_api_service.cc',
        'drive/service/drive_api_service.h',
        'drive/service/drive_service_interface.cc',
        'drive/service/drive_service_interface.h',
        'drive/sync/entry_revert_performer.cc',
        'drive/sync/entry_revert_performer.h',
        'drive/sync/entry_update_performer.cc',
        'drive/sync/entry_update_performer.h',
        'drive/sync/remove_performer.cc',
        'drive/sync/remove_performer.h',
        'drive/sync_client.cc',
        'drive/sync_client.h',
      ],
    },

    {
      # GN version: //components/drive:proto
      # Protobuf compiler / generator for the Drive protocol buffer.
      'target_name': 'drive_proto',
      'type': 'static_library',
      'sources': [ 'drive/drive.proto' ],
      'variables': {
        'proto_in_dir': 'drive',
        'proto_out_dir': 'components/drive',
      },
      'includes': [ '../build/protoc.gypi' ]
    },

    {
      # GN version: //components/drive:test_support
      'target_name': 'drive_test_support',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        'drive',
        'drive_proto',
        '../base/base.gyp:base',
        '../content/content_shell_and_tests.gyp:test_support_content',
        '../google_apis/google_apis.gyp:google_apis',
        '../net/net.gyp:net',
      ],
      'sources': [
        "drive/drive_test_util.cc",
        "drive/drive_test_util.h",
        "drive/dummy_file_system.cc",
        "drive/dummy_file_system.h",
        "drive/fake_file_system.cc",
        "drive/fake_file_system.h",
        "drive/fake_free_disk_space_getter.cc",
        "drive/fake_free_disk_space_getter.h",
        "drive/service/dummy_drive_service.cc",
        "drive/service/dummy_drive_service.h",
        "drive/service/fake_drive_service.cc",
        "drive/service/fake_drive_service.h",
        "drive/service/test_util.cc",
        "drive/service/test_util.h",
      ],
    },

    # TODO(lukasza): drive_unittests target.
    # Currently tests are built as part of chrome/chrome_tests_unit.gypi.
  ],
}