14 from Extract.getDef
import getDefFunction
15 from Tool.tool
import getSourceCodePath
34 print(
"Usage: python extractLibAPI.py -cfg config.json")
40 with open(f
"Configure/{config}",
'r',encoding=
'UTF-8')
as fr:
41 libName=json.load(fr)[
'libName']
42 currentVersion, targetVersion, currentSourceCodePath, targetSourceCodePath =
getSourceCodePath(config)
45 print(currentVersion, currentSourceCodePath)
46 getLibAPI(currentVersion, libName, currentSourceCodePath)
49 print(targetVersion, targetSourceCodePath)
50 getLibAPI(targetVersion, libName, targetSourceCodePath)
52 if __name__==
'__main__':
def getDefFunction(args)
Extract all lib API definitions from a specified version 抽取给定版本的库API定义