Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: components/drive/BUILD.gn

Issue 1606013005: Compile FileCache related files only on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move test_support_chromeos to c/b/chromeos. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/drive.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # TODO(yawano): move these files under components/drive/chromeos.
72 sources = [
73 "change_list_loader.cc",
74 "change_list_loader.h",
75 "change_list_loader_observer.h",
76 "change_list_processor.cc",
77 "change_list_processor.h",
78 "directory_loader.cc",
79 "directory_loader.h",
80 "file_cache.cc",
81 "file_cache.h",
36 "file_system.cc", 82 "file_system.cc",
37 "file_system.h", 83 "file_system.h",
38 "file_system/copy_operation.cc", 84 "file_system/copy_operation.cc",
39 "file_system/copy_operation.h", 85 "file_system/copy_operation.h",
40 "file_system/create_directory_operation.cc", 86 "file_system/create_directory_operation.cc",
41 "file_system/create_directory_operation.h", 87 "file_system/create_directory_operation.h",
42 "file_system/create_file_operation.cc", 88 "file_system/create_file_operation.cc",
43 "file_system/create_file_operation.h", 89 "file_system/create_file_operation.h",
44 "file_system/download_operation.cc", 90 "file_system/download_operation.cc",
45 "file_system/download_operation.h", 91 "file_system/download_operation.h",
46 "file_system/get_file_for_saving_operation.cc", 92 "file_system/get_file_for_saving_operation.cc",
47 "file_system/get_file_for_saving_operation.h", 93 "file_system/get_file_for_saving_operation.h",
48 "file_system/move_operation.cc", 94 "file_system/move_operation.cc",
49 "file_system/move_operation.h", 95 "file_system/move_operation.h",
50 "file_system/open_file_operation.cc", 96 "file_system/open_file_operation.cc",
51 "file_system/open_file_operation.h", 97 "file_system/open_file_operation.h",
52 "file_system/operation_delegate.cc", 98 "file_system/operation_delegate.cc",
53 "file_system/operation_delegate.h", 99 "file_system/operation_delegate.h",
54 "file_system/remove_operation.cc", 100 "file_system/remove_operation.cc",
55 "file_system/remove_operation.h", 101 "file_system/remove_operation.h",
56 "file_system/search_operation.cc", 102 "file_system/search_operation.cc",
57 "file_system/search_operation.h", 103 "file_system/search_operation.h",
58 "file_system/set_property_operation.cc", 104 "file_system/set_property_operation.cc",
59 "file_system/set_property_operation.h", 105 "file_system/set_property_operation.h",
60 "file_system/touch_operation.cc", 106 "file_system/touch_operation.cc",
61 "file_system/touch_operation.h", 107 "file_system/touch_operation.h",
62 "file_system/truncate_operation.cc", 108 "file_system/truncate_operation.cc",
63 "file_system/truncate_operation.h", 109 "file_system/truncate_operation.h",
64 "file_system_core_util.cc",
65 "file_system_core_util.h",
66 "file_system_interface.cc", 110 "file_system_interface.cc",
67 "file_system_interface.h", 111 "file_system_interface.h",
68 "file_system_metadata.cc",
69 "file_system_metadata.h",
70 "file_system_observer.h", 112 "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", 113 "remove_stale_cache_files.cc",
82 "remove_stale_cache_files.h", 114 "remove_stale_cache_files.h",
83 "resource_entry_conversion.cc",
84 "resource_entry_conversion.h",
85 "resource_metadata.cc", 115 "resource_metadata.cc",
86 "resource_metadata.h", 116 "resource_metadata.h",
87 "resource_metadata_storage.cc",
88 "resource_metadata_storage.h",
89 "search_metadata.cc", 117 "search_metadata.cc",
90 "search_metadata.h", 118 "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", 119 "sync/entry_revert_performer.cc",
96 "sync/entry_revert_performer.h", 120 "sync/entry_revert_performer.h",
97 "sync/entry_update_performer.cc", 121 "sync/entry_update_performer.cc",
98 "sync/entry_update_performer.h", 122 "sync/entry_update_performer.h",
99 "sync/remove_performer.cc", 123 "sync/remove_performer.cc",
100 "sync/remove_performer.h", 124 "sync/remove_performer.h",
101 "sync_client.cc", 125 "sync_client.cc",
102 "sync_client.h", 126 "sync_client.h",
103 ] 127 ]
104 deps = [ 128 deps = [
129 ":drive",
105 "//base", 130 "//base",
106 "//base:i18n", 131 "//base:i18n",
107 "//base:prefs", 132 "//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", 133 "//google_apis:google_apis",
114 "//net:net", 134 "//net:net",
115 "//third_party/cacheinvalidation",
116 "//third_party/leveldatabase",
117 "//third_party/re2",
118 ] 135 ]
119 public_deps = [ 136 public_deps = [
120 ":proto", 137 ":proto",
121 ] 138 ]
122 } 139 }
123 140
124 proto_library("proto") { 141 proto_library("proto") {
125 sources = [ 142 sources = [
126 "drive.proto", 143 "drive.proto",
127 ] 144 ]
128 } 145 }
129 146
130 source_set("test_support") { 147 source_set("test_support") {
131 testonly = true 148 testonly = true
132 sources = [ 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",
159 ":proto",
160 "//base",
161 "//base:prefs_test_support",
162 "//content/test:test_support",
163 "//google_apis:test_support",
164 "//net:net",
165 ]
166 }
167
168 source_set("test_support_chromeos") {
169 testonly = true
170 sources = [
133 "drive_test_util.cc", 171 "drive_test_util.cc",
134 "drive_test_util.h", 172 "drive_test_util.h",
135 "dummy_file_system.cc", 173 "dummy_file_system.cc",
136 "dummy_file_system.h", 174 "dummy_file_system.h",
137 "fake_file_system.cc", 175 "fake_file_system.cc",
138 "fake_file_system.h", 176 "fake_file_system.h",
139 "fake_free_disk_space_getter.cc", 177 "fake_free_disk_space_getter.cc",
140 "fake_free_disk_space_getter.h", 178 "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 ] 179 ]
148 deps = [ 180 deps = [
149 ":drive", 181 ":drive",
182 ":drive_chromeos",
150 ":proto", 183 ":proto",
151 "//base", 184 "//base",
152 "//base:prefs_test_support", 185 "//base:prefs_test_support",
153 "//content/test:test_support", 186 "//content/test:test_support",
154 "//google_apis:test_support", 187 "//google_apis:test_support",
155 "//net:net",
156 ] 188 ]
157 } 189 }
OLDNEW
« no previous file with comments | « components/drive.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698