OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 "env_mojo.cc", | 11 "env_mojo.cc", |
12 "env_mojo.h", | 12 "env_mojo.h", |
13 "leveldb_database_impl.cc", | 13 "leveldb_database_impl.cc", |
14 "leveldb_database_impl.h", | 14 "leveldb_database_impl.h", |
15 "leveldb_mojo_proxy.cc", | 15 "leveldb_mojo_proxy.cc", |
16 "leveldb_mojo_proxy.h", | 16 "leveldb_mojo_proxy.h", |
17 "leveldb_service_impl.cc", | 17 "leveldb_service_impl.cc", |
18 "leveldb_service_impl.h", | 18 "leveldb_service_impl.h", |
19 ] | 19 ] |
20 | 20 |
21 deps = [ | 21 deps = [ |
22 "//components/filesystem/public/interfaces", | 22 "//components/filesystem/public/interfaces", |
23 "//components/leveldb/public/cpp", | 23 "//components/leveldb/public/cpp", |
24 "//components/leveldb/public/interfaces", | 24 "//components/leveldb/public/interfaces", |
25 "//mojo/common", | 25 "//mojo/common", |
26 "//mojo/message_pump", | 26 "//mojo/message_pump", |
27 "//mojo/platform_handle", | 27 "//mojo/platform_handle", |
28 "//mojo/shell/public/cpp", | 28 "//services/shell/public/cpp", |
29 "//third_party/leveldatabase", | 29 "//third_party/leveldatabase", |
30 ] | 30 ] |
31 } | 31 } |
32 | 32 |
33 mojo_native_application("leveldb") { | 33 mojo_native_application("leveldb") { |
34 sources = [ | 34 sources = [ |
35 "leveldb_app.cc", | 35 "leveldb_app.cc", |
36 "leveldb_app.h", | 36 "leveldb_app.h", |
37 "main.cc", | 37 "main.cc", |
38 ] | 38 ] |
39 | 39 |
40 deps = [ | 40 deps = [ |
41 ":lib", | 41 ":lib", |
42 "//components/leveldb/public/interfaces", | 42 "//components/leveldb/public/interfaces", |
43 "//mojo/common", | 43 "//mojo/common", |
44 "//mojo/platform_handle:for_shared_library", | 44 "//mojo/platform_handle:for_shared_library", |
45 "//mojo/public/cpp/bindings", | 45 "//mojo/public/cpp/bindings", |
46 "//mojo/public/cpp/system", | 46 "//mojo/public/cpp/system", |
47 "//mojo/services/tracing/public/cpp", | 47 "//mojo/services/tracing/public/cpp", |
48 "//mojo/shell/public/cpp", | 48 "//services/shell/public/cpp", |
49 ] | 49 ] |
50 | 50 |
51 data_deps = [ | 51 data_deps = [ |
52 ":manifest", | 52 ":manifest", |
53 ] | 53 ] |
54 } | 54 } |
55 | 55 |
56 mojo_application_manifest("manifest") { | 56 mojo_application_manifest("manifest") { |
57 application_name = "leveldb" | 57 application_name = "leveldb" |
58 source = "manifest.json" | 58 source = "manifest.json" |
59 } | 59 } |
60 | 60 |
61 test("leveldb_service_unittests") { | 61 test("leveldb_service_unittests") { |
62 sources = [ | 62 sources = [ |
63 "leveldb_service_unittest.cc", | 63 "leveldb_service_unittest.cc", |
64 "remote_iterator_unittest.cc", | 64 "remote_iterator_unittest.cc", |
65 ] | 65 ] |
66 | 66 |
67 deps = [ | 67 deps = [ |
68 "//base", | 68 "//base", |
69 "//components/filesystem/public/interfaces", | 69 "//components/filesystem/public/interfaces", |
70 "//components/leveldb/public/cpp", | 70 "//components/leveldb/public/cpp", |
71 "//components/leveldb/public/interfaces", | 71 "//components/leveldb/public/interfaces", |
72 "//mojo/common", | 72 "//mojo/common", |
73 "//mojo/platform_handle", | 73 "//mojo/platform_handle", |
74 "//mojo/public/cpp/bindings", | 74 "//mojo/public/cpp/bindings", |
75 "//mojo/shell/public/cpp:shell_test_support", | 75 "//services/shell/public/cpp:shell_test_support", |
76 "//mojo/shell/public/cpp:sources", | 76 "//services/shell/public/cpp:sources", |
77 "//mojo/shell/public/cpp/test:run_all_shelltests", | 77 "//services/shell/public/cpp/test:run_all_shelltests", |
78 "//third_party/leveldatabase", | 78 "//third_party/leveldatabase", |
79 ] | 79 ] |
80 | 80 |
81 data_deps = [ | 81 data_deps = [ |
82 ":test_manifest", | 82 ":test_manifest", |
83 ":leveldb", | 83 ":leveldb", |
84 "//components/filesystem:filesystem", | 84 "//components/filesystem:filesystem", |
85 ] | 85 ] |
86 } | 86 } |
87 | 87 |
88 mojo_application_manifest("test_manifest") { | 88 mojo_application_manifest("test_manifest") { |
89 type = "exe" | 89 type = "exe" |
90 application_name = "leveldb_service_unittests" | 90 application_name = "leveldb_service_unittests" |
91 source = "test_manifest.json" | 91 source = "test_manifest.json" |
92 } | 92 } |
OLD | NEW |