OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 ] | 64 ] |
65 } | 65 } |
66 } else { | 66 } else { |
67 mojo_native_application("resource_provider") { | 67 mojo_native_application("resource_provider") { |
68 sources = [ | 68 sources = [ |
69 "main.cc", | 69 "main.cc", |
70 ] | 70 ] |
71 | 71 |
72 deps = [ | 72 deps = [ |
73 ":lib", | 73 ":lib", |
74 ":manifest", | |
75 "//base", | 74 "//base", |
76 "//components/resource_provider/public/interfaces", | 75 "//components/resource_provider/public/interfaces", |
77 "//mojo/shell/public/cpp", | 76 "//mojo/shell/public/cpp", |
78 "//url", | 77 "//url", |
79 ] | 78 ] |
| 79 |
| 80 data_deps = [ |
| 81 ":manifest", |
| 82 ] |
80 } | 83 } |
81 | 84 |
82 mojo_application_manifest("manifest") { | 85 mojo_application_manifest("manifest") { |
83 application_name = "resource_provider" | 86 application_name = "resource_provider" |
84 source = "manifest.json" | 87 source = "manifest.json" |
85 } | 88 } |
86 } | 89 } |
87 | 90 |
88 source_set("lib") { | 91 source_set("lib") { |
89 sources = [ | 92 sources = [ |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 sources = [ | 133 sources = [ |
131 "resource_provider_apptest.cc", | 134 "resource_provider_apptest.cc", |
132 ] | 135 ] |
133 | 136 |
134 resources = [ | 137 resources = [ |
135 "//components/test/data/resource_provider/sample", | 138 "//components/test/data/resource_provider/sample", |
136 "//components/test/data/resource_provider/dir", | 139 "//components/test/data/resource_provider/dir", |
137 ] | 140 ] |
138 | 141 |
139 deps = [ | 142 deps = [ |
140 ":apptest_manifest", | |
141 "//base", | 143 "//base", |
142 "//base/test:test_config", | 144 "//base/test:test_config", |
143 "//components/resource_provider/public/cpp", | 145 "//components/resource_provider/public/cpp", |
144 "//components/resource_provider/public/interfaces", | 146 "//components/resource_provider/public/interfaces", |
145 "//mojo/common", | 147 "//mojo/common", |
146 "//mojo/shell/public/cpp:test_support", | 148 "//mojo/shell/public/cpp:test_support", |
147 ] | 149 ] |
148 | 150 |
149 data_deps = [ | 151 data_deps = [ |
| 152 ":apptest_manifest", |
150 ":resource_provider", | 153 ":resource_provider", |
151 ] | 154 ] |
152 } | 155 } |
153 | 156 |
154 mojo_application_manifest("apptest_manifest") { | 157 mojo_application_manifest("apptest_manifest") { |
155 application_name = "resource_provider_apptests" | 158 application_name = "resource_provider_apptests" |
156 source = "apptest_manifest.json" | 159 source = "apptest_manifest.json" |
157 } | 160 } |
OLD | NEW |