| 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 | 7 |
| 8 # TODO(beng): this meta target should probably move to the root dir's BUILD.gn. | 8 # TODO(beng): this meta target should probably move to the root dir's BUILD.gn. |
| 9 group("mojo") { | 9 group("mojo") { |
| 10 # Meta-target, don't link into production code. | 10 # Meta-target, don't link into production code. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 if (use_prebuilt_mojo_shell) { | 26 if (use_prebuilt_mojo_shell) { |
| 27 deps += [ "//mojo/public/tools:copy_mojo_shell" ] | 27 deps += [ "//mojo/public/tools:copy_mojo_shell" ] |
| 28 } else { | 28 } else { |
| 29 deps += [ "//mojo/shell:mojo_shell" ] | 29 deps += [ "//mojo/shell:mojo_shell" ] |
| 30 if (is_android) { | 30 if (is_android) { |
| 31 deps += [ "//mojo/shell:mojo_shell_apk" ] | 31 deps += [ "//mojo/shell:mojo_shell_apk" ] |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 if (is_android) { | 35 if (is_android) { |
| 36 deps += [ | 36 deps += [ "//mojo/android" ] |
| 37 "//mojo/android", | |
| 38 ] | |
| 39 } | 37 } |
| 40 | 38 |
| 41 if (mojo_use_go) { | 39 if (mojo_use_go) { |
| 42 deps += [ | 40 deps += [ "//mojo/go" ] |
| 43 "//mojo/go", | |
| 44 ] | |
| 45 } | 41 } |
| 46 | 42 |
| 47 if (mojo_use_dart) { | 43 if (mojo_use_dart) { |
| 48 deps += [ | 44 deps += [ "//mojo/dart" ] |
| 49 "//mojo/dart", | |
| 50 ] | |
| 51 } | 45 } |
| 52 | 46 |
| 53 if (is_linux) { | 47 if (is_linux) { |
| 54 deps += [ | 48 deps += [ "//mojo/python" ] |
| 55 "//mojo/python", | |
| 56 ] | |
| 57 } | 49 } |
| 58 | 50 |
| 59 if (!is_win) { | 51 if (!is_win) { |
| 60 deps += [ | 52 deps += [ "//mojo/shell:mojo_launcher" ] |
| 61 "//mojo/shell:mojo_launcher", | |
| 62 ] | |
| 63 } | 53 } |
| 64 } | 54 } |
| 65 | 55 |
| 66 group("tests") { | 56 group("tests") { |
| 67 testonly = true | 57 testonly = true |
| 68 deps = [ | 58 deps = [ |
| 69 "//mojo/application_manager:mojo_application_manager_unittests", | 59 "//mojo/application_manager:mojo_application_manager_unittests", |
| 70 "//mojo/common:mojo_common_unittests", | 60 "//mojo/common:mojo_common_unittests", |
| 71 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests", | 61 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests", |
| 72 "//mojo/edk/js/test:js_unittests", | 62 "//mojo/edk/js/test:js_unittests", |
| 73 "//mojo/edk/js/test:js_integration_tests", | 63 "//mojo/edk/js/test:js_integration_tests", |
| 74 "//mojo/edk/system:mojo_message_pipe_perftests", | 64 "//mojo/edk/system:mojo_message_pipe_perftests", |
| 75 "//mojo/edk/system:mojo_system_unittests", | 65 "//mojo/edk/system:mojo_system_unittests", |
| 76 "//mojo/public/c/system/tests:perftests", | 66 "//mojo/public/c/system/tests:perftests", |
| 77 "//mojo/public/cpp/application/tests:mojo_public_application_unittests", | 67 "//mojo/public/cpp/application/tests:mojo_public_application_unittests", |
| 78 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests", | 68 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests", |
| 79 "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests", | 69 "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests", |
| 80 "//mojo/public/cpp/system/tests:mojo_public_system_unittests", | 70 "//mojo/public/cpp/system/tests:mojo_public_system_unittests", |
| 81 "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests", | 71 "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests", |
| 82 "//mojo/services/network:apptests", | 72 "//mojo/services/network:apptests", |
| 83 "//mojo/shell:external_application_unittests", | 73 "//mojo/shell:external_application_unittests", |
| 84 "//mojo/shell:mojo_shell_tests", | 74 "//mojo/shell:mojo_shell_tests", |
| 85 "//mojo/tools:message_generator", | 75 "//mojo/tools:message_generator", |
| 86 "//services/clipboard:clipboard_unittests", | 76 "//services/clipboard:clipboard_unittests", |
| 87 "//services/js:js_services_unittests", | 77 "//services/js:js_services_unittests", |
| 88 "//services/js:js_apptests", | 78 "//services/js:js_apptests", |
| 89 ] | 79 ] |
| 90 | 80 |
| 91 if (is_android) { | 81 if (is_android) { |
| 92 deps += [ | 82 deps += [ "//mojo/edk/system:mojo_system_unittests_apk" ] |
| 93 "//mojo/edk/system:mojo_system_unittests_apk", | |
| 94 ] | |
| 95 } | 83 } |
| 96 | 84 |
| 97 if (use_aura) { | 85 if (use_aura) { |
| 98 deps += [ | 86 deps += [ |
| 99 "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unitt
ests", | 87 "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unitt
ests", |
| 100 "//services/window_manager:window_manager_unittests", | 88 "//services/window_manager:window_manager_unittests", |
| 101 "//services/view_manager:view_manager_service_apptests", | 89 "//services/view_manager:view_manager_service_apptests", |
| 102 "//services/view_manager:view_manager_service_unittests", | 90 "//services/view_manager:view_manager_service_unittests", |
| 103 ] | 91 ] |
| 104 } | 92 } |
| 105 | 93 |
| 106 if (mojo_use_dart) { | 94 if (mojo_use_dart) { |
| 107 deps += [ | 95 deps += [ "//mojo/dart/embedder/test:dart_unittests" ] |
| 108 "//mojo/dart/embedder/test:dart_unittests", | |
| 109 ] | |
| 110 } | 96 } |
| 111 } | 97 } |
| 112 | 98 |
| 113 if (is_android) { | 99 if (is_android) { |
| 114 import("//build/config/android/rules.gni") | 100 import("//build/config/android/rules.gni") |
| 115 | 101 |
| 116 generate_jni("jni_headers") { | 102 generate_jni("jni_headers") { |
| 117 sources = [ | 103 sources = [ |
| 118 "android/javatests/src/org/chromium/mojo/MojoTestCase.java", | 104 "android/javatests/src/org/chromium/mojo/MojoTestCase.java", |
| 119 "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java"
, | 105 "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java"
, |
| 120 "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java", | 106 "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java", |
| 121 "../services/native_viewport/android/src/org/chromium/mojo/PlatformViewpor
tAndroid.java", | 107 "../services/native_viewport/android/src/org/chromium/mojo/PlatformViewpor
tAndroid.java", |
| 122 ] | 108 ] |
| 123 | 109 |
| 124 jni_package = "mojo" | 110 jni_package = "mojo" |
| 125 } | 111 } |
| 126 } | 112 } |
| OLD | NEW |