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 "drive_api_util.cc", | 9 "drive_api_util.cc", |
10 "drive_api_util.h", | 10 "drive_api_util.h", |
11 "drive_app_registry.cc", | 11 "drive_app_registry.cc", |
12 "drive_app_registry.h", | 12 "drive_app_registry.h", |
13 "drive_app_registry_observer.h", | 13 "drive_app_registry_observer.h", |
14 "drive_notification_manager.cc", | 14 "drive_notification_manager.cc", |
15 "drive_notification_manager.h", | 15 "drive_notification_manager.h", |
16 "drive_notification_observer.h", | 16 "drive_notification_observer.h", |
17 "drive_pref_names.cc", | |
18 "drive_pref_names.h", | |
17 "drive_uploader.cc", | 19 "drive_uploader.cc", |
18 "drive_uploader.h", | 20 "drive_uploader.h", |
19 "event_logger.cc", | 21 "event_logger.cc", |
20 "event_logger.h", | 22 "event_logger.h", |
23 "file_change.cc", | |
24 "file_change.h", | |
25 "file_errors.cc", | |
26 "file_errors.h", | |
27 "local_file_reader.cc", | |
28 "local_file_reader.h", | |
21 "service/drive_api_service.cc", | 29 "service/drive_api_service.cc", |
22 "service/drive_api_service.h", | 30 "service/drive_api_service.h", |
23 "service/drive_service_interface.cc", | 31 "service/drive_service_interface.cc", |
24 "service/drive_service_interface.h", | 32 "service/drive_service_interface.h", |
25 ] | 33 ] |
26 deps = [ | 34 deps = [ |
27 "//base:base", | 35 "//base:base", |
28 "//components/invalidation/public", | 36 "//components/invalidation/public", |
29 | 37 |
30 # TODO(lukasza): Remove this dependency (see DEPS file for more info). | 38 # TODO(lukasza): Remove this dependency (see DEPS file for more info). |
31 "//content/public/browser:browser", | 39 "//content/public/browser:browser", |
32 | 40 |
33 "//google_apis:google_apis", | 41 "//google_apis:google_apis", |
34 "//net:net", | 42 "//net:net", |
35 | 43 |
36 # TODO(lukasza): Remove this dependency (see DEPS file for more info). | 44 # TODO(lukasza): Remove this dependency (see DEPS file for more info). |
37 "//storage/browser:browser", | 45 "//storage/browser:browser", |
38 | 46 |
39 "//third_party/re2:re2", | 47 "//third_party/re2:re2", |
40 ] | 48 ] |
41 public_deps = [ | 49 public_deps = [ |
42 ":proto", | 50 ":proto", |
43 ] | 51 ] |
44 } | 52 } |
45 | 53 |
46 proto_library("proto") { | 54 proto_library("proto") { |
47 visibility = [ ":drive" ] | 55 visibility = [ ":*" ] |
hashimoto
2015/07/23 06:01:15
Why do we need to maintain this line?
Łukasz Anforowicz
2015/07/27 17:53:27
This means that BUILD.gn targets from outside of c
hashimoto
2015/07/29 02:07:08
This "visibility" line was added by you in https:/
Łukasz Anforowicz
2015/08/03 21:30:48
Done. I don't see a compelling reason to keep thi
| |
48 sources = [ | 56 sources = [ |
49 "drive.proto", | 57 "drive.proto", |
50 ] | 58 ] |
51 } | 59 } |
52 | 60 |
53 source_set("test_support") { | 61 source_set("test_support") { |
54 testonly = true | 62 testonly = true |
55 sources = [ | 63 sources = [ |
64 "drive_test_util.cc", | |
65 "drive_test_util.h", | |
56 "service/dummy_drive_service.cc", | 66 "service/dummy_drive_service.cc", |
57 "service/dummy_drive_service.h", | 67 "service/dummy_drive_service.h", |
58 "service/fake_drive_service.cc", | 68 "service/fake_drive_service.cc", |
59 "service/fake_drive_service.h", | 69 "service/fake_drive_service.h", |
60 "service/test_util.cc", | 70 "service/test_util.cc", |
61 "service/test_util.h", | 71 "service/test_util.h", |
62 ] | 72 ] |
63 deps = [ | 73 deps = [ |
64 ":drive", | 74 ":drive", |
75 ":proto", | |
65 "//base:base", | 76 "//base:base", |
66 "//google_apis:google_apis", | 77 "//google_apis:google_apis", |
67 "//net:net", | 78 "//net:net", |
68 ] | 79 ] |
69 } | 80 } |
OLD | NEW |