![]() |
Flutter Engine
The Flutter Engine
|
Functions | |
def | SetEnvironmentAndGetRuntimeDllDirs () |
def | GetVisualStudioVersion () |
def | DetectVisualStudioPath () |
def | FindVCComponentRoot (component) |
def | FindVCRedistRoot () |
def | CopyDlls (target_dir, configuration, target_cpu) |
def | ShouldUpdateToolchain () |
def | Update (force=False, no_download=False) |
def | NormalizePath (path) |
def | SetEnvironmentAndGetSDKDir () |
def | GetToolchainDir () |
def | main () |
Variables | |
string | TOOLCHAIN_HASH = '27370823e7' |
string | SDK_VERSION = '10.0.22621.0' |
script_dir = os.path.dirname(os.path.realpath(__file__)) | |
json_data_file = os.path.join(script_dir, 'win_toolchain.json') | |
MSVS_VERSIONS | |
dictionary | MSVC_TOOLSET_VERSION |
def vs_toolchain.CopyDlls | ( | target_dir, | |
configuration, | |||
target_cpu | |||
) |
Copy the VS runtime DLLs into the requested directory as needed. configuration is one of 'Debug' or 'Release'. target_cpu is one of 'x86', 'x64' or 'arm64'. The debug configuration gets both the debug and release DLLs; the release config only the latter.
Definition at line 375 of file vs_toolchain.py.
def vs_toolchain.DetectVisualStudioPath | ( | ) |
Return path to the installed Visual Studio.
Definition at line 207 of file vs_toolchain.py.
def vs_toolchain.FindVCComponentRoot | ( | component | ) |
Find the most recent Tools or Redist or other directory in an MSVC install. Typical results are {toolchain_root}/VC/{component}/MSVC/{x.y.z}. The {x.y.z} version number part changes frequently so the highest version number found is used.
Definition at line 337 of file vs_toolchain.py.
def vs_toolchain.FindVCRedistRoot | ( | ) |
In >=VS2017, Redist binaries are located in {toolchain_root}/VC/Redist/MSVC/{x.y.z}/{target_cpu}/. This returns the '{toolchain_root}/VC/Redist/MSVC/{x.y.z}/' path.
Definition at line 358 of file vs_toolchain.py.
def vs_toolchain.GetToolchainDir | ( | ) |
Gets location information about the current toolchain (must have been previously updated by 'update'). This is used for the GN build.
Definition at line 562 of file vs_toolchain.py.
def vs_toolchain.GetVisualStudioVersion | ( | ) |
Return best available version of Visual Studio.
Definition at line 165 of file vs_toolchain.py.
def vs_toolchain.main | ( | ) |
Definition at line 581 of file vs_toolchain.py.
def vs_toolchain.NormalizePath | ( | path | ) |
Definition at line 541 of file vs_toolchain.py.
def vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs | ( | ) |
Sets up os.environ to use the depot_tools VS toolchain with gyp, and returns the location of the VC runtime DLLs so they can be copied into the output directory after gyp generation. Return value is [x64path, x86path, 'Arm64Unused'] or None. arm64path is generated separately because there are multiple folders for the arm64 VC runtime.
Definition at line 69 of file vs_toolchain.py.
def vs_toolchain.SetEnvironmentAndGetSDKDir | ( | ) |
Gets location information about the current sdk (must have been previously updated by 'update'). This is used for the GN build.
Definition at line 547 of file vs_toolchain.py.
def vs_toolchain.ShouldUpdateToolchain | ( | ) |
Check if the toolchain should be upgraded.
Definition at line 465 of file vs_toolchain.py.
def vs_toolchain.Update | ( | force = False , |
|
no_download = False |
|||
) |
Requests an update of the toolchain to the specific hashes we have at this revision. The update outputs a .json of the various configuration information required to pass to gyp which we use in |GetToolchainDir()|. If no_download is true then the toolchain will be configured if present but will not be downloaded.
Definition at line 478 of file vs_toolchain.py.
vs_toolchain.json_data_file = os.path.join(script_dir, 'win_toolchain.json') |
Definition at line 46 of file vs_toolchain.py.
dictionary vs_toolchain.MSVC_TOOLSET_VERSION |
Definition at line 59 of file vs_toolchain.py.
vs_toolchain.MSVS_VERSIONS |
Definition at line 51 of file vs_toolchain.py.
vs_toolchain.script_dir = os.path.dirname(os.path.realpath(__file__)) |
Definition at line 45 of file vs_toolchain.py.
string vs_toolchain.SDK_VERSION = '10.0.22621.0' |
Definition at line 43 of file vs_toolchain.py.
string vs_toolchain.TOOLCHAIN_HASH = '27370823e7' |
Definition at line 42 of file vs_toolchain.py.