| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 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 | |
| 5 import("//build/config/ui.gni") | |
| 6 | |
| 7 if (is_android) { | |
| 8 import("//build/config/android/config.gni") | |
| 9 import("//build/config/android/rules.gni") | |
| 10 } | |
| 11 | |
| 12 group("client") { | |
| 13 visibility = [ "//blimp" ] | |
| 14 | |
| 15 deps = [] | |
| 16 | |
| 17 if (is_android) { | |
| 18 deps += [ | |
| 19 "//blimp/client/app:blimp_apk", | |
| 20 "//blimp/client/app:blimp_apk_incremental", | |
| 21 ] | |
| 22 } | |
| 23 | |
| 24 if (is_linux && !is_chromeos && use_x11) { | |
| 25 deps += [ "//blimp/client/app:blimp_shell" ] | |
| 26 } | |
| 27 } | |
| 28 | |
| 29 group("test_binaries") { | |
| 30 visibility = [ "//blimp:blimp_tests" ] | |
| 31 | |
| 32 testonly = true | |
| 33 | |
| 34 if (is_android) { | |
| 35 deps = [ | |
| 36 "//blimp/client/app:blimp_test_apk", | |
| 37 ] | |
| 38 } | |
| 39 } | |
| 40 | |
| 41 group("unit_tests") { | |
| 42 visibility = [ "//blimp:*" ] | |
| 43 | |
| 44 testonly = true | |
| 45 | |
| 46 deps = [ | |
| 47 "//blimp/client/app:app_unit_tests", | |
| 48 "//blimp/client/core:unit_tests", | |
| 49 ] | |
| 50 } | |
| 51 | |
| 52 if (is_android) { | |
| 53 # This is the list of targets that the tests need to depend on in order to add | |
| 54 # the java classes for their native counterparts to the test apk. | |
| 55 # We could directly include them in the test target, but in order to | |
| 56 # keep the visibility of the //blimp/client/core:core_java target restricted, | |
| 57 # we make it visible to this group (which is testonly) and depend on this | |
| 58 # group instead. | |
| 59 # We could not add "//blimp:blimp_unittests" to the visibility list of | |
| 60 # //blimp/client/core:core_java, since the targets that actually need to | |
| 61 # depend on it are generated by the test template (see testing/test.gni). So | |
| 62 # it was better to add this indirection and expose it to this testonly target, | |
| 63 # which can be used in this file only. | |
| 64 java_group("blimp_unittests_java_deps") { | |
| 65 visibility = [ "//blimp:*" ] | |
| 66 | |
| 67 testonly = true | |
| 68 | |
| 69 deps = [ | |
| 70 "//base:base_java", | |
| 71 "//blimp/client/core:core_java", | |
| 72 "//net/android:net_java", | |
| 73 "//ui/android:ui_java", | |
| 74 ] | |
| 75 } | |
| 76 } | |
| OLD | NEW |