lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 1 | # 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 | |
lukasza | 01b9d55a | 2015-07-21 15:19:25 | [diff] [blame] | 5 | import("//third_party/protobuf/proto_library.gni") |
| 6 | |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 7 | source_set("drive") { |
| 8 | 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", |
lukasza | 76b4a98 | 2015-08-08 00:36:39 | [diff] [blame] | 17 | "drive_pref_names.cc", |
| 18 | "drive_pref_names.h", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 19 | "drive_uploader.cc", |
| 20 | "drive_uploader.h", |
| 21 | "event_logger.cc", |
| 22 | "event_logger.h", |
lukasza | 76b4a98 | 2015-08-08 00:36:39 | [diff] [blame] | 23 | "file_change.cc", |
| 24 | "file_change.h", |
| 25 | "file_errors.cc", |
| 26 | "file_errors.h", |
lukasza | 6364a02 | 2015-08-21 01:13:24 | [diff] [blame] | 27 | "file_system_core_util.cc", |
| 28 | "file_system_core_util.h", |
lukasza | 3fb2262 | 2015-08-27 21:04:34 | [diff] [blame] | 29 | "file_system_metadata.cc", |
| 30 | "file_system_metadata.h", |
| 31 | "file_write_watcher.cc", |
| 32 | "file_write_watcher.h", |
lukasza | b371ff4f | 2015-08-13 18:23:47 | [diff] [blame] | 33 | "job_list.cc", |
| 34 | "job_list.h", |
| 35 | "job_queue.cc", |
| 36 | "job_queue.h", |
| 37 | "job_scheduler.cc", |
| 38 | "job_scheduler.h", |
lukasza | 76b4a98 | 2015-08-08 00:36:39 | [diff] [blame] | 39 | "local_file_reader.cc", |
| 40 | "local_file_reader.h", |
lukasza | 6364a02 | 2015-08-21 01:13:24 | [diff] [blame] | 41 | "resource_entry_conversion.cc", |
| 42 | "resource_entry_conversion.h", |
lukasza | 6364a02 | 2015-08-21 01:13:24 | [diff] [blame] | 43 | "resource_metadata_storage.cc", |
| 44 | "resource_metadata_storage.h", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 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 = [ |
brettw | eab63a5 | 2015-10-22 23:47:36 | [diff] [blame] | 51 | "//base", |
| 52 | "//base:i18n", |
| 53 | "//base:prefs", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 54 | "//components/invalidation/public", |
brettw | eab63a5 | 2015-10-22 23:47:36 | [diff] [blame] | 55 | "//components/keyed_service/core", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 56 | |
| 57 | # TODO(lukasza): Remove this dependency (see DEPS file for more info). |
brettw | eab63a5 | 2015-10-22 23:47:36 | [diff] [blame] | 58 | "//content/public/browser", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 59 | "//google_apis:google_apis", |
| 60 | "//net:net", |
brettw | eab63a5 | 2015-10-22 23:47:36 | [diff] [blame] | 61 | "//third_party/cacheinvalidation", |
| 62 | "//third_party/leveldatabase", |
| 63 | "//third_party/re2", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 64 | ] |
lukasza | 01b9d55a | 2015-07-21 15:19:25 | [diff] [blame] | 65 | public_deps = [ |
| 66 | ":proto", |
| 67 | ] |
| 68 | } |
| 69 | |
yawano | 1409407 | 2016-01-06 10:11:51 | [diff] [blame^] | 70 | source_set("drive_chromeos") { |
| 71 | sources = [ |
| 72 | "chromeos/change_list_loader.cc", |
| 73 | "chromeos/change_list_loader.h", |
| 74 | "chromeos/change_list_loader_observer.h", |
| 75 | "chromeos/change_list_processor.cc", |
| 76 | "chromeos/change_list_processor.h", |
| 77 | "chromeos/directory_loader.cc", |
| 78 | "chromeos/directory_loader.h", |
| 79 | "chromeos/file_cache.cc", |
| 80 | "chromeos/file_cache.h", |
| 81 | "chromeos/file_system.cc", |
| 82 | "chromeos/file_system.h", |
| 83 | "chromeos/file_system/copy_operation.cc", |
| 84 | "chromeos/file_system/copy_operation.h", |
| 85 | "chromeos/file_system/create_directory_operation.cc", |
| 86 | "chromeos/file_system/create_directory_operation.h", |
| 87 | "chromeos/file_system/create_file_operation.cc", |
| 88 | "chromeos/file_system/create_file_operation.h", |
| 89 | "chromeos/file_system/download_operation.cc", |
| 90 | "chromeos/file_system/download_operation.h", |
| 91 | "chromeos/file_system/get_file_for_saving_operation.cc", |
| 92 | "chromeos/file_system/get_file_for_saving_operation.h", |
| 93 | "chromeos/file_system/move_operation.cc", |
| 94 | "chromeos/file_system/move_operation.h", |
| 95 | "chromeos/file_system/open_file_operation.cc", |
| 96 | "chromeos/file_system/open_file_operation.h", |
| 97 | "chromeos/file_system/operation_delegate.cc", |
| 98 | "chromeos/file_system/operation_delegate.h", |
| 99 | "chromeos/file_system/remove_operation.cc", |
| 100 | "chromeos/file_system/remove_operation.h", |
| 101 | "chromeos/file_system/search_operation.cc", |
| 102 | "chromeos/file_system/search_operation.h", |
| 103 | "chromeos/file_system/set_property_operation.cc", |
| 104 | "chromeos/file_system/set_property_operation.h", |
| 105 | "chromeos/file_system/touch_operation.cc", |
| 106 | "chromeos/file_system/touch_operation.h", |
| 107 | "chromeos/file_system/truncate_operation.cc", |
| 108 | "chromeos/file_system/truncate_operation.h", |
| 109 | "chromeos/file_system_interface.cc", |
| 110 | "chromeos/file_system_interface.h", |
| 111 | "chromeos/file_system_observer.h", |
| 112 | "chromeos/remove_stale_cache_files.cc", |
| 113 | "chromeos/remove_stale_cache_files.h", |
| 114 | "chromeos/resource_metadata.cc", |
| 115 | "chromeos/resource_metadata.h", |
| 116 | "chromeos/search_metadata.cc", |
| 117 | "chromeos/search_metadata.h", |
| 118 | "chromeos/sync/entry_revert_performer.cc", |
| 119 | "chromeos/sync/entry_revert_performer.h", |
| 120 | "chromeos/sync/entry_update_performer.cc", |
| 121 | "chromeos/sync/entry_update_performer.h", |
| 122 | "chromeos/sync/remove_performer.cc", |
| 123 | "chromeos/sync/remove_performer.h", |
| 124 | "chromeos/sync_client.cc", |
| 125 | "chromeos/sync_client.h", |
| 126 | ] |
| 127 | deps = [ |
| 128 | ":drive", |
| 129 | "//base", |
| 130 | "//base:i18n", |
| 131 | "//base:prefs", |
| 132 | "//google_apis:google_apis", |
| 133 | "//net:net", |
| 134 | ] |
| 135 | public_deps = [ |
| 136 | ":proto", |
| 137 | ] |
| 138 | } |
| 139 | |
lukasza | 01b9d55a | 2015-07-21 15:19:25 | [diff] [blame] | 140 | proto_library("proto") { |
lukasza | 01b9d55a | 2015-07-21 15:19:25 | [diff] [blame] | 141 | sources = [ |
| 142 | "drive.proto", |
| 143 | ] |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | source_set("test_support") { |
| 147 | testonly = true |
| 148 | sources = [ |
| 149 | "service/dummy_drive_service.cc", |
| 150 | "service/dummy_drive_service.h", |
| 151 | "service/fake_drive_service.cc", |
| 152 | "service/fake_drive_service.h", |
| 153 | "service/test_util.cc", |
| 154 | "service/test_util.h", |
| 155 | ] |
| 156 | deps = [ |
| 157 | ":drive", |
lukasza | 76b4a98 | 2015-08-08 00:36:39 | [diff] [blame] | 158 | ":proto", |
brettw | 5b700b0 | 2015-10-24 00:20:20 | [diff] [blame] | 159 | "//base", |
lukasza | 76b4a98 | 2015-08-08 00:36:39 | [diff] [blame] | 160 | "//content/test:test_support", |
brettw | 5b700b0 | 2015-10-24 00:20:20 | [diff] [blame] | 161 | "//google_apis:test_support", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 162 | "//net:net", |
| 163 | ] |
| 164 | } |
yawano | 1409407 | 2016-01-06 10:11:51 | [diff] [blame^] | 165 | |
| 166 | source_set("test_support_chromeos") { |
| 167 | testonly = true |
| 168 | sources = [ |
| 169 | "chromeos/drive_test_util.cc", |
| 170 | "chromeos/drive_test_util.h", |
| 171 | "chromeos/dummy_file_system.cc", |
| 172 | "chromeos/dummy_file_system.h", |
| 173 | "chromeos/fake_file_system.cc", |
| 174 | "chromeos/fake_file_system.h", |
| 175 | "chromeos/fake_free_disk_space_getter.cc", |
| 176 | "chromeos/fake_free_disk_space_getter.h", |
| 177 | ] |
| 178 | deps = [ |
| 179 | ":drive", |
| 180 | ":drive_chromeos", |
| 181 | "//base", |
| 182 | "//base:prefs", |
| 183 | "//base:prefs_test_support", |
| 184 | "//content/test:test_support", |
| 185 | "//google_apis:test_support", |
| 186 | ] |
| 187 | } |