OLD | NEW |
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/generate_mojo_shell_assets_list.gni") | 5 import("//mojo/generate_mojo_shell_assets_list.gni") |
6 import("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
9 | 9 |
10 # We don't support building in the component build since mojo apps are | 10 # We don't support building in the component build since mojo apps are |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 clear_dir = true | 282 clear_dir = true |
283 dest = mojo_runner_assets_dir | 283 dest = mojo_runner_assets_dir |
284 deps = [ | 284 deps = [ |
285 ":bootstrap", | 285 ":bootstrap", |
286 ":bootstrap_java", | 286 ":bootstrap_java", |
287 ":copy_mojo_runner", | 287 ":copy_mojo_runner", |
288 "//mojo/services/network", | 288 "//mojo/services/network", |
289 ] | 289 ] |
290 sources = [ | 290 sources = [ |
291 "$root_out_dir/lib.stripped/libbootstrap.so", | 291 "$root_out_dir/lib.stripped/libbootstrap.so", |
292 "$root_out_dir/network_service.mojo", | |
293 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", | 292 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", |
294 ] | 293 ] |
| 294 |
| 295 # Directories can't be specified as sources so pass manually to the script. |
| 296 args = [ "--files=" + |
| 297 rebase_path("$root_out_dir/network_service", root_build_dir) ] |
295 } | 298 } |
296 | 299 |
297 generate_mojo_shell_assets_list("build_mojo_runner_assets") { | 300 generate_mojo_shell_assets_list("build_mojo_runner_assets") { |
298 deps = [ | 301 deps = [ |
299 ":copy_mojo_runner_assets", | 302 ":copy_mojo_runner_assets", |
300 ] | 303 ] |
301 dir = mojo_runner_assets_dir | 304 dir = mojo_runner_assets_dir |
302 } | 305 } |
303 | 306 |
304 copy("copy_mojo_runner") { | 307 copy("copy_mojo_runner") { |
305 sources = [ | 308 sources = [ |
306 "$root_out_dir/exe.stripped/mojo_runner", | 309 "$root_out_dir/exe.stripped/mojo_runner", |
307 ] | 310 ] |
308 outputs = [ | 311 outputs = [ |
309 "$root_out_dir/lib.stripped/libmojo_runner.so", | 312 "$root_out_dir/lib.stripped/libmojo_runner.so", |
310 ] | 313 ] |
311 deps = [ | 314 deps = [ |
312 ":mojo_runner", | 315 ":mojo_runner", |
313 ] | 316 ] |
314 } | 317 } |
315 | 318 |
316 copy_ex("copy_mojo_runner_test_assets") { | 319 copy_ex("copy_mojo_runner_test_assets") { |
317 clear_dir = true | 320 clear_dir = true |
318 dest = mojo_runner_test_assets_dir | 321 dest = mojo_runner_test_assets_dir |
319 sources = [ | |
320 "$root_out_dir/test_app.mojo", | |
321 "$root_out_dir/test_request_tracker_app.mojo", | |
322 ] | |
323 deps = [ | 322 deps = [ |
324 "//mojo/services/test_service:test_app", | 323 "//mojo/services/test_service:test_app", |
325 "//mojo/services/test_service:test_request_tracker_app", | 324 "//mojo/services/test_service:test_request_tracker_app", |
326 ] | 325 ] |
| 326 |
| 327 # Directories can't be specified as sources so pass manually to the script. |
| 328 args = [ |
| 329 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir), |
| 330 "--files=" + |
| 331 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir), |
| 332 ] |
327 } | 333 } |
328 | 334 |
329 android_apk("mojo_runner_apk") { | 335 android_apk("mojo_runner_apk") { |
330 apk_name = "MojoRunner" | 336 apk_name = "MojoRunner" |
331 | 337 |
332 android_manifest = "android/apk/AndroidManifest.xml" | 338 android_manifest = "android/apk/AndroidManifest.xml" |
333 | 339 |
334 native_libs = [ "libmojo_runner.so" ] | 340 native_libs = [ "libmojo_runner.so" ] |
335 | 341 |
336 asset_location = mojo_runner_assets_dir | 342 asset_location = mojo_runner_assets_dir |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 ] | 444 ] |
439 | 445 |
440 deps = [ | 446 deps = [ |
441 "//base", | 447 "//base", |
442 "//mojo/application/public/cpp:test_support", | 448 "//mojo/application/public/cpp:test_support", |
443 "//mojo/runner/test:bindings", | 449 "//mojo/runner/test:bindings", |
444 "//mojo/services/network/public/interfaces", | 450 "//mojo/services/network/public/interfaces", |
445 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", | 451 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", |
446 ] | 452 ] |
447 } | 453 } |
OLD | NEW |