I build follow the doc.
1.) Install Git
3.) Update depot_tools by executing the following into your terminal/shell:
gclient
4.) Go into the directory where you want to download the V8 source into and execute the following in your terminal/shell:
fetch v8
cd v8
5.) Make sure that you are in the V8 source directory. If you followed every step up until step 4.) you already should be at the right location.
6.) Download all the build dependencies by executing the following in your terminal/shell:
gclient sync
7.) Generate the necessary build files by executing the following in your terminal/shell:
gn gen out.gn\myandroid --args='is_debug = false target_cpu = "arm" v8_target_cpu = "arm" target_os="android" is_component_build = false v8_use_snapshot = false v8_enable_i18n_support = false'
8.) Compile the source by executing the following in your terminal/shell:
ninja -C out.gn/myandroid.release
Build success with no error.but only output libv8_libplatform.a and libv8_libbase.a.The other target is nothing.
What does "clang_x86_v8_arm" mean?? android emulator??
How to build v8 arm for android on ubuntu?
cd out.gn/myandroid/obj // or where you compiled v8 as a result of the ninja call.
mkdir libs
cd libs
ar -rcsD libv8_base.a ../v8_base/*.o
ar -rcsD libv8_libbase.a ../v8_libbase/*.o
ar -rcsD libv8_libsampler.a ../v8_libsampler/*.o
ar -rcsD libv8_libplatform.a ../v8_libplatform/*.o
ar -rcsD libv8_nosnapshot.a ../v8_nosnapshot/*.o
ar -rcsD libv8_snapshot.a ../v8_snapshot/*.o
ar -rcsD libv8_external_snapshot.a ../v8_external_snapshot/*.o