Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/shell/android/BUILD.gn

Issue 1421473010: Replace most uses of asset_location with android_assets() template (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/content_unittests.isolate ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//build_overrides/v8.gni") 7 import("//build_overrides/v8.gni")
8 import("//third_party/icu/config.gni") 8 import("//third_party/icu/config.gni")
9 9
10 generate_jni("content_shell_jni_headers") { 10 generate_jni("content_shell_jni_headers") {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ":content_shell_java", 79 ":content_shell_java",
80 "//base:base_java", 80 "//base:base_java",
81 "//content/public/android:content_java", 81 "//content/public/android:content_java",
82 "//media/base/android:media_java", 82 "//media/base/android:media_java",
83 "//net/android:net_java", 83 "//net/android:net_java",
84 "//ui/android:ui_java", 84 "//ui/android:ui_java",
85 ] 85 ]
86 DEPRECATED_java_in_dir = "shell_apk/src" 86 DEPRECATED_java_in_dir = "shell_apk/src"
87 } 87 }
88 88
89 content_shell_assets_dir = "$root_build_dir/content_shell/assets" 89 android_assets("content_shell_assets") {
90 copy_ex("copy_content_shell_assets") {
91 clear_dir = true
92 dest = content_shell_assets_dir
93 sources = [ 90 sources = [
94 "$root_out_dir/content_shell.pak", 91 "$root_out_dir/content_shell.pak",
95 ] 92 ]
93 disable_compression = true
96 deps = [ 94 deps = [
97 "//content/shell:pak", 95 "//content/shell:pak",
96 "//third_party/icu:icu_assets",
97 "//v8:v8_external_startup_data_assets",
98 ] 98 ]
99
100 if (icu_use_data_file) {
101 sources += [ "$root_build_dir/icudtl.dat" ]
102 deps += [ "//third_party/icu:icudata" ]
103 }
104 if (v8_use_external_startup_data) {
105 renaming_sources = v8_external_startup_data_renaming_sources
106 renaming_destinations = v8_external_startup_data_renaming_destinations
107 deps += [ "//v8" ]
108 }
109 } 99 }
110 100
111 android_apk("content_shell_apk") { 101 android_apk("content_shell_apk") {
112 testonly = true 102 testonly = true
113 data_deps = [ 103 data_deps = [
114 # "//tools/android/forwarder", 104 # "//tools/android/forwarder",
115 ] 105 ]
116 deps = [ 106 deps = [
117 ":content_shell_apk_java", 107 ":content_shell_apk_java",
118 ":content_shell_apk_resources", 108 ":content_shell_apk_resources",
109 ":content_shell_assets",
119 ":content_shell_java", 110 ":content_shell_java",
120 ":content_shell_manifest", 111 ":content_shell_manifest",
121 ":copy_content_shell_assets",
122 ":libcontent_shell_content_view", 112 ":libcontent_shell_content_view",
123 "//base:base_java", 113 "//base:base_java",
124 "//content/public/android:content_java", 114 "//content/public/android:content_java",
125 "//media/base/android:media_java", 115 "//media/base/android:media_java",
126 "//net/android:net_java", 116 "//net/android:net_java",
127 117
128 #"//third_party/mesa:osmesa_in_lib_dir", 118 #"//third_party/mesa:osmesa_in_lib_dir",
129 "//ui/android:ui_java", 119 "//ui/android:ui_java",
130 ] 120 ]
131 apk_name = "ContentShell" 121 apk_name = "ContentShell"
132 android_manifest = content_shell_manifest 122 android_manifest = content_shell_manifest
133 native_libs = [ "libcontent_shell_content_view.so" ] 123 native_libs = [ "libcontent_shell_content_view.so" ]
134 asset_location = content_shell_assets_dir
135 124
136 # TODO(GYP) 125 # TODO(GYP)
137 #'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'], 126 #'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
138 } 127 }
139 128
140 android_library("content_shell_test_java") { 129 android_library("content_shell_test_java") {
141 testonly = true 130 testonly = true
142 deps = [ 131 deps = [
143 ":content_shell_java", 132 ":content_shell_java",
144 ":content_shell_apk_java", 133 ":content_shell_apk_java",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 deps = [ 172 deps = [
184 ":chromium_linker_test_manifest", 173 ":chromium_linker_test_manifest",
185 ] 174 ]
186 } 175 }
187 176
188 # GYP: //content/content_tests.gypi:chromium_linker_test_apk 177 # GYP: //content/content_tests.gypi:chromium_linker_test_apk
189 android_apk("chromium_linker_test_apk") { 178 android_apk("chromium_linker_test_apk") {
190 testonly = true 179 testonly = true
191 deps = [ 180 deps = [
192 ":chromium_linker_test_manifest", 181 ":chromium_linker_test_manifest",
182 ":content_shell_assets",
193 ":content_shell_java", 183 ":content_shell_java",
194 ":copy_content_shell_assets",
195 ":linker_resources", 184 ":linker_resources",
196 ":linker_test", 185 ":linker_test",
197 "//base:base_java", 186 "//base:base_java",
198 "//content/public/android:content_java", 187 "//content/public/android:content_java",
199 "//ui/android:ui_java", 188 "//ui/android:ui_java",
200 ] 189 ]
201 android_manifest = chromium_linker_test_manifest 190 android_manifest = chromium_linker_test_manifest
202 asset_location = content_shell_assets_dir
203 apk_name = "ChromiumLinkerTest" 191 apk_name = "ChromiumLinkerTest"
204 DEPRECATED_java_in_dir = "linker_test_apk/src" 192 DEPRECATED_java_in_dir = "linker_test_apk/src"
205 native_libs = [ "liblinker_test.so" ] 193 native_libs = [ "liblinker_test.so" ]
206 use_chromium_linker = true 194 use_chromium_linker = true
207 enable_chromium_linker_tests = true 195 enable_chromium_linker_tests = true
208 } 196 }
209 197
210 # GYP: //content/content_tests.gypi:chromium_android_linker_test 198 # GYP: //content/content_tests.gypi:chromium_android_linker_test
211 shared_library("linker_test") { 199 shared_library("linker_test") {
212 testonly = true 200 testonly = true
(...skipping 16 matching lines...) Expand all
229 217
230 # GYP: //content/content_tests.gypi:chromium_android_linker_test_jni_headers 218 # GYP: //content/content_tests.gypi:chromium_android_linker_test_jni_headers
231 generate_jni("linker_test_jni_headers") { 219 generate_jni("linker_test_jni_headers") {
232 testonly = true 220 testonly = true
233 jni_package = "content/shell" 221 jni_package = "content/shell"
234 sources = [ 222 sources = [
235 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.jav a", 223 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.jav a",
236 ] 224 ]
237 } 225 }
238 } 226 }
OLDNEW
« no previous file with comments | « content/content_unittests.isolate ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698