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

Side by Side Diff: android_webview/BUILD.gn

Issue 2699473002: Reland of Android: Use linker script to hide all non-JNI symbols (Closed)
Patch Set: fix loadable_module Created 3 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 | « no previous file | android_webview/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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//android_webview/system_webview_apk_tmpl.gni") 5 import("//android_webview/system_webview_apk_tmpl.gni")
6 import("//android_webview/webview_repack_locales.gni") 6 import("//android_webview/webview_repack_locales.gni")
7 import("//build/config/android/config.gni") 7 import("//build/config/android/config.gni")
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//components/spellcheck/spellcheck_build_features.gni") 10 import("//components/spellcheck/spellcheck_build_features.gni")
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 ] 305 ]
306 sources = [ 306 sources = [
307 "lib/main/webview_entry_point.cc", 307 "lib/main/webview_entry_point.cc",
308 ] 308 ]
309 } 309 }
310 310
311 shared_library("libwebviewchromium") { 311 shared_library("libwebviewchromium") {
312 deps = [ 312 deps = [
313 ":webview_entry_point", 313 ":webview_entry_point",
314 ] 314 ]
315 configs -= [ "//build/config/android:hide_native_jni_exports" ] 315 configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
316 configs += [ "//build/config/android:hide_all_but_jni" ]
316 } 317 }
317 318
318 if (android_64bit_target_cpu) { 319 if (android_64bit_target_cpu) {
319 android_assets("v8_snapshot_secondary_abi_assets") { 320 android_assets("v8_snapshot_secondary_abi_assets") {
320 _secondary_abi_out_dir = 321 _secondary_abi_out_dir =
321 get_label_info("//v8($android_secondary_abi_toolchain)", "root_out_dir") 322 get_label_info("//v8($android_secondary_abi_toolchain)", "root_out_dir")
322 assert(android_64bit_target_cpu, 323 assert(android_64bit_target_cpu,
323 "32-bit targets shouldn't have secondary abi") 324 "32-bit targets shouldn't have secondary abi")
324 arch_suffix = "32" 325 arch_suffix = "32"
325 renaming_sources = [ "$_secondary_abi_out_dir/snapshot_blob.bin" ] 326 renaming_sources = [ "$_secondary_abi_out_dir/snapshot_blob.bin" ]
326 renaming_destinations = [ "snapshot_blob_$arch_suffix.bin" ] 327 renaming_destinations = [ "snapshot_blob_$arch_suffix.bin" ]
327 disable_compression = true 328 disable_compression = true
328 deps = [ 329 deps = [
329 "//v8($android_secondary_abi_toolchain)", 330 "//v8($android_secondary_abi_toolchain)",
330 ] 331 ]
331 } 332 }
332 333
333 shared_library("monochrome") { 334 shared_library("monochrome") {
334 deps = [ 335 deps = [
335 ":webview_entry_point", 336 ":webview_entry_point",
336 ] 337 ]
337 configs -= [ "//build/config/android:hide_native_jni_exports" ] 338 configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
339 configs += [ "//build/config/android:hide_all_but_jni" ]
338 } 340 }
339 } 341 }
340 342
341 if (enable_resource_whitelist_generation) { 343 if (enable_resource_whitelist_generation) {
342 generate_resource_whitelist("system_webview_pak_whitelist") { 344 generate_resource_whitelist("system_webview_pak_whitelist") {
343 deps = [ 345 deps = [
344 ":libwebviewchromium", 346 ":libwebviewchromium",
345 ] 347 ]
346 input = "$root_out_dir/libwebviewchromium$shlib_extension.whitelist" 348 input = "$root_out_dir/libwebviewchromium$shlib_extension.whitelist"
347 output = system_webview_pak_whitelist 349 output = system_webview_pak_whitelist
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 system_webview_apk_tmpl("system_webview_apk") { 799 system_webview_apk_tmpl("system_webview_apk") {
798 android_manifest = system_webview_android_manifest 800 android_manifest = system_webview_android_manifest
799 android_manifest_dep = ":system_webview_manifest" 801 android_manifest_dep = ":system_webview_manifest"
800 deps = [ 802 deps = [
801 ":system_webview_resources", 803 ":system_webview_resources",
802 "//android_webview/glue", 804 "//android_webview/glue",
803 ] 805 ]
804 apk_name = "SystemWebView" 806 apk_name = "SystemWebView"
805 } 807 }
806 } 808 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698