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

Side by Side Diff: chrome/android/BUILD.gn

Issue 864563002: Separate JNI registration with initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments and sync Created 5 years, 10 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 | « chrome/BUILD.gn ('k') | chrome/app/android/chrome_android_initializer.h » ('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/module_args/v8.gni") 7 import("//build/module_args/v8.gni")
8 import("//chrome/version.gni") 8 import("//chrome/version.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//third_party/icu/config.gni") 10 import("//third_party/icu/config.gni")
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 # TODO(GYP): 180 # TODO(GYP):
181 #[ 'order_profiling!=0', { 181 #[ 'order_profiling!=0', {
182 #'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ], 182 #'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
183 #}], 183 #}],
184 } 184 }
185 185
186 # GYP: //chrome/chrome_shell.gypi:libchromeshell 186 # GYP: //chrome/chrome_shell.gypi:libchromeshell
187 shared_library("chrome_shell") { 187 shared_library("chrome_shell") {
188 testonly = true 188 testonly = true
189 sources = [ 189 sources = [
190 # This file must always be included in the shared_library step to ensure
191 # JNI_OnLoad is exported.
192 "//chrome/app/android/chrome_jni_onload.cc",
193 "shell/chrome_main_delegate_chrome_shell_android.cc", 190 "shell/chrome_main_delegate_chrome_shell_android.cc",
194 "shell/chrome_main_delegate_chrome_shell_android.h", 191 "shell/chrome_main_delegate_chrome_shell_android.h",
195 ] 192 ]
196 deps = [ 193 deps = [
197 ":chrome_shell_base", 194 ":chrome_shell_base",
198 ] 195 ]
199 196
200 # GYP: via base/files/protect_file_posix.gypi 197 # GYP: via base/files/protect_file_posix.gypi
201 # TODO(pasko): Remove this non-trivial linker wrapping as soon as 198 # TODO(pasko): Remove this non-trivial linker wrapping as soon as
202 # crbug.com/424562 is fixed. 199 # crbug.com/424562 is fixed.
203 if (!is_component_build) { 200 if (!is_component_build) {
204 ldflags = [ "-Wl,--wrap=close" ] 201 ldflags = [ "-Wl,--wrap=close" ]
205 deps += [ "//base:protect_file_posix" ] 202 deps += [ "//base:protect_file_posix" ]
206 } 203 }
207 } 204 }
208 205
209 # GYP: //chrome/chrome_shell.gypi:libchromesyncshell 206 # GYP: //chrome/chrome_shell.gypi:libchromesyncshell
210 shared_library("chrome_sync_shell") { 207 shared_library("chrome_sync_shell") {
211 testonly = true 208 testonly = true
212 sources = [ 209 sources = [
213 # This file must always be included in the shared_library step to ensure
214 # JNI_OnLoad is exported.
215 #"//chrome/app/android/chrome_jni_onload.cc",
216 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc", 210 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc",
217 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.h", 211 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.h",
218 ] 212 ]
219 deps = [ 213 deps = [
220 "//sync:test_support_sync_fake_server_android", 214 "//sync:test_support_sync_fake_server_android",
221 ] 215 ]
222 datadeps = [ 216 datadeps = [
223 ":chrome_shell_base", 217 ":chrome_shell_base",
224 ] 218 ]
225 } 219 }
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 ] 494 ]
501 } 495 }
502 496
503 zip("chrome_version_srcjar") { 497 zip("chrome_version_srcjar") {
504 inputs = [ 498 inputs = [
505 chrome_version_java_file, 499 chrome_version_java_file,
506 ] 500 ]
507 output = "$target_gen_dir/$target_name.srcjar" 501 output = "$target_gen_dir/$target_name.srcjar"
508 base_dir = chrome_version_java_dir 502 base_dir = chrome_version_java_dir
509 } 503 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/app/android/chrome_android_initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698