Which V8 static library files, generated by GN and Ninja, to be used to link with application?

206 views
Skip to first unread message

Manmohan Bishnoi

unread,
Dec 30, 2016, 1:18:02 AM12/30/16
to v8-users
I am trying to embed V8 into my android application's native code. But confused what static library files should I link with?

I am building V8 release 5.7.365 for Android ARM on Fedora 25 64bit.

gn args out/android_arm_debug

args.gn file has these contents:


##############################################
# Specify OS and CPU architecture
# CPU : x86, x64, arm, arm64
# OS  : win, linux, android
target_cpu
= "arm"
target_os
= "android"
# Disable Internationalization support
v8_enable_i18n_support
= false
# Enable Optimized Debug build
is_debug
= true
v8_optimized_debug
= true
# Enable static library
v8_static_library
= true
# Disable inspector
v8_enable_inspector
= false
##############################################


ninja -C out/android_arm_debug v8

Build runs fine. Then these directories and files are generated:

v8/out/android_arm_debug
clang_x86_v8_arm/
obj/
libv8_base.a (127.8 MB)
libv8_libsampler.a (63 KB)
libv8_nosnapshot.a (322 KB)

lib.unstripped/
obj/
libv8_base.a (1.5 GB)
libv8_libsampler.a (340 KB)
libv8_external_snapshot.a (2.3 MB)

Which one's should I link my android native code to?
Reply all
Reply to author
Forward
0 new messages