Changeset View
Changeset View
Standalone View
Standalone View
helpers/create-abi-dump.py
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Line(s) | |||||
299 | accSettings = ToolingSettings.Loader( arguments.project, arguments.platform ) | 299 | accSettings = ToolingSettings.Loader( arguments.project, arguments.platform ) | ||
300 | accSettings.loadSpecificationFile( localMetadataPath ) | 300 | accSettings.loadSpecificationFile( localMetadataPath ) | ||
301 | 301 | | |||
302 | # Get ready to start searching for libraries | 302 | # Get ready to start searching for libraries | ||
303 | foundLibraries = [] | 303 | foundLibraries = [] | ||
304 | 304 | | |||
305 | # Search in the build log for the Installing/Up-to-date lines where we install the <name>Config.cmake files. | 305 | # Search in the build log for the Installing/Up-to-date lines where we install the <name>Config.cmake files. | ||
306 | # From this we get a complete List of installed libraries. | 306 | # From this we get a complete List of installed libraries. | ||
307 | cmakeConfig = re.compile("^-- (Installing|Up-to-date): .*/([^/]*)Config\.cmake$") | 307 | cmakeConfig = re.compile("-- (Installing|Up-to-date): .*/([^/]*)Config\.cmake$") | ||
308 | with open(arguments.buildLog, encoding='utf-8') as log: | 308 | with open(arguments.buildLog, encoding='utf-8') as log: | ||
309 | for line in log.readlines(): | 309 | for line in log.readlines(): | ||
310 | match = cmakeConfig.match(line) | 310 | match = cmakeConfig.search(line) | ||
311 | if match: | 311 | if match: | ||
312 | foundLibrary = Library( match.group(2), accSettings ) | 312 | foundLibrary = Library( match.group(2), accSettings ) | ||
313 | foundLibraries.append(foundLibrary) | 313 | foundLibraries.append(foundLibrary) | ||
314 | 314 | | |||
315 | # Initialize the archive manager | 315 | # Initialize the archive manager | ||
316 | ourArchive = Packages.Archive(arguments.environment, 'ABIReference', usingCache = False, contentsSuffix = ".abidump") | 316 | ourArchive = Packages.Archive(arguments.environment, 'ABIReference', usingCache = False, contentsSuffix = ".abidump") | ||
317 | 317 | | |||
318 | # Determine which SCM revision we are storing | 318 | # Determine which SCM revision we are storing | ||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |