Files
android_development/tools/ninja_dependency_analysis
Krzysztof Kosiński 45c7ebda06 Remove Python enables identical to global defaults.
Bug: 245854393
Test: presubmit
Change-Id: I9bb5cbd972432a26afcb13d7c2a6bbc73fb0991f
2022-09-17 11:33:50 +00:00
..
2022-07-08 01:28:37 +00:00
2022-07-08 01:28:37 +00:00

./development/tools/ninja_dependency_analysis/collect_inputs.py -n <ninja binary> -f <ninja file> -t <target> -e <exempted_files> -r <repo project file> or -m <repo manifest file>

For example ./development/tools/ninja_dependency_analysis/collect_inputs.py -n prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-aosp_cf_x86_64_phone.ninja -t vendorimage -e development/tools/ninja_dependency_analysis/exempted_files -r .repo/project.list

Output:

{
    "inputs": [
        "foo/my.java",
        "foo/my2.java",
        "bar/my.cpp"
    ],
    "project_count": {
        "foo": 2,
        "bar": 1
    },
    "total_project_count": 2,
    "total_input_count": 3
}