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

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

Issue 640363002: Make crazy linker work in gn build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-chrome-shell-apk
Patch Set: Created 6 years, 2 months 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_tests.gypi ('k') | mojo/android/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("//third_party/icu/config.gni") 7 import("//third_party/icu/config.gni")
8 8
9 generate_jni("content_shell_jni_headers") { 9 generate_jni("content_shell_jni_headers") {
10 jni_package = "content/shell" 10 jni_package = "content/shell"
11 sources = [ 11 sources = [
12 "browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTe stsActivity.java", 12 "browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTe stsActivity.java",
13 "java/src/org/chromium/content_shell/ShellLayoutTestUtils.java", 13 "java/src/org/chromium/content_shell/ShellLayoutTestUtils.java",
14 "java/src/org/chromium/content_shell/ShellManager.java", 14 "java/src/org/chromium/content_shell/ShellManager.java",
15 "java/src/org/chromium/content_shell/ShellMojoTestUtils.java", 15 "java/src/org/chromium/content_shell/ShellMojoTestUtils.java",
16 "java/src/org/chromium/content_shell/Shell.java", 16 "java/src/org/chromium/content_shell/Shell.java",
17 ] 17 ]
18 } 18 }
19 19
20 shared_library("libcontent_shell_content_view") { 20 shared_library("libcontent_shell_content_view") {
21 testonly = true 21 testonly = true
22 deps = [ 22 deps = [
23 ":content_shell_jni_headers", 23 ":content_shell_jni_headers",
24 "//content/shell:content_shell_lib", 24 "//content/shell:content_shell_lib",
25 "//content/shell:pak", 25 "//content/shell:pak",
26 "//components/crash/browser", 26 "//components/crash/browser",
27 "//skia", 27 "//skia",
28 "//media/base/android", 28 "//media/base/android",
29 "//mojo/android:libsystem_java",
30 ] 29 ]
31 sources = [ 30 sources = [
32 "shell_library_loader.cc", 31 "shell_library_loader.cc",
33 "shell_library_loader.h", 32 "shell_library_loader.h",
34 ] 33 ]
35 if (is_android_webview_build) { 34 if (is_android_webview_build) {
36 ldflags = [ 35 ldflags = [
37 "-lgabi++", 36 "-lgabi++",
38 ] 37 ]
39 } 38 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ] 90 ]
92 91
93 if (icu_use_data_file) { 92 if (icu_use_data_file) {
94 sources += [ 93 sources += [
95 "$root_build_dir/icudtl.dat" 94 "$root_build_dir/icudtl.dat"
96 ] 95 ]
97 } 96 }
98 } 97 }
99 98
100 android_apk("content_shell_apk") { 99 android_apk("content_shell_apk") {
100 use_chromium_linker = true
101 testonly = true 101 testonly = true
102 datadeps = [ 102 datadeps = [
103 # "//tools/android/forwarder", 103 # "//tools/android/forwarder",
104 ] 104 ]
105 deps = [ 105 deps = [
106 ":content_shell_apk_resources", 106 ":content_shell_apk_resources",
107 ":content_shell_java", 107 ":content_shell_java",
108 ":content_shell_apk_java", 108 ":content_shell_apk_java",
109 ":libcontent_shell_content_view", 109 ":libcontent_shell_content_view",
110 ":copy_content_shell_assets", 110 ":copy_content_shell_assets",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 "//content/public/android:content_javatests", 150 "//content/public/android:content_javatests",
151 "//base:base_javatests", 151 "//base:base_javatests",
152 "//net/android:net_javatests", 152 "//net/android:net_javatests",
153 ] 153 ]
154 datadeps = [ 154 datadeps = [
155 ":content_shell_apk", 155 ":content_shell_apk",
156 ] 156 ]
157 apk_name = "ContentShellTest" 157 apk_name = "ContentShellTest"
158 android_manifest = "javatests/AndroidManifest.xml" 158 android_manifest = "javatests/AndroidManifest.xml"
159 } 159 }
160
161 if (cpu_arch != "x64" && cpu_arch != "arm64") {
162
163 android_resources("linker_resources") {
164 resource_dirs = [ "linker_test_apk/res" ]
165 android_manifest = "linker_test_apk/AndroidManifest.xml"
166 }
167
168 # GYP: //content/content_tests.gypi:chromium_linker_test_apk
169 android_apk("chromium_linker_test_apk") {
170 testonly = true
171 deps = [
172 ":content_shell_java",
173 ":copy_content_shell_assets",
174 ":linker_resources",
175 ":linker_test",
176 "//base:base_java",
177 "//content/public/android:content_java",
178 "//ui/android:ui_java",
179 ]
180 android_manifest = "linker_test_apk/AndroidManifest.xml"
181 asset_location = content_shell_assets_dir
182 apk_name = "ChromiumLinkerTest"
183 DEPRECATED_java_in_dir = "linker_test_apk/src"
184 native_libs = [
185 "$root_build_dir/lib.stripped/liblinker_test.so"
186 ]
187 use_chromium_linker = true
188 enable_chromium_linker_tests = true
189 }
190
191
192 # GYP: //content/content_tests.gypi:chromium_android_linker_test
193 shared_library("linker_test") {
194 testonly = true
195 sources = [
196 "linker_test_apk/chromium_linker_test_android.cc",
197 "linker_test_apk/chromium_linker_test_linker_tests.cc",
198 ]
199
200 deps = [
201 ":linker_test_jni_headers",
202 "//content/shell:content_shell_lib",
203 # Required to include "content/public/browser/android/compositor.h"
204 # in chromium_linker_test_android.cc :-(
205 "//skia",
206 ]
207 }
208
209 # GYP: //content/content_tests.gypi:chromium_android_linker_test_jni_headers
210 generate_jni("linker_test_jni_headers") {
211 testonly = true
212 jni_package = "content/shell"
213 sources = [
214 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.jav a",
215 ]
216 }
217 }
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | mojo/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698