OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 | 7 |
8 generate_jni("content_shell_jni_headers") { | 8 generate_jni("content_shell_jni_headers") { |
9 jni_package = "content/shell" | 9 jni_package = "content/shell" |
10 sources = [ | 10 sources = [ |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 android_resources("content_shell_java_resources") { | 38 android_resources("content_shell_java_resources") { |
39 resource_dirs = [ "java/res" ] | 39 resource_dirs = [ "java/res" ] |
40 custom_package = "org.chromium.content_shell" | 40 custom_package = "org.chromium.content_shell" |
41 } | 41 } |
42 | 42 |
43 android_library("content_shell_java") { | 43 android_library("content_shell_java") { |
44 deps = [ | 44 deps = [ |
45 "//base:base_java", | 45 "//base:base_java", |
46 "//content/public/android:content_java", | 46 "//content/public/android:content_java", |
47 "//media:media_java", | 47 "//media/base/android:media_java", |
48 "//net/android:net_java", | 48 "//net/android:net_java", |
49 "//ui/android:ui_java", | 49 "//ui/android:ui_java", |
50 ":content_shell_java_resources", | 50 ":content_shell_java_resources", |
51 ] | 51 ] |
52 DEPRECATED_java_in_dir = "java/src" | 52 DEPRECATED_java_in_dir = "java/src" |
53 } | 53 } |
54 | 54 |
55 android_resources("content_shell_apk_resources") { | 55 android_resources("content_shell_apk_resources") { |
56 resource_dirs = [ "shell_apk/res" ] | 56 resource_dirs = [ "shell_apk/res" ] |
57 deps = [ | 57 deps = [ |
58 ":content_shell_java_resources" | 58 ":content_shell_java_resources" |
59 ] | 59 ] |
60 android_manifest = "shell_apk/AndroidManifest.xml" | 60 android_manifest = "shell_apk/AndroidManifest.xml" |
61 } | 61 } |
62 | 62 |
| 63 android_library("content_shell_apk_java") { |
| 64 deps = [ |
| 65 ":content_shell_apk_resources", |
| 66 ":content_shell_java", |
| 67 "//base:base_java", |
| 68 "//content/public/android:content_java", |
| 69 "//media/base/android:media_java", |
| 70 "//net/android:net_java", |
| 71 "//ui/android:ui_java", |
| 72 ] |
| 73 DEPRECATED_java_in_dir = "shell_apk/src" |
| 74 } |
| 75 |
63 android_apk("content_shell_apk") { | 76 android_apk("content_shell_apk") { |
64 datadeps = [ | 77 datadeps = [ |
65 # "//tools/android/forwarder", | 78 # "//tools/android/forwarder", |
66 ] | 79 ] |
67 deps = [ | 80 deps = [ |
68 ":content_shell_apk_resources", | 81 ":content_shell_apk_resources", |
69 ":content_shell_java", | 82 ":content_shell_java", |
| 83 ":content_shell_apk_java", |
70 ":libcontent_shell_content_view", | 84 ":libcontent_shell_content_view", |
71 "//base:base_java", | 85 "//base:base_java", |
72 "//content/public/android:content_java", | 86 "//content/public/android:content_java", |
73 "//content/public/android:content_java_resources", | 87 "//content/public/android:content_java_resources", |
74 "//media:media_java", | 88 "//media/base/android:media_java", |
75 "//net/android:net_java", | 89 "//net/android:net_java", |
76 #"//third_party/mesa:osmesa_in_lib_dir", | 90 #"//third_party/mesa:osmesa_in_lib_dir", |
77 "//ui/android:ui_java", | 91 "//ui/android:ui_java", |
78 ] | 92 ] |
79 apk_name = "ContentShell" | 93 apk_name = "ContentShell" |
80 android_manifest = "shell_apk/AndroidManifest.xml" | 94 android_manifest = "shell_apk/AndroidManifest.xml" |
81 DEPRECATED_java_in_dir = "shell_apk/src" | |
82 native_libs = [ | 95 native_libs = [ |
83 "$root_build_dir/lib.stripped/libcontent_shell_content_view.so" | 96 "$root_build_dir/lib.stripped/libcontent_shell_content_view.so" |
84 ] | 97 ] |
85 asset_location = "$root_build_dir/content_shell/assets" | 98 asset_location = "$root_build_dir/content_shell/assets" |
86 | 99 |
87 # TODO(GYP) | 100 # TODO(GYP) |
88 #'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell
.pak'], | 101 #'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell
.pak'], |
89 #'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'], | 102 #'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'], |
90 | 103 |
91 if (false && icu_use_data_file_flag) { | 104 if (false && icu_use_data_file_flag) { |
92 # TODO(GYP) | 105 # TODO(GYP) |
93 } | 106 } |
94 | 107 |
95 if (is_android_webview_build) { | 108 if (is_android_webview_build) { |
96 # TODO(GYP) | 109 # TODO(GYP) |
97 } | 110 } |
98 } | 111 } |
| 112 |
| 113 android_library("content_shell_test_java") { |
| 114 deps = [ |
| 115 ":content_shell_java", |
| 116 ":content_shell_apk_java", |
| 117 "//base:base_java", |
| 118 "//base:base_java_test_support", |
| 119 "//content/public/test/android:content_java_test_support", |
| 120 "//content/shell/android:content_shell_java", |
| 121 "//content/public/android:content_java", |
| 122 ] |
| 123 DEPRECATED_java_in_dir = "javatests/src" |
| 124 } |
| 125 |
| 126 android_apk("content_shell_test_apk") { |
| 127 deps = [ |
| 128 "//content/public/android:content_javatests", |
| 129 "//base:base_javatests", |
| 130 "//net/android:net_javatests", |
| 131 ] |
| 132 apk_name = "ContentShellTest" |
| 133 android_manifest = "javatests/AndroidManifest.xml" |
| 134 } |
OLD | NEW |