其他分享
首页 > 其他分享> > 加快Androd 编译!

加快Androd 编译!

作者:互联网


【2021-09-08】

使用方法
./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-xxx.ninja 相当于make,xxx为对应的lunch项,
示例
编译Settings
./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-xxx.ninja Settings -j32
编译selinux
./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-xxx.ninja selinux_policy -j32
编译Framework
./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-xxx.ninja framework -j32
全编译
./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-xxx.ninja -j32 2>&1 |tee ninja_build.log

WIFI-service

./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-xxx.ninja com.android.wifi -j16

 

标签:加快,xxx,编译,build,linux,Androd,ninja,tools,out
来源: https://www.cnblogs.com/huangguanyuan/p/15243861.html