0

I am using the ndk along with Eclipse ADT to build apps for Android and it works fine. However I am wondering why the building process involves compiling both for arm and for thumb, ie every time I do a modification in a source file it re-compiles both for arm and thumb. Is it necessary ? If not how can I tell the builder to only compile and link with armabi-V7a ? That would divide by 2 my build process time...

4

1 回答 1

1

您可能的意思是,对于 arm v6 和 arm v7a?两者都可以编译为 ARM 或 THUMB。这由Android.mk中的 LOCAL_ARM_MODE 控制。要禁用armeabi,请设置

APP_ABI=armeabi-v7a

Application.mk中。这不仅会减少您的构建时间,还会减少 APK 的大小。

于 2014-09-30T18:12:24.607 回答