| 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 group("runner") { | 10 group("runner") { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 if (!is_android) { | 45 if (!is_android) { |
| 46 sources += [ | 46 sources += [ |
| 47 "desktop/launcher_process.cc", | 47 "desktop/launcher_process.cc", |
| 48 "desktop/launcher_process.h", | 48 "desktop/launcher_process.h", |
| 49 "desktop/main.cc", | 49 "desktop/main.cc", |
| 50 "register_local_aliases.cc", | 50 "register_local_aliases.cc", |
| 51 "register_local_aliases.h", | 51 "register_local_aliases.h", |
| 52 ] | 52 ] |
| 53 deps += [ | 53 deps += [ |
| 54 "//components/tracing:startup_tracing", | 54 "//components/tracing:startup_tracing", |
| 55 "//mojo/shell", | 55 "//third_party/icu:icudata", |
| 56 ] | 56 ] |
| 57 } else { | 57 } else { |
| 58 sources += [ | 58 sources += [ |
| 59 "android/context_init.h", | 59 "android/context_init.h", |
| 60 "android/library_loader.cc", | 60 "android/library_loader.cc", |
| 61 "android/main.cc", | 61 "android/main.cc", |
| 62 "android/main.h", | 62 "android/main.h", |
| 63 ] | 63 ] |
| 64 | 64 |
| 65 deps += [ | 65 deps += [ |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 source_set("init") { | 100 source_set("init") { |
| 101 sources = [ | 101 sources = [ |
| 102 "init.cc", | 102 "init.cc", |
| 103 "init.h", | 103 "init.h", |
| 104 ] | 104 ] |
| 105 | 105 |
| 106 deps = [ | 106 deps = [ |
| 107 "//mojo/runner/host:switches", | 107 "//mojo/runner/host:switches", |
| 108 "//base", | 108 "//base", |
| 109 "//base:i18n", |
| 109 ] | 110 ] |
| 110 } | 111 } |
| 111 | 112 |
| 112 source_set("lib") { | 113 source_set("lib") { |
| 113 sources = [ | 114 sources = [ |
| 114 "context.cc", | 115 "context.cc", |
| 115 "context.h", | 116 "context.h", |
| 116 "scoped_user_data_dir.cc", | 117 "scoped_user_data_dir.cc", |
| 117 "scoped_user_data_dir.h", | 118 "scoped_user_data_dir.h", |
| 118 "task_runners.cc", | 119 "task_runners.cc", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 140 "//mojo/shell", | 141 "//mojo/shell", |
| 141 "//mojo/util:filename_util", | 142 "//mojo/util:filename_util", |
| 142 "//third_party/mojo/src/mojo/edk/system", | 143 "//third_party/mojo/src/mojo/edk/system", |
| 143 "//ui/gl", | 144 "//ui/gl", |
| 144 "//url", | 145 "//url", |
| 145 ] | 146 ] |
| 146 | 147 |
| 147 public_deps = [ | 148 public_deps = [ |
| 148 ":init", | 149 ":init", |
| 149 ":switches", | 150 ":switches", |
| 151 "//mojo/shell", |
| 150 ] | 152 ] |
| 151 | 153 |
| 152 if (!is_component_build) { | 154 if (!is_component_build) { |
| 153 data_deps = [ | 155 data_deps = [ |
| 154 "//components/devtools_service", | 156 "//components/devtools_service", |
| 155 "//mojo/services/tracing", | 157 "//mojo/services/tracing", |
| 156 ] | 158 ] |
| 157 } | 159 } |
| 158 | 160 |
| 159 if (is_android) { | 161 if (is_android) { |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 ] | 322 ] |
| 321 } | 323 } |
| 322 | 324 |
| 323 copy_ex("copy_mojo_runner_test_assets") { | 325 copy_ex("copy_mojo_runner_test_assets") { |
| 324 testonly = true | 326 testonly = true |
| 325 clear_dir = true | 327 clear_dir = true |
| 326 dest = mojo_runner_test_assets_dir | 328 dest = mojo_runner_test_assets_dir |
| 327 deps = [ | 329 deps = [ |
| 328 "//mojo/services/test_service:test_app", | 330 "//mojo/services/test_service:test_app", |
| 329 "//mojo/services/test_service:test_request_tracker_app", | 331 "//mojo/services/test_service:test_request_tracker_app", |
| 332 "//third_party/icu:icudata", |
| 330 ] | 333 ] |
| 331 | 334 |
| 332 # Directories can't be specified as sources so pass manually to the script. | 335 # Directories can't be specified as sources so pass manually to the script. |
| 333 args = [ | 336 args = [ |
| 337 "--files=" + rebase_path("$root_out_dir/icudtl.dat", root_build_dir), |
| 334 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir), | 338 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir), |
| 335 "--files=" + | 339 "--files=" + |
| 336 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir), | 340 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir), |
| 337 ] | 341 ] |
| 338 } | 342 } |
| 339 | 343 |
| 340 android_apk("mojo_runner_apptests_apk") { | 344 android_apk("mojo_runner_apptests_apk") { |
| 341 testonly = true | 345 testonly = true |
| 342 apk_name = "MojoRunnerApptests" | 346 apk_name = "MojoRunnerApptests" |
| 343 android_manifest = "android/apk/AndroidManifest.xml" | 347 android_manifest = "android/apk/AndroidManifest.xml" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 356 } | 360 } |
| 357 | 361 |
| 358 generate_mojo_shell_assets_list("build_mojo_runner_test_assets") { | 362 generate_mojo_shell_assets_list("build_mojo_runner_test_assets") { |
| 359 testonly = true | 363 testonly = true |
| 360 deps = [ | 364 deps = [ |
| 361 ":copy_mojo_runner_test_assets", | 365 ":copy_mojo_runner_test_assets", |
| 362 ] | 366 ] |
| 363 dir = mojo_runner_test_assets_dir | 367 dir = mojo_runner_test_assets_dir |
| 364 } | 368 } |
| 365 } | 369 } |
| OLD | NEW |