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