0

We are working on the V8 version 5.3.332 & we choose to compile it as static library. We compiled the library with the following configuration.

MAKE_TARGET="android_$BUILD_LIB_VERSION.$BUILD_MODE" make $MAKE_TARGET -j1 snapshot=off debuggersupport=off GYPFLAGS="-Dandroid_ndk_root=$NDK_DIR -Dv8_use_snapshot='false' -Dv8_enable_i18n_support=0" ANDROID_NDK_ROOT=$NDK_DIR

With the above configuration, release version of libv8_base.a is around 35MB in size. So my question is, is V8 expected to be 35MB in size with i18n & snapshot support off ? is there any additional flags which help us to get the v8 size reduced further ?

One more observation is, even if we pass debuggersupport=off , we are still able to build & debug my JS app. So our expectation here is, debug API's would be stripped off from library and no more runtime JS debug support available. Please correct if we are not passing the build configuration properly

4

1 回答 1

1

您最终链接的二进制文件有多大?你给strip他们打电话了吗?相比之下,我d8为 Android/arm32 静态链接的 shell 版本大约为 9MB(对于当前的 V8 版本)。

于 2017-05-12T18:59:18.113 回答