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 static_library("drive") { | 7 static_library("drive") { |
8 sources = [ | 8 sources = [ |
9 "drive_api_util.cc", | 9 "drive_api_util.cc", |
10 "drive_api_util.h", | 10 "drive_api_util.h", |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 "//net:net", | 61 "//net:net", |
62 "//third_party/cacheinvalidation", | 62 "//third_party/cacheinvalidation", |
63 "//third_party/leveldatabase", | 63 "//third_party/leveldatabase", |
64 "//third_party/re2", | 64 "//third_party/re2", |
65 ] | 65 ] |
66 public_deps = [ | 66 public_deps = [ |
67 ":proto", | 67 ":proto", |
68 ] | 68 ] |
69 } | 69 } |
70 | 70 |
71 static_library("drive_chromeos") { | |
72 sources = [ | |
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", | |
127 ] | |
128 deps = [ | |
129 ":drive", | |
130 "//base", | |
131 "//base:i18n", | |
132 "//components/prefs", | |
133 "//google_apis:google_apis", | |
134 "//net:net", | |
135 ] | |
136 public_deps = [ | |
137 ":proto", | |
138 ] | |
139 } | |
140 | |
141 proto_library("proto") { | 71 proto_library("proto") { |
142 sources = [ | 72 sources = [ |
143 "drive.proto", | 73 "drive.proto", |
144 ] | 74 ] |
145 } | 75 } |
146 | 76 |
147 static_library("test_support") { | 77 static_library("test_support") { |
148 testonly = true | 78 testonly = true |
149 sources = [ | 79 sources = [ |
150 "service/dummy_drive_service.cc", | 80 "service/dummy_drive_service.cc", |
151 "service/dummy_drive_service.h", | 81 "service/dummy_drive_service.h", |
152 "service/fake_drive_service.cc", | 82 "service/fake_drive_service.cc", |
153 "service/fake_drive_service.h", | 83 "service/fake_drive_service.h", |
154 "service/test_util.cc", | 84 "service/test_util.cc", |
155 "service/test_util.h", | 85 "service/test_util.h", |
156 ] | 86 ] |
157 deps = [ | 87 deps = [ |
158 ":drive", | 88 ":drive", |
159 ":proto", | 89 ":proto", |
160 "//base", | 90 "//base", |
161 "//components/prefs:test_support", | 91 "//components/prefs:test_support", |
162 "//content/test:test_support", | 92 "//content/test:test_support", |
163 "//google_apis:test_support", | 93 "//google_apis:test_support", |
164 "//net:net", | 94 "//net:net", |
165 ] | 95 ] |
166 } | 96 } |
167 | 97 |
168 if (is_chromeos) { | 98 if (is_chromeos) { |
| 99 source_set("drive_chromeos") { |
| 100 sources = [ |
| 101 "chromeos/change_list_loader.cc", |
| 102 "chromeos/change_list_loader.h", |
| 103 "chromeos/change_list_loader_observer.h", |
| 104 "chromeos/change_list_processor.cc", |
| 105 "chromeos/change_list_processor.h", |
| 106 "chromeos/directory_loader.cc", |
| 107 "chromeos/directory_loader.h", |
| 108 "chromeos/file_cache.cc", |
| 109 "chromeos/file_cache.h", |
| 110 "chromeos/file_system.cc", |
| 111 "chromeos/file_system.h", |
| 112 "chromeos/file_system/copy_operation.cc", |
| 113 "chromeos/file_system/copy_operation.h", |
| 114 "chromeos/file_system/create_directory_operation.cc", |
| 115 "chromeos/file_system/create_directory_operation.h", |
| 116 "chromeos/file_system/create_file_operation.cc", |
| 117 "chromeos/file_system/create_file_operation.h", |
| 118 "chromeos/file_system/download_operation.cc", |
| 119 "chromeos/file_system/download_operation.h", |
| 120 "chromeos/file_system/get_file_for_saving_operation.cc", |
| 121 "chromeos/file_system/get_file_for_saving_operation.h", |
| 122 "chromeos/file_system/move_operation.cc", |
| 123 "chromeos/file_system/move_operation.h", |
| 124 "chromeos/file_system/open_file_operation.cc", |
| 125 "chromeos/file_system/open_file_operation.h", |
| 126 "chromeos/file_system/operation_delegate.cc", |
| 127 "chromeos/file_system/operation_delegate.h", |
| 128 "chromeos/file_system/remove_operation.cc", |
| 129 "chromeos/file_system/remove_operation.h", |
| 130 "chromeos/file_system/search_operation.cc", |
| 131 "chromeos/file_system/search_operation.h", |
| 132 "chromeos/file_system/set_property_operation.cc", |
| 133 "chromeos/file_system/set_property_operation.h", |
| 134 "chromeos/file_system/touch_operation.cc", |
| 135 "chromeos/file_system/touch_operation.h", |
| 136 "chromeos/file_system/truncate_operation.cc", |
| 137 "chromeos/file_system/truncate_operation.h", |
| 138 "chromeos/file_system_interface.cc", |
| 139 "chromeos/file_system_interface.h", |
| 140 "chromeos/file_system_observer.h", |
| 141 "chromeos/remove_stale_cache_files.cc", |
| 142 "chromeos/remove_stale_cache_files.h", |
| 143 "chromeos/resource_metadata.cc", |
| 144 "chromeos/resource_metadata.h", |
| 145 "chromeos/search_metadata.cc", |
| 146 "chromeos/search_metadata.h", |
| 147 "chromeos/sync/entry_revert_performer.cc", |
| 148 "chromeos/sync/entry_revert_performer.h", |
| 149 "chromeos/sync/entry_update_performer.cc", |
| 150 "chromeos/sync/entry_update_performer.h", |
| 151 "chromeos/sync/remove_performer.cc", |
| 152 "chromeos/sync/remove_performer.h", |
| 153 "chromeos/sync_client.cc", |
| 154 "chromeos/sync_client.h", |
| 155 ] |
| 156 deps = [ |
| 157 ":drive", |
| 158 "//base", |
| 159 "//base:i18n", |
| 160 "//components/prefs", |
| 161 "//google_apis:google_apis", |
| 162 "//net:net", |
| 163 ] |
| 164 public_deps = [ |
| 165 ":proto", |
| 166 ] |
| 167 } |
169 static_library("test_support_chromeos") { | 168 static_library("test_support_chromeos") { |
170 testonly = true | 169 testonly = true |
171 sources = [ | 170 sources = [ |
172 "chromeos/drive_test_util.cc", | 171 "chromeos/drive_test_util.cc", |
173 "chromeos/drive_test_util.h", | 172 "chromeos/drive_test_util.h", |
174 "chromeos/dummy_file_system.cc", | 173 "chromeos/dummy_file_system.cc", |
175 "chromeos/dummy_file_system.h", | 174 "chromeos/dummy_file_system.h", |
176 "chromeos/fake_file_system.cc", | 175 "chromeos/fake_file_system.cc", |
177 "chromeos/fake_file_system.h", | 176 "chromeos/fake_file_system.h", |
178 "chromeos/fake_free_disk_space_getter.cc", | 177 "chromeos/fake_free_disk_space_getter.cc", |
179 "chromeos/fake_free_disk_space_getter.h", | 178 "chromeos/fake_free_disk_space_getter.h", |
180 ] | 179 ] |
181 deps = [ | 180 deps = [ |
182 ":drive", | 181 ":drive", |
183 ":drive_chromeos", | 182 ":drive_chromeos", |
184 ":proto", | 183 ":proto", |
185 "//base", | 184 "//base", |
186 "//components/prefs:test_support", | 185 "//components/prefs:test_support", |
187 "//content/test:test_support", | 186 "//content/test:test_support", |
188 "//google_apis:test_support", | 187 "//google_apis:test_support", |
189 ] | 188 ] |
190 } | 189 } |
191 } | 190 } |
OLD | NEW |