blob: 62924eff03211f132e4a2bcfb856e8a206d2fc4d [file] [log] [blame]
lukasza8acc4eb2015-07-20 20:57:201# Copyright (c) 2015 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
lukasza01b9d55a2015-07-21 15:19:255import("//third_party/protobuf/proto_library.gni")
6
brettw77617612016-07-13 22:40:067static_library("drive") {
lukasza8acc4eb2015-07-20 20:57:208 sources = [
9 "drive_api_util.cc",
10 "drive_api_util.h",
11 "drive_app_registry.cc",
12 "drive_app_registry.h",
13 "drive_app_registry_observer.h",
14 "drive_notification_manager.cc",
15 "drive_notification_manager.h",
16 "drive_notification_observer.h",
lukasza76b4a982015-08-08 00:36:3917 "drive_pref_names.cc",
18 "drive_pref_names.h",
lukasza8acc4eb2015-07-20 20:57:2019 "drive_uploader.cc",
20 "drive_uploader.h",
21 "event_logger.cc",
22 "event_logger.h",
lukasza76b4a982015-08-08 00:36:3923 "file_change.cc",
24 "file_change.h",
25 "file_errors.cc",
26 "file_errors.h",
yawano8bff65f02016-01-25 23:11:3127 "file_system_core_util.cc",
28 "file_system_core_util.h",
29 "file_system_metadata.cc",
30 "file_system_metadata.h",
31 "file_write_watcher.cc",
32 "file_write_watcher.h",
33 "job_list.cc",
34 "job_list.h",
35 "job_queue.cc",
36 "job_queue.h",
37 "job_scheduler.cc",
38 "job_scheduler.h",
39 "local_file_reader.cc",
40 "local_file_reader.h",
41 "resource_entry_conversion.cc",
42 "resource_entry_conversion.h",
43 "resource_metadata_storage.cc",
44 "resource_metadata_storage.h",
45 "service/drive_api_service.cc",
46 "service/drive_api_service.h",
47 "service/drive_service_interface.cc",
48 "service/drive_service_interface.h",
49 ]
50 deps = [
51 "//base",
52 "//base:i18n",
yawano8bff65f02016-01-25 23:11:3153 "//components/invalidation/public",
54 "//components/keyed_service/core",
brettw9f7802a22016-01-30 06:40:1755 "//components/prefs",
yawano8bff65f02016-01-25 23:11:3156
57 # TODO(lukasza): Remove this dependency (see DEPS file for more info).
58 "//content/public/browser",
59 "//google_apis:google_apis",
60 "//net:net",
Ke He31d0bb02018-02-24 07:16:2461 "//services/device/public/mojom",
yawano8bff65f02016-01-25 23:11:3162 "//third_party/cacheinvalidation",
63 "//third_party/leveldatabase",
64 "//third_party/re2",
65 ]
66 public_deps = [
67 ":proto",
68 ]
69}
70
lukasza01b9d55a2015-07-21 15:19:2571proto_library("proto") {
lukasza01b9d55a2015-07-21 15:19:2572 sources = [
73 "drive.proto",
74 ]
lukasza8acc4eb2015-07-20 20:57:2075}
76
brettw77617612016-07-13 22:40:0677static_library("test_support") {
lukasza8acc4eb2015-07-20 20:57:2078 testonly = true
79 sources = [
80 "service/dummy_drive_service.cc",
81 "service/dummy_drive_service.h",
82 "service/fake_drive_service.cc",
83 "service/fake_drive_service.h",
84 "service/test_util.cc",
85 "service/test_util.h",
86 ]
87 deps = [
88 ":drive",
lukasza76b4a982015-08-08 00:36:3989 ":proto",
brettw5b700b02015-10-24 00:20:2090 "//base",
brettw9f7802a22016-01-30 06:40:1791 "//components/prefs:test_support",
yawano14094072016-01-06 10:11:5192 "//content/test:test_support",
93 "//google_apis:test_support",
msramek4cfdf21b2016-01-06 11:59:0294 "//net:net",
yawano14094072016-01-06 10:11:5195 ]
96}
yawano8bff65f02016-01-25 23:11:3197
brettw77617612016-07-13 22:40:0698if (is_chromeos) {
dpranke79f7b782016-07-22 00:55:3499 source_set("drive_chromeos") {
100 sources = [
Stuart Langleyad8728c2018-04-19 04:05:56101 "chromeos/about_resource_loader.cc",
102 "chromeos/about_resource_loader.h",
Stuart Langley24e4ff52018-05-25 00:29:19103 "chromeos/about_resource_root_folder_id_loader.cc",
104 "chromeos/about_resource_root_folder_id_loader.h",
dpranke79f7b782016-07-22 00:55:34105 "chromeos/change_list_loader.cc",
106 "chromeos/change_list_loader.h",
107 "chromeos/change_list_loader_observer.h",
108 "chromeos/change_list_processor.cc",
109 "chromeos/change_list_processor.h",
Stuart Langley279b0d82018-05-23 04:24:47110 "chromeos/default_corpus_change_list_loader.cc",
111 "chromeos/default_corpus_change_list_loader.h",
dpranke79f7b782016-07-22 00:55:34112 "chromeos/directory_loader.cc",
113 "chromeos/directory_loader.h",
Stuart Langley279b0d82018-05-23 04:24:47114 "chromeos/drive_change_list_loader.h",
Stuart Langley22cca242018-05-18 05:59:12115 "chromeos/drive_file_util.cc",
116 "chromeos/drive_file_util.h",
dpranke79f7b782016-07-22 00:55:34117 "chromeos/file_cache.cc",
118 "chromeos/file_cache.h",
119 "chromeos/file_system.cc",
120 "chromeos/file_system.h",
121 "chromeos/file_system/copy_operation.cc",
122 "chromeos/file_system/copy_operation.h",
123 "chromeos/file_system/create_directory_operation.cc",
124 "chromeos/file_system/create_directory_operation.h",
125 "chromeos/file_system/create_file_operation.cc",
126 "chromeos/file_system/create_file_operation.h",
127 "chromeos/file_system/download_operation.cc",
128 "chromeos/file_system/download_operation.h",
129 "chromeos/file_system/get_file_for_saving_operation.cc",
130 "chromeos/file_system/get_file_for_saving_operation.h",
131 "chromeos/file_system/move_operation.cc",
132 "chromeos/file_system/move_operation.h",
133 "chromeos/file_system/open_file_operation.cc",
134 "chromeos/file_system/open_file_operation.h",
135 "chromeos/file_system/operation_delegate.cc",
136 "chromeos/file_system/operation_delegate.h",
137 "chromeos/file_system/remove_operation.cc",
138 "chromeos/file_system/remove_operation.h",
139 "chromeos/file_system/search_operation.cc",
140 "chromeos/file_system/search_operation.h",
141 "chromeos/file_system/set_property_operation.cc",
142 "chromeos/file_system/set_property_operation.h",
143 "chromeos/file_system/touch_operation.cc",
144 "chromeos/file_system/touch_operation.h",
145 "chromeos/file_system/truncate_operation.cc",
146 "chromeos/file_system/truncate_operation.h",
147 "chromeos/file_system_interface.cc",
148 "chromeos/file_system_interface.h",
149 "chromeos/file_system_observer.h",
Stuart Langleyf51f3412018-05-08 23:43:04150 "chromeos/loader_controller.cc",
151 "chromeos/loader_controller.h",
dpranke79f7b782016-07-22 00:55:34152 "chromeos/remove_stale_cache_files.cc",
153 "chromeos/remove_stale_cache_files.h",
154 "chromeos/resource_metadata.cc",
155 "chromeos/resource_metadata.h",
Stuart Langley24e4ff52018-05-25 00:29:19156 "chromeos/root_folder_id_loader.h",
dpranke79f7b782016-07-22 00:55:34157 "chromeos/search_metadata.cc",
158 "chromeos/search_metadata.h",
Stuart Langleyad8728c2018-04-19 04:05:56159 "chromeos/start_page_token_loader.cc",
160 "chromeos/start_page_token_loader.h",
dpranke79f7b782016-07-22 00:55:34161 "chromeos/sync/entry_revert_performer.cc",
162 "chromeos/sync/entry_revert_performer.h",
163 "chromeos/sync/entry_update_performer.cc",
164 "chromeos/sync/entry_update_performer.h",
165 "chromeos/sync/remove_performer.cc",
166 "chromeos/sync/remove_performer.h",
167 "chromeos/sync_client.cc",
168 "chromeos/sync_client.h",
Stuart Langley0037cef2018-05-25 00:52:57169 "chromeos/team_drive_list_loader.cc",
170 "chromeos/team_drive_list_loader.h",
dpranke79f7b782016-07-22 00:55:34171 ]
172 deps = [
173 ":drive",
174 "//base",
175 "//base:i18n",
176 "//components/prefs",
177 "//google_apis:google_apis",
178 "//net:net",
179 ]
180 public_deps = [
181 ":proto",
182 ]
183 }
brettw77617612016-07-13 22:40:06184 static_library("test_support_chromeos") {
185 testonly = true
186 sources = [
187 "chromeos/drive_test_util.cc",
188 "chromeos/drive_test_util.h",
189 "chromeos/dummy_file_system.cc",
190 "chromeos/dummy_file_system.h",
191 "chromeos/fake_file_system.cc",
192 "chromeos/fake_file_system.h",
193 "chromeos/fake_free_disk_space_getter.cc",
194 "chromeos/fake_free_disk_space_getter.h",
195 ]
196 deps = [
197 ":drive",
198 ":drive_chromeos",
199 ":proto",
200 "//base",
201 "//components/prefs:test_support",
202 "//content/test:test_support",
203 "//google_apis:test_support",
204 ]
205 }
yawano8bff65f02016-01-25 23:11:31206}