OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//services/shell/public/cpp/service.gni") | 5 import("//services/service_manager/public/cpp/service.gni") |
6 import("//services/shell/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 static_library("lib") { | 9 static_library("lib") { |
10 sources = [ | 10 sources = [ |
11 "directory_impl.cc", | 11 "directory_impl.cc", |
12 "directory_impl.h", | 12 "directory_impl.h", |
13 "file_impl.cc", | 13 "file_impl.cc", |
14 "file_impl.h", | 14 "file_impl.h", |
15 "file_system_impl.cc", | 15 "file_system_impl.cc", |
16 "file_system_impl.h", | 16 "file_system_impl.h", |
17 "lock_table.cc", | 17 "lock_table.cc", |
18 "lock_table.h", | 18 "lock_table.h", |
19 "shared_temp_dir.cc", | 19 "shared_temp_dir.cc", |
20 "shared_temp_dir.h", | 20 "shared_temp_dir.h", |
21 "util.cc", | 21 "util.cc", |
22 "util.h", | 22 "util.h", |
23 ] | 23 ] |
24 | 24 |
25 deps = [ | 25 deps = [ |
26 "//base", | 26 "//base", |
27 "//components/filesystem/public/interfaces", | 27 "//components/filesystem/public/interfaces", |
28 "//mojo/common", | 28 "//mojo/common", |
29 "//mojo/common:common_base", | 29 "//mojo/common:common_base", |
30 "//mojo/public/cpp/system", | 30 "//mojo/public/cpp/system", |
31 "//services/shell/public/cpp", | 31 "//services/service_manager/public/cpp", |
32 "//services/shell/public/interfaces", | 32 "//services/service_manager/public/interfaces", |
33 "//url", | 33 "//url", |
34 ] | 34 ] |
35 } | 35 } |
36 | 36 |
37 service("filesystem") { | 37 service("filesystem") { |
38 sources = [ | 38 sources = [ |
39 "file_system_app.cc", | 39 "file_system_app.cc", |
40 "file_system_app.h", | 40 "file_system_app.h", |
41 "main.cc", | 41 "main.cc", |
42 ] | 42 ] |
43 | 43 |
44 deps = [ | 44 deps = [ |
45 ":lib", | 45 ":lib", |
46 "//base", | 46 "//base", |
47 "//components/filesystem/public/interfaces", | 47 "//components/filesystem/public/interfaces", |
48 "//mojo/common", | 48 "//mojo/common", |
49 "//mojo/public/cpp/bindings", | 49 "//mojo/public/cpp/bindings", |
50 "//mojo/public/cpp/system", | 50 "//mojo/public/cpp/system", |
51 "//services/shell/public/cpp", | 51 "//services/service_manager/public/cpp", |
52 "//services/tracing/public/cpp", | 52 "//services/tracing/public/cpp", |
53 ] | 53 ] |
54 | 54 |
55 data_deps = [ | 55 data_deps = [ |
56 ":manifest", | 56 ":manifest", |
57 ] | 57 ] |
58 } | 58 } |
59 | 59 |
60 service_manifest("manifest") { | 60 service_manifest("manifest") { |
61 name = "filesystem" | 61 name = "filesystem" |
62 source = "manifest.json" | 62 source = "manifest.json" |
63 } | 63 } |
64 | 64 |
65 test("filesystem_service_unittests") { | 65 test("filesystem_service_unittests") { |
66 sources = [ | 66 sources = [ |
67 "directory_impl_unittest.cc", | 67 "directory_impl_unittest.cc", |
68 "file_impl_unittest.cc", | 68 "file_impl_unittest.cc", |
69 "files_test_base.cc", | 69 "files_test_base.cc", |
70 "files_test_base.h", | 70 "files_test_base.h", |
71 ] | 71 ] |
72 | 72 |
73 deps = [ | 73 deps = [ |
74 "//base", | 74 "//base", |
75 "//components/filesystem/public/interfaces", | 75 "//components/filesystem/public/interfaces", |
76 "//mojo/common", | 76 "//mojo/common", |
77 "//mojo/public/cpp/bindings", | 77 "//mojo/public/cpp/bindings", |
78 "//mojo/public/cpp/system", | 78 "//mojo/public/cpp/system", |
79 "//services/shell/public/cpp:service_test_support", | 79 "//services/service_manager/public/cpp:service_test_support", |
80 "//services/shell/public/cpp:sources", | 80 "//services/service_manager/public/cpp:sources", |
81 "//services/shell/public/cpp/test:run_all_shelltests", | 81 "//services/service_manager/public/cpp/test:run_all_shelltests", |
82 ] | 82 ] |
83 | 83 |
84 data_deps = [ | 84 data_deps = [ |
85 ":test_manifest", | 85 ":test_manifest", |
86 ":filesystem", | 86 ":filesystem", |
87 ] | 87 ] |
88 } | 88 } |
89 | 89 |
90 service_manifest("test_manifest") { | 90 service_manifest("test_manifest") { |
91 type = "exe" | 91 type = "exe" |
92 name = "filesystem_service_unittests" | 92 name = "filesystem_service_unittests" |
93 source = "test_manifest.json" | 93 source = "test_manifest.json" |
94 } | 94 } |
OLD | NEW |