| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 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 if (is_android) { | |
| 6 import("//build/config/android/config.gni") | |
| 7 import("//build/config/android/rules.gni") | |
| 8 } | |
| 9 | |
| 10 import("//blimp/client/core/config.gni") | |
| 11 import("//testing/test.gni") | |
| 12 | |
| 13 # This target is here to let //chrome depend on //blimp/client/public | |
| 14 # and automatically get the correct implementation of //blimp/client/core | |
| 15 # depending on whether enable_blimp_client is set or not. | |
| 16 group("core_shim") { | |
| 17 visibility = [ "//blimp/client/public" ] | |
| 18 | |
| 19 if (enable_blimp_client) { | |
| 20 deps = [ | |
| 21 ":core", | |
| 22 ] | |
| 23 } else { | |
| 24 deps = [ | |
| 25 ":dummy_core", | |
| 26 ] | |
| 27 } | |
| 28 } | |
| 29 | |
| 30 group("core") { | |
| 31 visibility = [ | |
| 32 ":core_shim", | |
| 33 "//blimp/client/app:*", # TODO(nyquist): Remove when enable_blimp_client is
gone. | |
| 34 "//blimp/client/test", | |
| 35 "//blimp/test/*", | |
| 36 ] | |
| 37 | |
| 38 deps = [ | |
| 39 "//blimp/client/core/compositor", | |
| 40 "//blimp/client/core/contents", | |
| 41 "//blimp/client/core/context", | |
| 42 "//blimp/client/core/feedback", | |
| 43 "//blimp/client/core/geolocation", | |
| 44 "//blimp/client/core/render_widget", | |
| 45 "//blimp/client/core/resources", | |
| 46 "//blimp/client/core/session", | |
| 47 "//blimp/client/core/settings", | |
| 48 "//blimp/client/core/switches", | |
| 49 ] | |
| 50 } | |
| 51 | |
| 52 group("dummy_core") { | |
| 53 visibility = [ ":*" ] | |
| 54 | |
| 55 deps = [ | |
| 56 "//blimp/client/core/context:dummy", | |
| 57 "//blimp/client/core/resources:dummy", | |
| 58 ] | |
| 59 } | |
| 60 | |
| 61 group("unit_tests") { | |
| 62 testonly = true | |
| 63 | |
| 64 deps = [ | |
| 65 "//blimp/client/core/compositor:unit_tests", | |
| 66 "//blimp/client/core/contents:unit_tests", | |
| 67 "//blimp/client/core/context:unit_tests", | |
| 68 "//blimp/client/core/feedback:unit_tests", | |
| 69 "//blimp/client/core/geolocation:unit_tests", | |
| 70 "//blimp/client/core/integration_tests", | |
| 71 "//blimp/client/core/render_widget:unit_tests", | |
| 72 "//blimp/client/core/session:unit_tests", | |
| 73 "//blimp/client/core/settings:unit_tests", | |
| 74 ] | |
| 75 } | |
| 76 | |
| 77 if (is_android) { | |
| 78 # This target is here to let //chrome depend on | |
| 79 # //blimp/client/public:public_java and automatically get the correct | |
| 80 # implementation of //blimp/client/core depending on whether | |
| 81 # enable_blimp_client is set or not. | |
| 82 java_group("core_shim_java") { | |
| 83 visibility = [ "//blimp/client/public/*" ] | |
| 84 | |
| 85 if (enable_blimp_client) { | |
| 86 deps = [ | |
| 87 ":core_java", | |
| 88 ] | |
| 89 } else { | |
| 90 deps = [ | |
| 91 ":dummy_core_java", | |
| 92 ] | |
| 93 } | |
| 94 } | |
| 95 | |
| 96 java_group("core_java") { | |
| 97 visibility = [ | |
| 98 ":core_shim_java", | |
| 99 "//blimp/client:blimp_unittests_java_deps", | |
| 100 "//blimp/client/app:*", # TODO(nyquist): Remove when enable_blimp_client
is gone. | |
| 101 ] | |
| 102 | |
| 103 deps = [ | |
| 104 "//blimp/client/core/contents:contents_java", | |
| 105 "//blimp/client/core/context:context_java", | |
| 106 "//blimp/client/core/feedback:feedback_java", | |
| 107 "//blimp/client/core/settings:settings_java", | |
| 108 "//blimp/client/core/switches:switches_java", | |
| 109 "//device/geolocation:geolocation_java", | |
| 110 ] | |
| 111 } | |
| 112 | |
| 113 java_group("dummy_core_java") { | |
| 114 visibility = [ ":*" ] | |
| 115 | |
| 116 deps = [ | |
| 117 "//blimp/client/core/context:dummy_context_java", | |
| 118 ] | |
| 119 } | |
| 120 } | |
| OLD | NEW |