| 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 declare_args() { | 10 declare_args() { |
| 11 # Enables blimp. This is required to get the real implementation of blimp. | 11 # Enables the blimp client. This is required to get the actual implementation |
| 12 # of blimp. |
| 12 # By default, only a dummy-implementation is provided. | 13 # By default, only a dummy-implementation is provided. |
| 13 enable_blimp = false | 14 enable_blimp_client = false |
| 14 } | 15 } |
| 15 | 16 |
| 16 # This target is here to let //chrome depend on //blimp/client/public | 17 # This target is here to let //chrome depend on //blimp/client/public |
| 17 # and automatically get the correct implementation of //blimp/client/core | 18 # and automatically get the correct implementation of //blimp/client/core |
| 18 # depending on whether enable_blimp is set or not. | 19 # depending on whether enable_blimp_client is set or not. |
| 19 group("core_shim") { | 20 group("core_shim") { |
| 20 visibility = [ "//blimp/client/public" ] | 21 visibility = [ "//blimp/client/public" ] |
| 21 | 22 |
| 22 if (enable_blimp) { | 23 if (enable_blimp_client) { |
| 23 deps = [ | 24 deps = [ |
| 24 ":core", | 25 ":core", |
| 25 ] | 26 ] |
| 26 } else { | 27 } else { |
| 27 deps = [ | 28 deps = [ |
| 28 ":dummy_core", | 29 ":dummy_core", |
| 29 ] | 30 ] |
| 30 } | 31 } |
| 31 } | 32 } |
| 32 | 33 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 119 |
| 119 sources = [ | 120 sources = [ |
| 120 "blimp_client_switches.cc", | 121 "blimp_client_switches.cc", |
| 121 "blimp_client_switches.h", | 122 "blimp_client_switches.h", |
| 122 ] | 123 ] |
| 123 } | 124 } |
| 124 | 125 |
| 125 if (is_android) { | 126 if (is_android) { |
| 126 # This target is here to let //chrome depend on | 127 # This target is here to let //chrome depend on |
| 127 # //blimp/client/public:public_java and automatically get the correct | 128 # //blimp/client/public:public_java and automatically get the correct |
| 128 # implementation of //blimp/client/core depending on whether enable_blimp is | 129 # implementation of //blimp/client/core depending on whether |
| 129 # set or not. | 130 # enable_blimp_client is set or not. |
| 130 java_group("core_shim_java") { | 131 java_group("core_shim_java") { |
| 131 visibility = [ "//blimp/client/public/*" ] | 132 visibility = [ "//blimp/client/public/*" ] |
| 132 | 133 |
| 133 if (enable_blimp) { | 134 if (enable_blimp_client) { |
| 134 deps = [ | 135 deps = [ |
| 135 ":core_java", | 136 ":core_java", |
| 136 ] | 137 ] |
| 137 } else { | 138 } else { |
| 138 deps = [ | 139 deps = [ |
| 139 ":dummy_core_java", | 140 ":dummy_core_java", |
| 140 ] | 141 ] |
| 141 } | 142 } |
| 142 } | 143 } |
| 143 | 144 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 generate_jni("dummy_core_jni_headers") { | 195 generate_jni("dummy_core_jni_headers") { |
| 195 visibility = [ ":*" ] | 196 visibility = [ ":*" ] |
| 196 | 197 |
| 197 sources = [ | 198 sources = [ |
| 198 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", | 199 "android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java", |
| 199 ] | 200 ] |
| 200 | 201 |
| 201 jni_package = "blimp/client/core" | 202 jni_package = "blimp/client/core" |
| 202 } | 203 } |
| 203 } | 204 } |
| OLD | NEW |