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("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 source_set("lib") { | 9 source_set("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 "util.cc", | 19 "util.cc", |
20 "util.h", | 20 "util.h", |
21 ] | 21 ] |
22 | 22 |
23 deps = [ | 23 deps = [ |
24 "//base", | 24 "//base", |
25 "//components/filesystem/public/interfaces", | 25 "//components/filesystem/public/interfaces", |
26 "//mojo/common", | 26 "//mojo/common", |
27 "//mojo/common:common_base", | 27 "//mojo/common:common_base", |
28 "//mojo/platform_handle", | 28 "//mojo/platform_handle", |
29 "//mojo/shell/public/cpp", | 29 "//services/shell/public/cpp", |
30 "//mojo/shell/public/interfaces", | 30 "//services/shell/public/interfaces", |
31 "//url", | 31 "//url", |
32 ] | 32 ] |
33 } | 33 } |
34 | 34 |
35 mojo_native_application("filesystem") { | 35 mojo_native_application("filesystem") { |
36 sources = [ | 36 sources = [ |
37 "file_system_app.cc", | 37 "file_system_app.cc", |
38 "file_system_app.h", | 38 "file_system_app.h", |
39 "main.cc", | 39 "main.cc", |
40 ] | 40 ] |
41 | 41 |
42 deps = [ | 42 deps = [ |
43 ":lib", | 43 ":lib", |
44 "//base", | 44 "//base", |
45 "//components/filesystem/public/interfaces", | 45 "//components/filesystem/public/interfaces", |
46 "//mojo/common", | 46 "//mojo/common", |
47 "//mojo/platform_handle:for_shared_library", | 47 "//mojo/platform_handle:for_shared_library", |
48 "//mojo/public/cpp/bindings", | 48 "//mojo/public/cpp/bindings", |
49 "//mojo/public/cpp/system", | 49 "//mojo/public/cpp/system", |
50 "//mojo/services/tracing/public/cpp", | 50 "//mojo/services/tracing/public/cpp", |
51 "//mojo/shell/public/cpp", | 51 "//services/shell/public/cpp", |
52 ] | 52 ] |
53 | 53 |
54 data_deps = [ | 54 data_deps = [ |
55 ":manifest", | 55 ":manifest", |
56 ] | 56 ] |
57 } | 57 } |
58 | 58 |
59 mojo_application_manifest("manifest") { | 59 mojo_application_manifest("manifest") { |
60 application_name = "filesystem" | 60 application_name = "filesystem" |
61 source = "manifest.json" | 61 source = "manifest.json" |
62 } | 62 } |
63 | 63 |
64 test("unittests") { | 64 test("unittests") { |
65 output_name = "filesystem_service_unittests" | 65 output_name = "filesystem_service_unittests" |
66 | 66 |
67 sources = [ | 67 sources = [ |
68 "directory_impl_unittest.cc", | 68 "directory_impl_unittest.cc", |
69 "file_impl_unittest.cc", | 69 "file_impl_unittest.cc", |
70 "files_test_base.cc", | 70 "files_test_base.cc", |
71 "files_test_base.h", | 71 "files_test_base.h", |
72 ] | 72 ] |
73 | 73 |
74 deps = [ | 74 deps = [ |
75 "//base", | 75 "//base", |
76 "//components/filesystem/public/interfaces", | 76 "//components/filesystem/public/interfaces", |
77 "//mojo/common", | 77 "//mojo/common", |
78 "//mojo/platform_handle", | 78 "//mojo/platform_handle", |
79 "//mojo/public/cpp/bindings", | 79 "//mojo/public/cpp/bindings", |
80 "//mojo/shell/public/cpp:shell_test_support", | 80 "//services/shell/public/cpp:shell_test_support", |
81 "//mojo/shell/public/cpp:sources", | 81 "//services/shell/public/cpp:sources", |
82 "//mojo/shell/public/cpp/test:run_all_shelltests", | 82 "//services/shell/public/cpp/test:run_all_shelltests", |
83 ] | 83 ] |
84 | 84 |
85 data_deps = [ | 85 data_deps = [ |
86 ":test_manifest", | 86 ":test_manifest", |
87 ":filesystem", | 87 ":filesystem", |
88 ] | 88 ] |
89 } | 89 } |
90 | 90 |
91 mojo_application_manifest("test_manifest") { | 91 mojo_application_manifest("test_manifest") { |
92 type = "exe" | 92 type = "exe" |
93 application_name = "filesystem_service_unittests" | 93 application_name = "filesystem_service_unittests" |
94 source = "test_manifest.json" | 94 source = "test_manifest.json" |
95 } | 95 } |
OLD | NEW |