| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 if (is_android) { | 5 if (is_android) { |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/rules.gni") | 7 import("//build/config/android/rules.gni") |
| 8 } | 8 } |
| 9 | 9 |
| 10 import("//blimp/client/core/config.gni") | 10 import("//blimp/client/core/config.gni") |
| 11 | 11 |
| 12 # This target is here to let //chrome depend on //blimp/client/public | 12 # This target is here to let //chrome depend on //blimp/client/public |
| 13 # and automatically get the correct implementation of //blimp/client/core | 13 # and automatically get the correct implementation of //blimp/client/core |
| 14 # depending on whether enable_blimp_client is set or not. | 14 # depending on whether enable_blimp_client is set or not. |
| 15 group("core_shim") { | 15 group("core_shim") { |
| 16 visibility = [ "//blimp/client/public" ] | 16 visibility = [ "//blimp/client/public" ] |
| 17 | 17 |
| 18 if (enable_blimp_client) { | 18 if (enable_blimp_client) { |
| 19 deps = [ | 19 deps = [ |
| 20 ":core", | 20 ":core", |
| 21 ] | 21 ] |
| 22 } else { | 22 } else { |
| 23 deps = [ | 23 deps = [ |
| 24 ":dummy_core", | 24 ":dummy_core", |
| 25 ] | 25 ] |
| 26 } | 26 } |
| 27 } | 27 } |
| 28 | 28 |
| 29 group("core") { | 29 group("core") { |
| 30 visibility = [ "//blimp/client/*" ] | 30 visibility = [ |
| 31 "//blimp/client/*", |
| 32 "//blimp/test/*", |
| 33 ] |
| 31 | 34 |
| 32 deps = [ | 35 deps = [ |
| 33 ":context", | 36 ":context", |
| 34 ":switches", | 37 ":switches", |
| 35 "//blimp/client/core/compositor", | 38 "//blimp/client/core/compositor", |
| 39 "//blimp/client/core/compositor:compositor_support", |
| 36 "//blimp/client/core/contents", | 40 "//blimp/client/core/contents", |
| 41 "//blimp/client/core/input", |
| 42 "//blimp/client/core/render_widget", |
| 37 "//blimp/client/core/session", | 43 "//blimp/client/core/session", |
| 38 ] | 44 ] |
| 39 } | 45 } |
| 40 | 46 |
| 41 source_set("dummy_core") { | 47 source_set("dummy_core") { |
| 42 visibility = [ ":*" ] | 48 visibility = [ ":*" ] |
| 43 | 49 |
| 44 sources = [ | 50 sources = [ |
| 45 "dummy_blimp_client_context.cc", | 51 "dummy_blimp_client_context.cc", |
| 46 "dummy_blimp_client_context.h", | 52 "dummy_blimp_client_context.h", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 67 testonly = true | 73 testonly = true |
| 68 | 74 |
| 69 sources = [ | 75 sources = [ |
| 70 "blimp_client_context_impl_unittest.cc", | 76 "blimp_client_context_impl_unittest.cc", |
| 71 ] | 77 ] |
| 72 | 78 |
| 73 deps = [ | 79 deps = [ |
| 74 ":context", | 80 ":context", |
| 75 "//blimp/client/core/compositor:unit_tests", | 81 "//blimp/client/core/compositor:unit_tests", |
| 76 "//blimp/client/core/contents:unit_tests", | 82 "//blimp/client/core/contents:unit_tests", |
| 83 "//blimp/client/core/render_widget:unit_tests", |
| 77 "//blimp/client/core/session:unit_tests", | 84 "//blimp/client/core/session:unit_tests", |
| 78 "//blimp/client/public:public_headers", | 85 "//blimp/client/public:public_headers", |
| 79 "//blimp/client/test", | 86 "//blimp/client/test", |
| 80 "//testing/gmock", | 87 "//testing/gmock", |
| 81 "//testing/gtest", | 88 "//testing/gtest", |
| 82 ] | 89 ] |
| 83 } | 90 } |
| 84 | 91 |
| 85 source_set("context") { | 92 source_set("context") { |
| 86 sources = [ | 93 sources = [ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 ":core_java", | 141 ":core_java", |
| 135 ] | 142 ] |
| 136 } else { | 143 } else { |
| 137 deps = [ | 144 deps = [ |
| 138 ":dummy_core_java", | 145 ":dummy_core_java", |
| 139 ] | 146 ] |
| 140 } | 147 } |
| 141 } | 148 } |
| 142 | 149 |
| 143 java_group("core_java") { | 150 java_group("core_java") { |
| 144 visibility = [ "//blimp/client/*" ] | 151 visibility = [ |
| 152 "//blimp/client/*", |
| 153 "//blimp/test/*", |
| 154 "//blimp:blimp_unittests_java_deps", |
| 155 ] |
| 145 | 156 |
| 146 deps = [ | 157 deps = [ |
| 147 ":context_java", | 158 ":context_java", |
| 148 ":settings_java", | 159 ":settings_java", |
| 149 ":switches_java", | 160 ":switches_java", |
| 150 "//blimp/client/core/contents:contents_java", | 161 "//blimp/client/core/contents:contents_java", |
| 151 ] | 162 ] |
| 152 } | 163 } |
| 153 | 164 |
| 154 android_library("dummy_core_java") { | 165 android_library("dummy_core_java") { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 generate_jni("dummy_core_jni_headers") { | 224 generate_jni("dummy_core_jni_headers") { |
| 214 visibility = [ ":*" ] | 225 visibility = [ ":*" ] |
| 215 | 226 |
| 216 sources = [ | 227 sources = [ |
| 217 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", | 228 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", |
| 218 ] | 229 ] |
| 219 | 230 |
| 220 jni_package = "blimp/client/core" | 231 jni_package = "blimp/client/core" |
| 221 } | 232 } |
| 222 } | 233 } |
| OLD | NEW |