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 # GYP target: chromecast.gyp:libcast_shell_android | |
20 shared_library("libcast_shell_android") { | 19 shared_library("libcast_shell_android") { |
21 sources = [ | 20 sources = [ |
22 "//chromecast/app/android/cast_jni_loader.cc", | 21 "//chromecast/app/android/cast_jni_loader.cc", |
23 "cast_jni_registrar.cc", | 22 "cast_jni_registrar.cc", |
24 "cast_jni_registrar.h", | 23 "cast_jni_registrar.h", |
25 "cast_metrics_helper_android.cc", | 24 "cast_metrics_helper_android.cc", |
26 "cast_metrics_helper_android.h", | 25 "cast_metrics_helper_android.h", |
27 ] | 26 ] |
28 | 27 |
29 deps = [ | 28 deps = [ |
(...skipping 12 matching lines...) Expand all Loading... |
42 "//content/public/browser", | 41 "//content/public/browser", |
43 "//skia", | 42 "//skia", |
44 ] | 43 ] |
45 | 44 |
46 if (chromecast_branding != "public") { | 45 if (chromecast_branding != "public") { |
47 deps += [ "//chromecast/internal:cast_shell_android_internal" ] | 46 deps += [ "//chromecast/internal:cast_shell_android_internal" ] |
48 } else { | 47 } else { |
49 sources += [ "platform_jni_loader_stub.cc" ] | 48 sources += [ "platform_jni_loader_stub.cc" ] |
50 } | 49 } |
51 } | 50 } |
OLD | NEW |