Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Side by Side Diff: mojo/shell/standalone/BUILD.gn

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/runner/tracer.cc ('k') | mojo/shell/standalone/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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") 6 import("//mojo/public/tools/bindings/mojom.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 group("runner") {
10 testonly = true
11
12 deps = [
13 ":mojo_runner",
14 ]
15 }
16
17 if (is_android) { 9 if (is_android) {
18 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
19 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
20 } 12 }
21 13
22 source_set("register_local_aliases_fwd") { 14 source_set("register_local_aliases_fwd") {
23 sources = [ 15 sources = [
24 "register_local_aliases.h", 16 "register_local_aliases.h",
25 ] 17 ]
26 } 18 }
27 19
28 source_set("mojo_runner_lib") { 20 # main() entrypoint definition is structured into a static lib for Android's
21 # benefit, as it is shared between the standalone executable and other
22 # executables (e.g. Mandoline).
23 source_set("main_lib") {
29 sources = [] 24 sources = []
30 25
31 deps = [ 26 deps = [
32 ":lib", 27 ":lib",
33 "//base", 28 "//base",
34 "//build/config/sanitizers:deps", 29 "//build/config/sanitizers:deps",
35 "//mojo/common", 30 "//mojo/common",
36 "//mojo/environment:chromium", 31 "//mojo/environment:chromium",
37 "//mojo/message_pump", 32 "//mojo/message_pump",
38 "//mojo/shell/runner/host:lib", 33 "//mojo/shell/runner/host:lib",
(...skipping 22 matching lines...) Expand all
61 ":jni_headers", 56 ":jni_headers",
62 "//components/mus", 57 "//components/mus",
63 "//components/mus/ws:lib", 58 "//components/mus/ws:lib",
64 "//mojo/shell", 59 "//mojo/shell",
65 "//ui/gl", 60 "//ui/gl",
66 "//ui/platform_window/android", 61 "//ui/platform_window/android",
67 ] 62 ]
68 } 63 }
69 } 64 }
70 65
71 executable("mojo_runner") { 66 executable("standalone") {
67 output_name = "mojo_runner"
72 deps = [ 68 deps = [
73 ":mojo_runner_lib", 69 ":main_lib",
74 "//build/config/sanitizers:deps", 70 "//build/config/sanitizers:deps",
75 ] 71 ]
76 72
77 if (is_android) { 73 if (is_android) {
78 sources = [ 74 sources = [
79 "android/context_init.cc", 75 "android/context_init.cc",
80 "register_local_aliases.cc", 76 "register_local_aliases.cc",
81 ] 77 ]
82 78
83 deps += [ 79 deps += [
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 resource_dirs = [ "android/apk/res" ] 248 resource_dirs = [ "android/apk/res" ]
253 custom_package = "org.chromium.mojo.shell" 249 custom_package = "org.chromium.mojo.shell"
254 } 250 }
255 251
256 android_assets("android_assets") { 252 android_assets("android_assets") {
257 deps = [ 253 deps = [
258 ":bootstrap", 254 ":bootstrap",
259 ":bootstrap_java", 255 ":bootstrap_java",
260 ] 256 ]
261 sources = [ 257 sources = [
262 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", 258 "$root_out_dir/obj/mojo/shell/standalone/bootstrap_java.dex.jar",
263 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension", 259 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension",
264 ] 260 ]
265 } 261 }
266 262
267 android_assets("mojo_runner_apptests_assets") { 263 android_assets("mojo_shell_standalone_apptests_assets") {
268 testonly = true 264 testonly = true
269 deps = [ 265 deps = [
270 ":android_assets", 266 ":android_assets",
271 "//components/clipboard:apptests_assets", 267 "//components/clipboard:apptests_assets",
272 "//components/clipboard:clipboard_assets", 268 "//components/clipboard:clipboard_assets",
273 "//components/mus/ws:apptests_assets", 269 "//components/mus/ws:apptests_assets",
274 "//components/resource_provider:apptests_assets", 270 "//components/resource_provider:apptests_assets",
275 "//components/resource_provider:resource_provider_assets", 271 "//components/resource_provider:resource_provider_assets",
276 "//mojo/services/network:apptests_assets", 272 "//mojo/services/network:apptests_assets",
277 "//mojo/services/network:network_assets", 273 "//mojo/services/network:network_assets",
278 "//third_party/icu:icu_assets", 274 "//third_party/icu:icu_assets",
279 ] 275 ]
280 } 276 }
281 277
282 copy("copy_mojo_runner") { 278 copy("copy_mojo_shell_standalone") {
283 sources = [ 279 sources = [
284 "$root_out_dir/mojo_runner", 280 "$root_out_dir/mojo_runner",
285 ] 281 ]
286 outputs = [ 282 outputs = [
287 "$root_shlib_dir/${shlib_prefix}mojo_runner$shlib_extension", 283 "$root_shlib_dir/${shlib_prefix}mojo_runner$shlib_extension",
288 ] 284 ]
289 deps = [ 285 deps = [
290 ":mojo_runner", 286 ":standalone",
291 ] 287 ]
292 } 288 }
293 289
294 android_apk("mojo_runner_apptests_apk") { 290 android_apk("mojo_shell_standalone_apptests_apk") {
295 testonly = true 291 testonly = true
296 apk_name = "MojoRunnerApptests" 292 apk_name = "MojoRunnerApptests"
297 android_manifest = "android/apk/AndroidManifest.xml" 293 android_manifest = "android/apk/AndroidManifest.xml"
298 native_libs = [ "${shlib_prefix}mojo_runner$shlib_extension" ] 294 native_libs = [ "${shlib_prefix}mojo_runner$shlib_extension" ]
299 write_asset_list = true 295 write_asset_list = true
300 296
301 deps = [ 297 deps = [
302 ":copy_mojo_runner", 298 ":copy_mojo_shell_standalone",
303 ":java", 299 ":java",
304 ":mojo_runner_apptests_assets", 300 ":mojo_shell_standalone_apptests_assets",
305 ":resources", 301 ":resources",
306 "//base:base_java", 302 "//base:base_java",
307 "//ui/platform_window/android:platform_window_java", 303 "//ui/platform_window/android:platform_window_java",
308 google_play_services_resources, 304 google_play_services_resources,
309 ] 305 ]
310 } 306 }
311 } 307 }
OLDNEW
« no previous file with comments | « mojo/runner/tracer.cc ('k') | mojo/shell/standalone/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698