Flutter Engine
The Flutter Engine
Classes | Namespaces | Functions | Variables
utils.py File Reference

Go to the source code of this file.

Classes

class  utils.Version
 
class  utils.Error
 
class  utils.TempDir
 
class  utils.UnexpectedCrash
 
class  utils.PosixCoreDumpEnabler
 
class  utils.LinuxCoreDumpEnabler
 
class  utils.WindowsCoreDumpEnabler
 
class  utils.BaseCoreDumpArchiver
 
class  utils.PosixCoreDumpArchiver
 
class  utils.LinuxCoreDumpArchiver
 
class  utils.MacOSCoreDumpArchiver
 
class  utils.WindowsCoreDumpArchiver
 
class  utils.IncreasedNumberOfFileDescriptors
 

Namespaces

namespace  utils
 

Functions

def utils.GetArchFamily (arch)
 
def utils.GetBuildDir (host_os)
 
def utils.GetBuildMode (mode)
 
def utils.GetBuildSanitizer (sanitizer)
 
def utils.GetBaseDir ()
 
def utils.load_source (modname, filename)
 
def utils.GetBotUtils (repo_path=DART_DIR)
 
def utils.GetMinidumpUtils (repo_path=DART_DIR)
 
def utils.GuessOS ()
 
def utils.IsRosetta ()
 
def utils.HostArchitectures ()
 
def utils.GuessArchitecture ()
 
def utils.GuessCpus ()
 
def utils.IsWindows ()
 
def utils.IsCrossBuild (target_os, arch)
 
def utils.GetBuildConf (mode, arch, conf_os=None, sanitizer=None)
 
def utils.GetBuildRoot (host_os, mode=None, arch=None, target_os=None, sanitizer=None)
 
def utils.GetVersion (no_git_hash=False, version_file=None, git_revision_file=None)
 
def utils.GetChannel (version_file=None)
 
def utils.ReadVersionFile (version_file=None)
 
def utils.GetGitRevision (git_revision_file=None, repo_path=DART_DIR)
 
def utils.GetShortGitHash (repo_path=DART_DIR)
 
def utils.GetGitTimestamp (git_timestamp_file=None, repo_path=DART_DIR)
 
def utils.IsCrashExitCode (exit_code)
 
def utils.DiagnoseExitCode (exit_code, command)
 
def utils.CheckedInSdkPath ()
 
def utils.CheckedInSdkExecutable ()
 
def utils.CheckLinuxCoreDumpPattern (fatal=False)
 
def utils.TryUnlink (file)
 
def utils.NooptContextManager ()
 
def utils.CoreDumpArchiver (args)
 
def utils.FileDescriptorLimitIncreaser ()
 
def utils.Main ()
 

Variables

string utils.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 utils.GIT_NUMBER_BASE = 100000
 
dictionary utils.BUILD_SANITIZERS
 
dictionary utils.ARCH_FAMILY
 
 utils.BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..'))
 
 utils.DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..'))
 
 utils.VERSION_FILE = os.path.join(DART_DIR, 'tools', 'VERSION')