| OLD | NEW |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
| 6 | 6 |
| 7 source_set("drive") { | 7 source_set("drive") { |
| 8 sources = [ | 8 sources = [ |
| 9 "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", | |
| 16 "drive_api_util.cc", | 9 "drive_api_util.cc", |
| 17 "drive_api_util.h", | 10 "drive_api_util.h", |
| 18 "drive_app_registry.cc", | 11 "drive_app_registry.cc", |
| 19 "drive_app_registry.h", | 12 "drive_app_registry.h", |
| 20 "drive_app_registry_observer.h", | 13 "drive_app_registry_observer.h", |
| 21 "drive_notification_manager.cc", | 14 "drive_notification_manager.cc", |
| 22 "drive_notification_manager.h", | 15 "drive_notification_manager.h", |
| 23 "drive_notification_observer.h", | 16 "drive_notification_observer.h", |
| 24 "drive_pref_names.cc", | 17 "drive_pref_names.cc", |
| 25 "drive_pref_names.h", | 18 "drive_pref_names.h", |
| 26 "drive_uploader.cc", | 19 "drive_uploader.cc", |
| 27 "drive_uploader.h", | 20 "drive_uploader.h", |
| 28 "event_logger.cc", | 21 "event_logger.cc", |
| 29 "event_logger.h", | 22 "event_logger.h", |
| 30 "file_cache.cc", | |
| 31 "file_cache.h", | |
| 32 "file_change.cc", | 23 "file_change.cc", |
| 33 "file_change.h", | 24 "file_change.h", |
| 34 "file_errors.cc", | 25 "file_errors.cc", |
| 35 "file_errors.h", | 26 "file_errors.h", |
| 27 "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", |
| 53 "//base:prefs", |
| 54 "//components/invalidation/public", |
| 55 "//components/keyed_service/core", |
| 56 |
| 57 # TODO(lukasza): Remove this dependency (see DEPS file for more info). |
| 58 "//content/public/browser", |
| 59 "//google_apis:google_apis", |
| 60 "//net:net", |
| 61 "//third_party/cacheinvalidation", |
| 62 "//third_party/leveldatabase", |
| 63 "//third_party/re2", |
| 64 ] |
| 65 public_deps = [ |
| 66 ":proto", |
| 67 ] |
| 68 } |
| 69 |
| 70 source_set("drive_chromeos") { |
| 71 sources = [ |
| 72 "change_list_loader.cc", |
| 73 "change_list_loader.h", |
| 74 "change_list_loader_observer.h", |
| 75 "change_list_processor.cc", |
| 76 "change_list_processor.h", |
| 77 "directory_loader.cc", |
| 78 "directory_loader.h", |
| 79 "file_cache.cc", |
| 80 "file_cache.h", |
| 36 "file_system.cc", | 81 "file_system.cc", |
| 37 "file_system.h", | 82 "file_system.h", |
| 38 "file_system/copy_operation.cc", | 83 "file_system/copy_operation.cc", |
| 39 "file_system/copy_operation.h", | 84 "file_system/copy_operation.h", |
| 40 "file_system/create_directory_operation.cc", | 85 "file_system/create_directory_operation.cc", |
| 41 "file_system/create_directory_operation.h", | 86 "file_system/create_directory_operation.h", |
| 42 "file_system/create_file_operation.cc", | 87 "file_system/create_file_operation.cc", |
| 43 "file_system/create_file_operation.h", | 88 "file_system/create_file_operation.h", |
| 44 "file_system/download_operation.cc", | 89 "file_system/download_operation.cc", |
| 45 "file_system/download_operation.h", | 90 "file_system/download_operation.h", |
| 46 "file_system/get_file_for_saving_operation.cc", | 91 "file_system/get_file_for_saving_operation.cc", |
| 47 "file_system/get_file_for_saving_operation.h", | 92 "file_system/get_file_for_saving_operation.h", |
| 48 "file_system/move_operation.cc", | 93 "file_system/move_operation.cc", |
| 49 "file_system/move_operation.h", | 94 "file_system/move_operation.h", |
| 50 "file_system/open_file_operation.cc", | 95 "file_system/open_file_operation.cc", |
| 51 "file_system/open_file_operation.h", | 96 "file_system/open_file_operation.h", |
| 52 "file_system/operation_delegate.cc", | 97 "file_system/operation_delegate.cc", |
| 53 "file_system/operation_delegate.h", | 98 "file_system/operation_delegate.h", |
| 54 "file_system/remove_operation.cc", | 99 "file_system/remove_operation.cc", |
| 55 "file_system/remove_operation.h", | 100 "file_system/remove_operation.h", |
| 56 "file_system/search_operation.cc", | 101 "file_system/search_operation.cc", |
| 57 "file_system/search_operation.h", | 102 "file_system/search_operation.h", |
| 58 "file_system/set_property_operation.cc", | 103 "file_system/set_property_operation.cc", |
| 59 "file_system/set_property_operation.h", | 104 "file_system/set_property_operation.h", |
| 60 "file_system/touch_operation.cc", | 105 "file_system/touch_operation.cc", |
| 61 "file_system/touch_operation.h", | 106 "file_system/touch_operation.h", |
| 62 "file_system/truncate_operation.cc", | 107 "file_system/truncate_operation.cc", |
| 63 "file_system/truncate_operation.h", | 108 "file_system/truncate_operation.h", |
| 64 "file_system_core_util.cc", | |
| 65 "file_system_core_util.h", | |
| 66 "file_system_interface.cc", | 109 "file_system_interface.cc", |
| 67 "file_system_interface.h", | 110 "file_system_interface.h", |
| 68 "file_system_metadata.cc", | |
| 69 "file_system_metadata.h", | |
| 70 "file_system_observer.h", | 111 "file_system_observer.h", |
| 71 "file_write_watcher.cc", | |
| 72 "file_write_watcher.h", | |
| 73 "job_list.cc", | |
| 74 "job_list.h", | |
| 75 "job_queue.cc", | |
| 76 "job_queue.h", | |
| 77 "job_scheduler.cc", | |
| 78 "job_scheduler.h", | |
| 79 "local_file_reader.cc", | |
| 80 "local_file_reader.h", | |
| 81 "remove_stale_cache_files.cc", | 112 "remove_stale_cache_files.cc", |
| 82 "remove_stale_cache_files.h", | 113 "remove_stale_cache_files.h", |
| 83 "resource_entry_conversion.cc", | |
| 84 "resource_entry_conversion.h", | |
| 85 "resource_metadata.cc", | 114 "resource_metadata.cc", |
| 86 "resource_metadata.h", | 115 "resource_metadata.h", |
| 87 "resource_metadata_storage.cc", | |
| 88 "resource_metadata_storage.h", | |
| 89 "search_metadata.cc", | 116 "search_metadata.cc", |
| 90 "search_metadata.h", | 117 "search_metadata.h", |
| 91 "service/drive_api_service.cc", | |
| 92 "service/drive_api_service.h", | |
| 93 "service/drive_service_interface.cc", | |
| 94 "service/drive_service_interface.h", | |
| 95 "sync/entry_revert_performer.cc", | 118 "sync/entry_revert_performer.cc", |
| 96 "sync/entry_revert_performer.h", | 119 "sync/entry_revert_performer.h", |
| 97 "sync/entry_update_performer.cc", | 120 "sync/entry_update_performer.cc", |
| 98 "sync/entry_update_performer.h", | 121 "sync/entry_update_performer.h", |
| 99 "sync/remove_performer.cc", | 122 "sync/remove_performer.cc", |
| 100 "sync/remove_performer.h", | 123 "sync/remove_performer.h", |
| 101 "sync_client.cc", | 124 "sync_client.cc", |
| 102 "sync_client.h", | 125 "sync_client.h", |
| 103 ] | 126 ] |
| 104 deps = [ | 127 deps = [ |
| 128 ":drive", |
| 105 "//base", | 129 "//base", |
| 106 "//base:i18n", | 130 "//base:i18n", |
| 107 "//base:prefs", | 131 "//base:prefs", |
| 108 "//components/invalidation/public", | |
| 109 "//components/keyed_service/core", | |
| 110 | |
| 111 # TODO(lukasza): Remove this dependency (see DEPS file for more info). | |
| 112 "//content/public/browser", | |
| 113 "//google_apis:google_apis", | 132 "//google_apis:google_apis", |
| 114 "//net:net", | 133 "//net:net", |
| 115 "//third_party/cacheinvalidation", | |
| 116 "//third_party/leveldatabase", | |
| 117 "//third_party/re2", | |
| 118 ] | 134 ] |
| 119 public_deps = [ | 135 public_deps = [ |
| 120 ":proto", | 136 ":proto", |
| 121 ] | 137 ] |
| 122 } | 138 } |
| 123 | 139 |
| 124 proto_library("proto") { | 140 proto_library("proto") { |
| 125 sources = [ | 141 sources = [ |
| 126 "drive.proto", | 142 "drive.proto", |
| 127 ] | 143 ] |
| 128 } | 144 } |
| 129 | 145 |
| 130 source_set("test_support") { | 146 source_set("test_support") { |
| 131 testonly = true | 147 testonly = true |
| 132 sources = [ | 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", |
| 158 ":proto", |
| 159 "//base", |
| 160 "//base:prefs_test_support", |
| 161 "//content/test:test_support", |
| 162 "//google_apis:test_support", |
| 163 "//net:net", |
| 164 ] |
| 165 } |
| 166 |
| 167 source_set("test_support_chromeos") { |
| 168 testonly = true |
| 169 sources = [ |
| 133 "drive_test_util.cc", | 170 "drive_test_util.cc", |
| 134 "drive_test_util.h", | 171 "drive_test_util.h", |
| 135 "dummy_file_system.cc", | 172 "dummy_file_system.cc", |
| 136 "dummy_file_system.h", | 173 "dummy_file_system.h", |
| 137 "fake_file_system.cc", | 174 "fake_file_system.cc", |
| 138 "fake_file_system.h", | 175 "fake_file_system.h", |
| 139 "fake_free_disk_space_getter.cc", | 176 "fake_free_disk_space_getter.cc", |
| 140 "fake_free_disk_space_getter.h", | 177 "fake_free_disk_space_getter.h", |
| 141 "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 ] | 178 ] |
| 148 deps = [ | 179 deps = [ |
| 149 ":drive", | 180 ":drive", |
| 181 ":drive_chromeos", |
| 150 ":proto", | 182 ":proto", |
| 151 "//base", | 183 "//base", |
| 152 "//base:prefs_test_support", | 184 "//base:prefs_test_support", |
| 153 "//content/test:test_support", | 185 "//content/test:test_support", |
| 154 "//google_apis:test_support", | 186 "//google_apis:test_support", |
| 155 "//net:net", | |
| 156 ] | 187 ] |
| 157 } | 188 } |
| OLD | NEW |