cocos-engine-external
cocos-engine-external copied to clipboard
V8 libs compiling question
Hi minggo, how do you compile V8 libraries for Windows and Android platform? May you share your compiling script or options?
Grateful! !
@minggo @PatriceJiang ,
I'd like to re-compile V8 for android and ios. Would you please share your compiling script or options? Thanks
@cooperkuo sorry for late reply. @fastOakan sure. @PatriceJiang could you please share it?
Can i know why you want to compile it yourself? Because you should modify engine codes to adapt it.
@minggo there are some V8 crash reported from field, and I'd like to figure out root cause. There are lots of update to 8.0-lkgr branch of V8, and the crash problem may be fixed by these update.
By the way, I'm using CocosCreator 2.4.3.
Got it. @PatriceJiang is on holiday these days. He may come back next Monday.
@PatriceJiang I have some urgent issue related with V8 and I'd like to change V8 code, so I need to re-compile V8. Would you please share v8 compile configuration?
Checkout v8 source code to 8.0.426.16
args.gn
contents :
Android
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
is_component_build = false
is_debug = false
target_cpu = "arm64"
v8_target_cpu = "arm64"
target_os = "android"
use_goma = false
goma_dir = "None"
v8_use_external_startup_data = false
icu_use_data_file=false
clang_use_chrome_plugins = false
v8_monolithic=true
use_custom_libcxx=false
strip_debug_info=true
v8_enable_i18n_support = false # Produces a smaller binary.
iOS
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
ios_deployment_target = 10
is_component_build = false
is_debug = false
target_cpu = "arm64"
target_os = "ios"
use_custom_libcxx = false # Use Xcode's libcxx.
use_xcode_clang = true
v8_enable_i18n_support = false # Produces a smaller binary.
v8_monolithic = true # Enable the v8_monolith target.
v8_use_external_startup_data = false # The snaphot is included in the binary.
v8_static_library=true
treat_warnings_as_errors=false
v8_enable_pointer_compression=false
win32
is_clang=true
is_debug=false
target_cpu="x86"
is_component_build=true
icu_use_data_file=false
use_custom_libcxx=false
v8_use_external_startup_data=false
v8_enable_i18n_support = false # Produces a smaller binary.
@fastOakan @cooperkuo
linux
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
target_os = "linux"
use_custom_libcxx = false
clang_use_chrome_plugins = false
is_component_build = false
is_debug = false
target_cpu = "x64"
v8_static_library = true
v8_monolithic = true
v8_use_external_startup_data = false
v8_enable_test_features = false
v8_enable_i18n_support = false
symbol_level = 0
The crash we encountered in the background of Firebase , any suggestions?
+1
https://github.com/dumganhar/v8/blob/main/build-android.sh
@dumganhar