| 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//mojo/public/mojo.gni") | 6 import("//mojo/public/mojo.gni") |
| 7 import("//mojo/public/mojo_application.gni") | 7 import("//mojo/public/mojo_application.gni") |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
| 9 import("//mojo/tools/embed/rules.gni") | 9 import("//mojo/tools/embed/rules.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 | 32 |
| 33 group("tests") { | 33 group("tests") { |
| 34 testonly = true | 34 testonly = true |
| 35 deps = [ | 35 deps = [ |
| 36 ":apptests", | 36 ":apptests", |
| 37 ":mojo_shell_tests", | 37 ":mojo_shell_tests", |
| 38 ":shell_nfc_apptests", | 38 ":shell_nfc_apptests", |
| 39 "//shell/application_manager:mojo_application_manager_unittests", | 39 "//shell/application_manager:mojo_application_manager_unittests", |
| 40 "//shell/crash:crash_unittests", | |
| 41 ] | 40 ] |
| 41 |
| 42 if (is_android || is_linux) { |
| 43 deps += [ "//shell/crash:crash_unittests" ] |
| 44 } |
| 42 } | 45 } |
| 43 | 46 |
| 44 if (is_android) { | 47 if (is_android) { |
| 45 import("//build/config/android/config.gni") | 48 import("//build/config/android/config.gni") |
| 46 import("//build/config/android/rules.gni") | 49 import("//build/config/android/rules.gni") |
| 47 } | 50 } |
| 48 | 51 |
| 49 if (!mojo_use_prebuilt_mojo_shell) { | 52 if (!mojo_use_prebuilt_mojo_shell) { |
| 50 shell_common_deps = [ | 53 shell_common_deps = [ |
| 51 ":parent_lib", | 54 ":parent_lib", |
| 52 "//base", | 55 "//base", |
| 53 "//base/allocator", | 56 "//base/allocator", |
| 54 "//build/config/sanitizers:deps", | 57 "//build/config/sanitizers:deps", |
| 55 "//mojo/environment:chromium", | 58 "//mojo/environment:chromium", |
| 56 "//mojo/message_pump", | 59 "//mojo/message_pump", |
| 57 "//shell/crash", | |
| 58 ] | 60 ] |
| 59 shell_common_data_deps = [ ":mojo_shell_child" ] | 61 shell_common_data_deps = [ ":mojo_shell_child" ] |
| 60 | 62 |
| 63 if (is_android || is_linux) { |
| 64 shell_common_deps += [ "//shell/crash" ] |
| 65 } |
| 66 |
| 61 if (is_android) { | 67 if (is_android) { |
| 62 shared_library("mojo_shell") { | 68 shared_library("mojo_shell") { |
| 63 sources = [ | 69 sources = [ |
| 64 "android/library_loader.cc", | 70 "android/library_loader.cc", |
| 65 "android/main.cc", | 71 "android/main.cc", |
| 66 "android/main.h", | 72 "android/main.h", |
| 67 ] | 73 ] |
| 68 | 74 |
| 69 deps = shell_common_deps + [ | 75 deps = shell_common_deps + [ |
| 70 ":jni_headers", | 76 ":jni_headers", |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 ":jni_headers", | 200 ":jni_headers", |
| 195 ":run_android_application_function", | 201 ":run_android_application_function", |
| 196 "//mojo/application:content_handler", | 202 "//mojo/application:content_handler", |
| 197 "//mojo/services/content_handler/public/interfaces", | 203 "//mojo/services/content_handler/public/interfaces", |
| 198 "//mojo/services/gpu/public/interfaces", | 204 "//mojo/services/gpu/public/interfaces", |
| 199 "//mojo/services/native_viewport/public/interfaces", | 205 "//mojo/services/native_viewport/public/interfaces", |
| 200 "//services/gles2", | 206 "//services/gles2", |
| 201 "//services/native_viewport:lib", | 207 "//services/native_viewport:lib", |
| 202 ] | 208 ] |
| 203 } | 209 } |
| 210 |
| 211 if (is_mac) { |
| 212 sources -= [ |
| 213 "url_response_disk_cache_loader.cc", |
| 214 "url_response_disk_cache_loader.h", |
| 215 ] |
| 216 |
| 217 deps -= [ "//services/url_response_disk_cache" ] |
| 218 } |
| 204 } | 219 } |
| 205 | 220 |
| 206 # This is a separate target mainly since it suppresses check_includes. | 221 # This is a separate target mainly since it suppresses check_includes. |
| 207 # TODO(vtl): Make it so that the suppression isn't needed. | 222 # TODO(vtl): Make it so that the suppression isn't needed. |
| 208 source_set("native_application_support") { | 223 source_set("native_application_support") { |
| 209 sources = [ | 224 sources = [ |
| 210 "native_application_support.cc", | 225 "native_application_support.cc", |
| 211 "native_application_support.h", | 226 "native_application_support.h", |
| 212 ] | 227 ] |
| 213 | 228 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 # Shared library propagation will happen up to executable, shared library, | 538 # Shared library propagation will happen up to executable, shared library, |
| 524 # or complete static library boundaries. | 539 # or complete static library boundaries. |
| 525 # Workaround from brettw to prevent gn from linking pingable app into the | 540 # Workaround from brettw to prevent gn from linking pingable app into the |
| 526 # apptests executable. | 541 # apptests executable. |
| 527 static_library("pingable_app_dummy") { | 542 static_library("pingable_app_dummy") { |
| 528 complete_static_lib = true | 543 complete_static_lib = true |
| 529 testonly = true | 544 testonly = true |
| 530 public_deps = [ | 545 public_deps = [ |
| 531 "//shell/test:pingable_app($default_toolchain)", | 546 "//shell/test:pingable_app($default_toolchain)", |
| 532 ] | 547 ] |
| 548 sources = [ |
| 549 "pingable_app_dummy_empty.cc", |
| 550 ] |
| 533 } | 551 } |
| 534 | 552 |
| 535 embed_file("embed_pingable") { | 553 embed_file("embed_pingable") { |
| 536 source = "$root_build_dir/pingable_app.mojo" | 554 source = "$root_build_dir/pingable_app.mojo" |
| 537 namespace = "shell::test" | 555 namespace = "shell::test" |
| 538 variable = "kPingable" | 556 variable = "kPingable" |
| 539 testonly = true | 557 testonly = true |
| 540 deps = [ | 558 deps = [ |
| 541 ":pingable_app_dummy", | 559 ":pingable_app_dummy", |
| 542 ] | 560 ] |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 "${root_out_dir}/libmojo_shell.so", | 629 "${root_out_dir}/libmojo_shell.so", |
| 612 ] | 630 ] |
| 613 } else { | 631 } else { |
| 614 sources += [ "${root_out_dir}/mojo_shell" ] | 632 sources += [ "${root_out_dir}/mojo_shell" ] |
| 615 } | 633 } |
| 616 | 634 |
| 617 outputs = [ | 635 outputs = [ |
| 618 "${root_out_dir}/symbols/{{source_file_part}}", | 636 "${root_out_dir}/symbols/{{source_file_part}}", |
| 619 ] | 637 ] |
| 620 } | 638 } |
| OLD | NEW |