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 3# found in the LICENSE file. 4 5import("//build/config/ui.gni") 6 7group("mojo") { 8 # Meta-target, don't link into production code. 9 testonly = true 10 declare_args() { 11 mojo_use_go = false 12 } 13 deps = [ 14 ":tests", 15 "//mojo/apps/js:mojo_js", 16 "//mojo/common", 17 "//mojo/examples", 18 "//mojo/public", 19 "//mojo/services", 20 "//mojo/shell:mojo_shell", 21 "//mojo/tools/package_manager", 22 ] 23 24 if (is_linux) { 25 deps += [ 26 "//mojo/python", 27 ] 28 if (mojo_use_go) { 29 deps += [ 30 "//mojo/go", 31 ] 32 } 33 } 34} 35 36group("tests") { 37 testonly = true 38 deps = [ 39 "//mojo/application_manager:mojo_application_manager_unittests", 40 "//mojo/apps/js/test:mojo_apps_js_unittests", 41 "//mojo/common:mojo_common_unittests", 42 "//mojo/public/c/system/tests:perftests", 43 "//mojo/public/cpp/application/tests:mojo_public_application_unittests", 44 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests", 45 "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests", 46 "//mojo/public/cpp/system/tests:mojo_public_system_unittests", 47 "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests", 48 "//mojo/public/js/bindings/tests:mojo_js_unittests", 49 "//mojo/services/clipboard:mojo_clipboard_unittests", 50 "//mojo/services/public/cpp/surfaces/tests:mojo_surfaces_lib_unittests", 51 "//mojo/shell:mojo_shell_tests", 52 "//mojo/system:mojo_message_pipe_perftests", 53 "//mojo/system:mojo_system_unittests", 54 "//mojo/tools:message_generator", 55 ] 56 57 if (use_aura) { 58 deps += [ 59 "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unittests", 60 "//mojo/services/view_manager:mojo_view_manager_unittests", 61 "//mojo/services/window_manager:mojo_core_window_manager_unittests", 62 ] 63 } 64} 65 66if (is_android) { 67 import("//build/config/android/rules.gni") 68 69 generate_jni("jni_headers") { 70 sources = [ 71 "android/javatests/src/org/chromium/mojo/MojoTestCase.java", 72 "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java", 73 "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java", 74 "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAndroid.java", 75 ] 76 77 jni_package = "mojo" 78 } 79} 80