| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 import("//chromecast/chromecast.gni") | 5 import("//chromecast/chromecast.gni") |
| 6 | 6 |
| 7 # These targets shall only be referenced on Android builds. | 7 # These targets shall only be referenced on Android builds. |
| 8 assert(is_android) | 8 assert(is_android) |
| 9 | 9 |
| 10 # This source_set should only contain headers for internal code. These must be | 10 # This source_set should only contain headers for internal code. These must be |
| 11 # built separately from public stub implementations of this code to keep the | 11 # built separately from public stub implementations of this code to keep the |
| 12 # dependency tree clean. | 12 # dependency tree clean. |
| 13 source_set("platform_jni_loader") { | 13 source_set("platform_jni_loader") { |
| 14 sources = [ | 14 sources = [ |
| 15 "platform_jni_loader.h", | 15 "platform_jni_loader.h", |
| 16 ] | 16 ] |
| 17 } | 17 } |
| 18 | 18 |
| 19 shared_library("libcast_shell_android") { | 19 shared_library("libcast_shell_android") { |
| 20 sources = [ | 20 sources = [ |
| 21 "//chromecast/app/android/cast_jni_loader.cc", | 21 "//chromecast/app/android/cast_jni_loader.cc", |
| 22 "cast_jni_registrar.cc", | 22 "cast_jni_registrar.cc", |
| 23 "cast_jni_registrar.h", | 23 "cast_jni_registrar.h", |
| 24 "cast_metrics_helper_android.cc", | |
| 25 "cast_metrics_helper_android.h", | |
| 26 ] | 24 ] |
| 27 | 25 |
| 28 deps = [ | 26 deps = [ |
| 29 ":platform_jni_loader", | 27 ":platform_jni_loader", |
| 30 "//base", | 28 "//base", |
| 31 "//chromecast:cast_shell_lib", | 29 "//chromecast:cast_shell_lib", |
| 32 "//chromecast/app", | 30 "//chromecast/app", |
| 33 "//chromecast/app:cast_crash_client", | 31 "//chromecast/app:cast_crash_client", |
| 34 "//chromecast/base", | 32 "//chromecast/base", |
| 35 "//chromecast/base:cast_sys_info", | 33 "//chromecast/base:cast_sys_info", |
| 36 "//chromecast/base:jni_headers", | 34 "//chromecast/base:jni_headers", |
| 37 "//chromecast/base/metrics", | 35 "//chromecast/base/metrics", |
| 38 "//chromecast/browser", | 36 "//chromecast/browser", |
| 39 "//chromecast/browser:jni_headers", | |
| 40 "//content/public/app:both", | 37 "//content/public/app:both", |
| 41 "//content/public/browser", | 38 "//content/public/browser", |
| 42 "//skia", | 39 "//skia", |
| 43 ] | 40 ] |
| 44 | 41 |
| 45 if (chromecast_branding == "public") { | 42 if (chromecast_branding == "public") { |
| 46 sources += [ "platform_jni_loader_stub.cc" ] | 43 sources += [ "platform_jni_loader_stub.cc" ] |
| 47 } | 44 } |
| 48 } | 45 } |
| OLD | NEW |