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("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 source_set("lifecycle") { | 10 source_set("lifecycle") { |
11 testonly = true | 11 testonly = true |
12 sources = [ | 12 sources = [ |
13 "lifecycle_unittest.cc", | 13 "lifecycle_unittest.cc", |
14 ] | 14 ] |
15 deps = [ | 15 deps = [ |
16 ":interfaces", | 16 ":interfaces", |
17 ":manifest", | |
18 "//base", | 17 "//base", |
19 "//base/test:test_support", | 18 "//base/test:test_support", |
20 "//mojo/edk/system", | 19 "//mojo/edk/system", |
21 "//mojo/shell/public/cpp:shell_test_support", | 20 "//mojo/shell/public/cpp:shell_test_support", |
22 "//mojo/shell/public/cpp:sources", | 21 "//mojo/shell/public/cpp:sources", |
23 "//mojo/shell/public/interfaces", | 22 "//mojo/shell/public/interfaces", |
24 "//mojo/shell/runner/common", | 23 "//mojo/shell/runner/common", |
25 ] | 24 ] |
26 | 25 |
27 data_deps = [ | 26 data_deps = [ |
28 ":lifecycle_unittest_app", | 27 ":lifecycle_unittest_app", |
29 ":lifecycle_unittest_exe", | 28 ":lifecycle_unittest_exe", |
30 ":lifecycle_unittest_package", | 29 ":lifecycle_unittest_package", |
| 30 ":manifest", |
31 ] | 31 ] |
32 } | 32 } |
33 | 33 |
34 mojom("interfaces") { | 34 mojom("interfaces") { |
35 sources = [ | 35 sources = [ |
36 "lifecycle_unittest.mojom", | 36 "lifecycle_unittest.mojom", |
37 ] | 37 ] |
38 } | 38 } |
39 | 39 |
40 mojo_application_manifest("manifest") { | 40 mojo_application_manifest("manifest") { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 mojo_native_application("lifecycle_unittest_app") { | 96 mojo_native_application("lifecycle_unittest_app") { |
97 testonly = true | 97 testonly = true |
98 sources = [ | 98 sources = [ |
99 "app.cc", | 99 "app.cc", |
100 ] | 100 ] |
101 deps = [ | 101 deps = [ |
102 ":app_client", | 102 ":app_client", |
103 ":interfaces", | 103 ":interfaces", |
104 ":lifecycle_unittest_app_manifest", | |
105 "//base", | 104 "//base", |
106 "//mojo/shell/public/cpp:sources", | 105 "//mojo/shell/public/cpp:sources", |
107 ] | 106 ] |
| 107 |
| 108 data_deps = [ |
| 109 ":lifecycle_unittest_app_manifest", |
| 110 ] |
108 } | 111 } |
109 | 112 |
110 mojo_application_manifest("lifecycle_unittest_app_manifest") { | 113 mojo_application_manifest("lifecycle_unittest_app_manifest") { |
111 application_name = "lifecycle_unittest_app" | 114 application_name = "lifecycle_unittest_app" |
112 source = "app_manifest.json" | 115 source = "app_manifest.json" |
113 } | 116 } |
114 | 117 |
115 executable("lifecycle_unittest_exe") { | 118 executable("lifecycle_unittest_exe") { |
116 testonly = true | 119 testonly = true |
117 sources = [ | 120 sources = [ |
118 "lifecycle_exe.cc", | 121 "lifecycle_exe.cc", |
119 ] | 122 ] |
120 deps = [ | 123 deps = [ |
121 ":app_client", | 124 ":app_client", |
122 ":lifecycle_unittest_exe_manifest", | |
123 "//base", | 125 "//base", |
124 "//mojo/shell/public/cpp:sources", | 126 "//mojo/shell/public/cpp:sources", |
125 "//mojo/shell/runner/child:test_native_main", | 127 "//mojo/shell/runner/child:test_native_main", |
126 ] | 128 ] |
| 129 |
| 130 data_deps = [ |
| 131 ":lifecycle_unittest_exe_manifest", |
| 132 ] |
127 } | 133 } |
128 | 134 |
129 mojo_application_manifest("lifecycle_unittest_exe_manifest") { | 135 mojo_application_manifest("lifecycle_unittest_exe_manifest") { |
130 type = "exe" | 136 type = "exe" |
131 application_name = "lifecycle_unittest_exe" | 137 application_name = "lifecycle_unittest_exe" |
132 source = "exe_manifest.json" | 138 source = "exe_manifest.json" |
133 } | 139 } |
OLD | NEW |