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 "//base", | 17 "//base", |
18 "//base/test:test_support", | 18 "//base/test:test_support", |
19 "//mojo/shell/public/cpp:shell_test_support", | 19 "//mojo/shell/public/cpp:shell_test_support", |
20 "//mojo/shell/public/cpp:sources", | 20 "//mojo/shell/public/cpp:sources", |
21 "//mojo/shell/public/interfaces", | 21 "//mojo/shell/public/interfaces", |
22 "//mojo/shell/runner/common", | 22 "//mojo/shell/runner/common", |
23 "//mojo/shell/tests:util", | 23 "//mojo/shell/tests:util", |
24 ] | 24 ] |
25 | 25 |
26 data_deps = [ | 26 data_deps = [ |
27 ":lifecycle_unittest_app", | 27 ":lifecycle_unittest_app", |
| 28 ":lifecycle_unittest_parent", |
28 ":lifecycle_unittest_exe", | 29 ":lifecycle_unittest_exe", |
29 ":lifecycle_unittest_package", | 30 ":lifecycle_unittest_package", |
30 ":manifest", | 31 ":manifest", |
31 ] | 32 ] |
32 } | 33 } |
33 | 34 |
34 mojom("interfaces") { | 35 mojom("interfaces") { |
35 sources = [ | 36 sources = [ |
36 "lifecycle_unittest.mojom", | 37 "lifecycle_unittest.mojom", |
37 ] | 38 ] |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 data_deps = [ | 109 data_deps = [ |
109 ":lifecycle_unittest_app_manifest", | 110 ":lifecycle_unittest_app_manifest", |
110 ] | 111 ] |
111 } | 112 } |
112 | 113 |
113 mojo_application_manifest("lifecycle_unittest_app_manifest") { | 114 mojo_application_manifest("lifecycle_unittest_app_manifest") { |
114 application_name = "lifecycle_unittest_app" | 115 application_name = "lifecycle_unittest_app" |
115 source = "app_manifest.json" | 116 source = "app_manifest.json" |
116 } | 117 } |
117 | 118 |
| 119 mojo_native_application("lifecycle_unittest_parent") { |
| 120 testonly = true |
| 121 sources = [ |
| 122 "parent.cc", |
| 123 ] |
| 124 deps = [ |
| 125 ":interfaces", |
| 126 "//base", |
| 127 "//mojo/shell/public/cpp:sources", |
| 128 ] |
| 129 |
| 130 data_deps = [ |
| 131 ":lifecycle_unittest_parent_manifest", |
| 132 ] |
| 133 } |
| 134 |
| 135 mojo_application_manifest("lifecycle_unittest_parent_manifest") { |
| 136 application_name = "lifecycle_unittest_parent" |
| 137 source = "parent_manifest.json" |
| 138 } |
| 139 |
118 executable("lifecycle_unittest_exe") { | 140 executable("lifecycle_unittest_exe") { |
119 testonly = true | 141 testonly = true |
120 sources = [ | 142 sources = [ |
121 "lifecycle_exe.cc", | 143 "lifecycle_exe.cc", |
122 ] | 144 ] |
123 deps = [ | 145 deps = [ |
124 ":app_client", | 146 ":app_client", |
125 "//base", | 147 "//base", |
126 "//mojo/shell/public/cpp:sources", | 148 "//mojo/shell/public/cpp:sources", |
127 "//mojo/shell/runner/child:test_native_main", | 149 "//mojo/shell/runner/child:test_native_main", |
128 ] | 150 ] |
129 | 151 |
130 data_deps = [ | 152 data_deps = [ |
131 ":lifecycle_unittest_exe_manifest", | 153 ":lifecycle_unittest_exe_manifest", |
132 ] | 154 ] |
133 } | 155 } |
134 | 156 |
135 mojo_application_manifest("lifecycle_unittest_exe_manifest") { | 157 mojo_application_manifest("lifecycle_unittest_exe_manifest") { |
136 type = "exe" | 158 type = "exe" |
137 application_name = "lifecycle_unittest_exe" | 159 application_name = "lifecycle_unittest_exe" |
138 source = "exe_manifest.json" | 160 source = "exe_manifest.json" |
139 } | 161 } |
OLD | NEW |