blob: c1957fb2f8fd0cc23c2a71bcdf1ab500ec06811c [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
lukasza8acc4eb2015-07-20 20:57:207source_set("drive") {
8 sources = [
msramek4cfdf21b2016-01-06 11:59:029 "change_list_loader.cc",
10 "change_list_loader.h",
11 "change_list_loader_observer.h",
12 "change_list_processor.cc",
13 "change_list_processor.h",
14 "directory_loader.cc",
15 "directory_loader.h",
lukasza8acc4eb2015-07-20 20:57:2016 "drive_api_util.cc",
17 "drive_api_util.h",
18 "drive_app_registry.cc",
19 "drive_app_registry.h",
20 "drive_app_registry_observer.h",
21 "drive_notification_manager.cc",
22 "drive_notification_manager.h",
23 "drive_notification_observer.h",
lukasza76b4a982015-08-08 00:36:3924 "drive_pref_names.cc",
25 "drive_pref_names.h",
lukasza8acc4eb2015-07-20 20:57:2026 "drive_uploader.cc",
27 "drive_uploader.h",
28 "event_logger.cc",
29 "event_logger.h",
msramek4cfdf21b2016-01-06 11:59:0230 "file_cache.cc",
31 "file_cache.h",
lukasza76b4a982015-08-08 00:36:3932 "file_change.cc",
33 "file_change.h",
34 "file_errors.cc",
35 "file_errors.h",
msramek4cfdf21b2016-01-06 11:59:0236 "file_system.cc",
37 "file_system.h",
38 "file_system/copy_operation.cc",
39 "file_system/copy_operation.h",
40 "file_system/create_directory_operation.cc",
41 "file_system/create_directory_operation.h",
42 "file_system/create_file_operation.cc",
43 "file_system/create_file_operation.h",
44 "file_system/download_operation.cc",
45 "file_system/download_operation.h",
46 "file_system/get_file_for_saving_operation.cc",
47 "file_system/get_file_for_saving_operation.h",
48 "file_system/move_operation.cc",
49 "file_system/move_operation.h",
50 "file_system/open_file_operation.cc",
51 "file_system/open_file_operation.h",
52 "file_system/operation_delegate.cc",
53 "file_system/operation_delegate.h",
54 "file_system/remove_operation.cc",
55 "file_system/remove_operation.h",
56 "file_system/search_operation.cc",
57 "file_system/search_operation.h",
58 "file_system/set_property_operation.cc",
59 "file_system/set_property_operation.h",
60 "file_system/touch_operation.cc",
61 "file_system/touch_operation.h",
62 "file_system/truncate_operation.cc",
63 "file_system/truncate_operation.h",
lukasza6364a022015-08-21 01:13:2464 "file_system_core_util.cc",
65 "file_system_core_util.h",
msramek4cfdf21b2016-01-06 11:59:0266 "file_system_interface.cc",
67 "file_system_interface.h",
lukasza3fb22622015-08-27 21:04:3468 "file_system_metadata.cc",
69 "file_system_metadata.h",
msramek4cfdf21b2016-01-06 11:59:0270 "file_system_observer.h",
lukasza3fb22622015-08-27 21:04:3471 "file_write_watcher.cc",
72 "file_write_watcher.h",
lukaszab371ff4f2015-08-13 18:23:4773 "job_list.cc",
74 "job_list.h",
75 "job_queue.cc",
76 "job_queue.h",
77 "job_scheduler.cc",
78 "job_scheduler.h",
lukasza76b4a982015-08-08 00:36:3979 "local_file_reader.cc",
80 "local_file_reader.h",
msramek4cfdf21b2016-01-06 11:59:0281 "remove_stale_cache_files.cc",
82 "remove_stale_cache_files.h",
lukasza6364a022015-08-21 01:13:2483 "resource_entry_conversion.cc",
84 "resource_entry_conversion.h",
msramek4cfdf21b2016-01-06 11:59:0285 "resource_metadata.cc",
86 "resource_metadata.h",
lukasza6364a022015-08-21 01:13:2487 "resource_metadata_storage.cc",
88 "resource_metadata_storage.h",
msramek4cfdf21b2016-01-06 11:59:0289 "search_metadata.cc",
90 "search_metadata.h",
lukasza8acc4eb2015-07-20 20:57:2091 "service/drive_api_service.cc",
92 "service/drive_api_service.h",
93 "service/drive_service_interface.cc",
94 "service/drive_service_interface.h",
msramek4cfdf21b2016-01-06 11:59:0295 "sync/entry_revert_performer.cc",
96 "sync/entry_revert_performer.h",
97 "sync/entry_update_performer.cc",
98 "sync/entry_update_performer.h",
99 "sync/remove_performer.cc",
100 "sync/remove_performer.h",
101 "sync_client.cc",
102 "sync_client.h",
lukasza8acc4eb2015-07-20 20:57:20103 ]
104 deps = [
brettweab63a52015-10-22 23:47:36105 "//base",
106 "//base:i18n",
107 "//base:prefs",
lukasza8acc4eb2015-07-20 20:57:20108 "//components/invalidation/public",
brettweab63a52015-10-22 23:47:36109 "//components/keyed_service/core",
lukasza8acc4eb2015-07-20 20:57:20110
111 # TODO(lukasza): Remove this dependency (see DEPS file for more info).
brettweab63a52015-10-22 23:47:36112 "//content/public/browser",
lukasza8acc4eb2015-07-20 20:57:20113 "//google_apis:google_apis",
114 "//net:net",
brettweab63a52015-10-22 23:47:36115 "//third_party/cacheinvalidation",
116 "//third_party/leveldatabase",
117 "//third_party/re2",
lukasza8acc4eb2015-07-20 20:57:20118 ]
lukasza01b9d55a2015-07-21 15:19:25119 public_deps = [
120 ":proto",
121 ]
122}
123
124proto_library("proto") {
lukasza01b9d55a2015-07-21 15:19:25125 sources = [
126 "drive.proto",
127 ]
lukasza8acc4eb2015-07-20 20:57:20128}
129
130source_set("test_support") {
131 testonly = true
132 sources = [
msramek4cfdf21b2016-01-06 11:59:02133 "drive_test_util.cc",
134 "drive_test_util.h",
135 "dummy_file_system.cc",
136 "dummy_file_system.h",
137 "fake_file_system.cc",
138 "fake_file_system.h",
139 "fake_free_disk_space_getter.cc",
140 "fake_free_disk_space_getter.h",
lukasza8acc4eb2015-07-20 20:57:20141 "service/dummy_drive_service.cc",
142 "service/dummy_drive_service.h",
143 "service/fake_drive_service.cc",
144 "service/fake_drive_service.h",
145 "service/test_util.cc",
146 "service/test_util.h",
147 ]
148 deps = [
149 ":drive",
lukasza76b4a982015-08-08 00:36:39150 ":proto",
brettw5b700b02015-10-24 00:20:20151 "//base",
yawano14094072016-01-06 10:11:51152 "//base:prefs_test_support",
153 "//content/test:test_support",
154 "//google_apis:test_support",
msramek4cfdf21b2016-01-06 11:59:02155 "//net:net",
yawano14094072016-01-06 10:11:51156 ]
157}