Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.generate_cas_paths Namespace Reference

Functions

 parse_runtime_deps (runtime_deps)
 
 resolve_paths (root, initial_paths)
 
 expand_dir (path)
 
 replace_output (resolved, output_path)
 
 main ()
 

Variables

dict EXCLUDE_DIRS
 

Detailed Description

Tool for converting GN runtime_deps to CAS archive paths.

Function Documentation

◆ expand_dir()

testing.tools.generate_cas_paths.expand_dir ( path)
Explicitly expands directory if any children are excluded.

Definition at line 53 of file generate_cas_paths.py.

Referenced by testing.tools.generate_cas_paths.resolve_paths().

+ Here is the caller graph for this function:

◆ main()

testing.tools.generate_cas_paths.main ( )

Definition at line 85 of file generate_cas_paths.py.

References testing.tools.generate_cas_paths.main(), testing.tools.generate_cas_paths.parse_runtime_deps(), testing.tools.generate_cas_paths.replace_output(), and testing.tools.generate_cas_paths.resolve_paths().

Referenced by testing.tools.generate_cas_paths.main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_runtime_deps()

testing.tools.generate_cas_paths.parse_runtime_deps ( runtime_deps)
Parses GN's `runtime_deps` format.

Definition at line 21 of file generate_cas_paths.py.

Referenced by testing.tools.generate_cas_paths.main().

+ Here is the caller graph for this function:

◆ replace_output()

testing.tools.generate_cas_paths.replace_output ( resolved,
output_path )
Atomically replaces the output with the resolved JSON if changed.

Definition at line 67 of file generate_cas_paths.py.

References open().

Referenced by testing.tools.generate_cas_paths.main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_paths()

testing.tools.generate_cas_paths.resolve_paths ( root,
initial_paths )
Converts paths to CAS archive paths format.

Definition at line 27 of file generate_cas_paths.py.

References testing.tools.generate_cas_paths.expand_dir(), and map.

Referenced by testing.tools.generate_cas_paths.main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ EXCLUDE_DIRS

dict testing.tools.generate_cas_paths.EXCLUDE_DIRS
Initial value:
1= {
2 '.git',
3 '__pycache__',
4}

Definition at line 15 of file generate_cas_paths.py.