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 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 | 6 |
7 assert(is_android) | 7 assert(is_android) |
8 | 8 |
9 # GYP target: chromecast.gyp:cast_shell_manifest | 9 # GYP target: chromecast.gyp:cast_shell_manifest |
10 jinja_template("cast_shell_manifest") { | 10 jinja_template("cast_shell_manifest") { |
11 input = "apk/AndroidManifest.xml.jinja2" | 11 input = "apk/AndroidManifest.xml.jinja2" |
12 output = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" | 12 output = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" |
13 } | 13 } |
14 | 14 |
15 # GYP target: n/a | 15 # GYP target: n/a |
16 android_resources("cast_shell_android_resources") { | 16 android_resources("cast_shell_android_resources") { |
17 android_manifest = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" | 17 android_manifest = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" |
| 18 android_manifest_dep = ":cast_shell_manifest" |
18 resource_dirs = [ "//chromecast/browser/android/apk/res" ] | 19 resource_dirs = [ "//chromecast/browser/android/apk/res" ] |
19 deps = [ | |
20 ":cast_shell_manifest", | |
21 ] | |
22 } | 20 } |
23 | 21 |
24 # GYP target: chromecast.gyp:cast_shell_java | 22 # GYP target: chromecast.gyp:cast_shell_java |
25 android_library("cast_shell_java") { | 23 android_library("cast_shell_java") { |
26 java_src_dir = "//chromecast/browser/android/apk/src" | 24 java_src_dir = "//chromecast/browser/android/apk/src" |
27 java_files = [ | 25 java_files = [ |
28 "$java_src_dir/org/chromium/chromecast/shell/CastApplication.java", | 26 "$java_src_dir/org/chromium/chromecast/shell/CastApplication.java", |
29 "$java_src_dir/org/chromium/chromecast/shell/CastAudioManager.java", | 27 "$java_src_dir/org/chromium/chromecast/shell/CastAudioManager.java", |
30 "$java_src_dir/org/chromium/chromecast/shell/CastBrowserHelper.java", | 28 "$java_src_dir/org/chromium/chromecast/shell/CastBrowserHelper.java", |
31 "$java_src_dir/org/chromium/chromecast/shell/CastCrashHandler.java", | 29 "$java_src_dir/org/chromium/chromecast/shell/CastCrashHandler.java", |
(...skipping 12 matching lines...) Expand all Loading... |
44 "//components/external_video_surface:java", | 42 "//components/external_video_surface:java", |
45 "//content/public/android:content_java", | 43 "//content/public/android:content_java", |
46 "//media/base/android:media_java", | 44 "//media/base/android:media_java", |
47 "//net/android:net_java", | 45 "//net/android:net_java", |
48 | 46 |
49 # TODO(slan): We may need to pass this in as a parameter. | 47 # TODO(slan): We may need to pass this in as a parameter. |
50 "//third_party/android_tools:android_support_v13_java", | 48 "//third_party/android_tools:android_support_v13_java", |
51 "//ui/android:ui_java", | 49 "//ui/android:ui_java", |
52 ] | 50 ] |
53 } | 51 } |
OLD | NEW |