Add usesweightlist option
if usesweightlist=<file path>, ninja prioritizes some
works by calculating critical path from weight list.
a priority list is a csv file, it looks like
<output file path>,<weight>
<output file path>,<weight>
In PS#12, divide weight and priorty.
In PS#7, remove usesbuildlogtoprioritize, and add usesprioritylist.
Bug: 271527305
Test: NINJA_PRIORITY_FROM_BUILD_LOG=true m
and then check if it uses priority.
Change-Id: I463dc2a8a38e977d84f37f2d975582560b8c22fd
5 files changed