Flutter Engine
The Flutter Engine
|
Classes | |
class | BaseCoreDumpArchiver |
class | chdir |
class | Error |
class | git_branch |
class | IncreasedNumberOfFileDescriptors |
class | LinuxCoreDumpArchiver |
class | LinuxCoreDumpEnabler |
class | MacOSCoreDumpArchiver |
class | PosixCoreDumpArchiver |
class | PosixCoreDumpEnabler |
class | print_timings |
class | TempDir |
class | tmp_dir |
class | UnexpectedCrash |
class | Version |
class | WindowsCoreDumpArchiver |
class | WindowsCoreDumpEnabler |
Functions | |
def | GuessOS () |
def | GuessArchitecture () |
def | GuessCpus () |
def | IsWindows () |
def | ReadLinesFrom (name) |
def | ListArgCallback (option, opt_str, value, parser) |
def | ListDashArgCallback (option, opt_str, value, parser) |
def | GetBuildMode (mode) |
def | GetBuildConf (mode, arch) |
def | GetBuildRoot (host_os, mode=None, arch=None, sanitizer=None) |
def | RunCommand (command, input=None, pollFn=None, outStream=None, errStream=None, killOnEarlyReturn=True, verbose=False, debug=False, printErrorInfo=False) |
def | Main (argv) |
def | GetArchFamily (arch) |
def | GetBuildDir (host_os) |
def | GetBuildSanitizer (sanitizer) |
def | GetBaseDir () |
def | load_source (modname, filename) |
def | GetBotUtils (repo_path=DART_DIR) |
def | GetMinidumpUtils (repo_path=DART_DIR) |
def | IsRosetta () |
def | HostArchitectures () |
def | IsCrossBuild (target_os, arch) |
def | GetBuildConf (mode, arch, conf_os=None, sanitizer=None) |
def | GetBuildRoot (host_os, mode=None, arch=None, target_os=None, sanitizer=None) |
def | GetVersion (no_git_hash=False, version_file=None, git_revision_file=None) |
def | GetChannel (version_file=None) |
def | ReadVersionFile (version_file=None) |
def | GetGitRevision (git_revision_file=None, repo_path=DART_DIR) |
def | GetShortGitHash (repo_path=DART_DIR) |
def | GetGitTimestamp (git_timestamp_file=None, repo_path=DART_DIR) |
def | IsCrashExitCode (exit_code) |
def | DiagnoseExitCode (exit_code, command) |
def | CheckedInSdkPath () |
def | CheckedInSdkExecutable () |
def | CheckLinuxCoreDumpPattern (fatal=False) |
def | TryUnlink (file) |
def | NooptContextManager () |
def | CoreDumpArchiver (args) |
def | FileDescriptorLimitIncreaser () |
def | Main () |
def | git_clone (repo_url, dest_dir) |
def | RemoveDirectory (*path) |
Variables | |
dictionary | BUILD_MODES |
dictionary | BUILD_ROOT |
string | SEMANTIC_VERSION_PATTERN = r'^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$' |
int | GIT_NUMBER_BASE = 100000 |
dictionary | BUILD_SANITIZERS |
dictionary | ARCH_FAMILY |
BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) | |
DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) | |
VERSION_FILE = os.path.join(DART_DIR, 'tools', 'VERSION') | |
string | SKIA_REPO = 'https://skia.googlesource.com/skia.git' |
string | GCLIENT = 'win32' else 'gclient' |
string | WHICH = 'win32' else 'which' |
GIT = subprocess.check_output([WHICH, 'git']).decode('utf-8').splitlines()[0] | |
def utils.CheckedInSdkExecutable | ( | ) |
def utils.CheckedInSdkPath | ( | ) |
def utils.CheckLinuxCoreDumpPattern | ( | fatal = False | ) |
Definition at line 511 of file utils.py.
def utils.CoreDumpArchiver | ( | args | ) |
Definition at line 973 of file utils.py.
def utils.DiagnoseExitCode | ( | exit_code, | |
command | |||
) |
def utils.FileDescriptorLimitIncreaser | ( | ) |
def utils.GetArchFamily | ( | arch | ) |
def utils.GetBotUtils | ( | repo_path = DART_DIR | ) |
Dynamically load the tools/bots/bot_utils.py python module.
Definition at line 128 of file utils.py.
def utils.GetBuildConf | ( | mode, | |
arch | |||
) |
def utils.GetBuildConf | ( | mode, | |
arch, | |||
conf_os = None , |
|||
sanitizer = None |
|||
) |
def utils.GetBuildDir | ( | host_os | ) |
def utils.GetBuildMode | ( | mode | ) |
def utils.GetBuildRoot | ( | host_os, | |
mode = None , |
|||
arch = None , |
|||
sanitizer = None |
|||
) |
Definition at line 143 of file utils.py.
def utils.GetBuildRoot | ( | host_os, | |
mode = None , |
|||
arch = None , |
|||
target_os = None , |
|||
sanitizer = None |
|||
) |
Definition at line 349 of file utils.py.
def utils.GetBuildSanitizer | ( | sanitizer | ) |
def utils.GetChannel | ( | version_file = None | ) |
def utils.GetGitRevision | ( | git_revision_file = None , |
|
repo_path = DART_DIR |
|||
) |
Definition at line 415 of file utils.py.
def utils.GetGitTimestamp | ( | git_timestamp_file = None , |
|
repo_path = DART_DIR |
|||
) |
Definition at line 458 of file utils.py.
def utils.GetMinidumpUtils | ( | repo_path = DART_DIR | ) |
def utils.GetShortGitHash | ( | repo_path = DART_DIR | ) |
Definition at line 443 of file utils.py.
def utils.GetVersion | ( | no_git_hash = False , |
|
version_file = None , |
|||
git_revision_file = None |
|||
) |
Definition at line 357 of file utils.py.
def utils.git_clone | ( | repo_url, | |
dest_dir | |||
) |
def utils.GuessArchitecture | ( | ) |
Definition at line 42 of file utils.py.
def utils.GuessCpus | ( | ) |
Definition at line 55 of file utils.py.
def utils.GuessOS | ( | ) |
Definition at line 21 of file utils.py.
def utils.HostArchitectures | ( | ) |
Definition at line 263 of file utils.py.
def utils.IsCrashExitCode | ( | exit_code | ) |
def utils.IsCrossBuild | ( | target_os, | |
arch | |||
) |
def utils.IsRosetta | ( | ) |
Definition at line 252 of file utils.py.
def utils.IsWindows | ( | ) |
def utils.ListArgCallback | ( | option, | |
opt_str, | |||
value, | |||
parser | |||
) |
Definition at line 92 of file utils.py.
def utils.ListDashArgCallback | ( | option, | |
opt_str, | |||
value, | |||
parser | |||
) |
Definition at line 107 of file utils.py.
def utils.load_source | ( | modname, | |
filename | |||
) |
Definition at line 115 of file utils.py.
def utils.Main | ( | argv | ) |
def utils.NooptContextManager | ( | ) |
def utils.ReadLinesFrom | ( | name | ) |
def utils.ReadVersionFile | ( | version_file = None | ) |
Definition at line 381 of file utils.py.
def utils.RemoveDirectory | ( | * | path | ) |
Recursively removes a directory, even if it's marked read-only. This was copied from: https://chromium.googlesource.com/chromium/tools/build/+/f3e7ff03613cd59a463b2ccc49773c3813e77404/scripts/common/chromium_utils.py#491 Remove the directory located at *path, if it exists. shutil.rmtree() doesn't work on Windows if any of the files or directories are read-only, which svn repositories and some .svn files are. We need to be able to force the files to be writable (i.e., deletable) as we traverse the tree. Even with all this, Windows still sometimes fails to delete a file, citing a permission error (maybe something to do with antivirus scans or disk indexing). The best suggestion any of the user forums had was to wait a bit and try again, so we do that too. It's hand-waving, but sometimes it works. :/
Definition at line 118 of file utils.py.
def utils.RunCommand | ( | command, | |
input = None , |
|||
pollFn = None , |
|||
outStream = None , |
|||
errStream = None , |
|||
killOnEarlyReturn = True , |
|||
verbose = False , |
|||
debug = False , |
|||
printErrorInfo = False |
|||
) |
Run a command, with optional input and polling function. Args: command: list of the command and its arguments. input: optional string of input to feed to the command, it should be short enough to fit in an i/o pipe buffer. pollFn: if present will be called occasionally to check if the command should be finished early. If pollFn() returns true then the command will finish early. outStream: if present, the stdout output of the command will be written to outStream. errStream: if present, the stderr output of the command will be written to errStream. killOnEarlyReturn: if true and pollFn returns true, then the subprocess will be killed, otherwise the subprocess will be detached. verbose: if true, the command is echoed to stderr. debug: if true, prints debugging information to stderr. printErrorInfo: if true, prints error information when the subprocess returns a non-zero exit code. Returns: the output of the subprocess. Exceptions: Raises Error if the subprocess returns an error code. Raises ValueError if called with invalid arguments.
Definition at line 152 of file utils.py.
def utils.TryUnlink | ( | file | ) |
dictionary utils.ARCH_FAMILY |
utils.BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) |
dictionary utils.BUILD_MODES |
dictionary utils.BUILD_ROOT |
dictionary utils.BUILD_SANITIZERS |
utils.DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) |
string utils.SKIA_REPO = 'https://skia.googlesource.com/skia.git' |
utils.VERSION_FILE = os.path.join(DART_DIR, 'tools', 'VERSION') |