Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
/ ninja-hacked Public archive
forked from ninja-build/ninja

a small build system with a focus on speed. (and I add a tool named as ToolOrigin, to figure out all the files which is related to some given files change)

License

Notifications You must be signed in to change notification settings

AOSPworking/ninja-hacked

 
 

Repository files navigation

ninja-hack

1. Usage

> python configure.py --bootstrap
> ./ninja -f new-build.ninja -t origin frameworks/opt/telephony/src/java/android/telephony/gsm/SmsManager.java > SmsManager.json

2. Description

关于这个 json 文件,里面结构是这样的:

{
    "nodes": [
        {
            "name": str,
            "distance": int
        }
    ],
    "edges": [
        {
            "target": [str],
            "source": [str],
            "impact_source": [str]
        }
    ],
    "node_num": int,
    "edge_nun": int
}

可以输出影响的每一个边和经过的节点,而且是从最底层的开始输出。

由此可以得到对 “‘每一个 impact_source 中属于源代码’ 的文件所在模块” 的影响。

About

a small build system with a focus on speed. (and I add a tool named as ToolOrigin, to figure out all the files which is related to some given files change)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 88.5%
  • Python 8.6%
  • C 2.0%
  • Other 0.9%