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/tools/bindings/mojom.gni") | |
7 | 6 |
8 mojo_native_application("files") { | 7 mojo_native_application("files") { |
9 sources = [ | 8 sources = [ |
10 "directory_impl.cc", | 9 "directory_impl.cc", |
11 "directory_impl.h", | 10 "directory_impl.h", |
12 "file_impl.cc", | 11 "file_impl.cc", |
13 "file_impl.h", | 12 "file_impl.h", |
14 "files_impl.cc", | 13 "files_impl.cc", |
15 "files_impl.h", | 14 "files_impl.h", |
16 "futimens.h", | 15 "futimens.h", |
17 "futimens_android.cc", | 16 "futimens_android.cc", |
18 "main.cc", | 17 "main.cc", |
19 "shared_impl.cc", | 18 "shared_impl.cc", |
20 "shared_impl.h", | 19 "shared_impl.h", |
21 "util.cc", | 20 "util.cc", |
22 "util.h", | 21 "util.h", |
23 ] | 22 ] |
24 | 23 |
25 deps = [ | 24 deps = [ |
26 ":bindings", | |
27 "//base", | 25 "//base", |
28 "//mojo/application", | 26 "//mojo/application", |
29 "//mojo/common", | 27 "//mojo/common", |
30 "//mojo/public/cpp/application", | 28 "//mojo/public/cpp/application", |
31 "//mojo/public/cpp/bindings:callback", | 29 "//mojo/public/cpp/bindings:callback", |
32 "//mojo/public/cpp/system", | 30 "//mojo/public/cpp/system", |
| 31 "//mojo/services/files/public/interfaces", |
33 ] | 32 ] |
34 } | 33 } |
35 | 34 |
36 mojom("bindings") { | |
37 sources = [ | |
38 "directory.mojom", | |
39 "file.mojom", | |
40 "files.mojom", | |
41 "types.mojom", | |
42 ] | |
43 } | |
44 | |
45 mojo_native_application("apptests") { | 35 mojo_native_application("apptests") { |
46 output_name = "files_apptests" | 36 output_name = "files_apptests" |
47 | 37 |
48 testonly = true | 38 testonly = true |
49 | 39 |
50 sources = [ | 40 sources = [ |
51 "directory_impl_unittest.cc", | 41 "directory_impl_unittest.cc", |
52 "file_impl_unittest.cc", | 42 "file_impl_unittest.cc", |
53 "files_test_base.h", | 43 "files_test_base.h", |
54 ] | 44 ] |
55 | 45 |
56 deps = [ | 46 deps = [ |
57 ":bindings", | |
58 "//base", | 47 "//base", |
59 "//mojo/application", | 48 "//mojo/application", |
60 "//mojo/application:test_support", | 49 "//mojo/application:test_support", |
61 "//mojo/public/cpp/bindings", | 50 "//mojo/public/cpp/bindings", |
| 51 "//mojo/services/files/public/interfaces", |
62 ] | 52 ] |
63 | 53 |
64 data_deps = [ ":files($default_toolchain)" ] | 54 data_deps = [ ":files($default_toolchain)" ] |
65 } | 55 } |
OLD | NEW |