加快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

 

上一篇:方舟编译器分析二——编译器安装与使用


下一篇:第10节 使用ninja构建