Flutter Engine
The Flutter Engine
Functions | Variables
dia_dll Namespace Reference

Functions

def GetDiaDll ()
 
def CopyFile (src, dst)
 
def CopyDiaDllTo (target_dir)
 
def main ()
 

Variables

 THIS_DIR = os.path.abspath(os.path.dirname(__file__))
 
 LLVM_BUILD_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', 'buildtools', 'windows-x64', 'clang'))
 

Function Documentation

◆ CopyDiaDllTo()

def dia_dll.CopyDiaDllTo (   target_dir)

Definition at line 68 of file dia_dll.py.

68def CopyDiaDllTo(target_dir):
69 # This script always wants to use the 64-bit msdia*.dll.
70 dia_dll = GetDiaDll()
71 CopyFile(dia_dll, target_dir)
72
73
def GetDiaDll()
Definition: dia_dll.py:24
def CopyDiaDllTo(target_dir)
Definition: dia_dll.py:68
#define CopyFile

◆ CopyFile()

def dia_dll.CopyFile (   src,
  dst 
)
Copy a file from src to dst.

Definition at line 62 of file dia_dll.py.

62def CopyFile(src, dst):
63 """Copy a file from src to dst."""
64 print("Copying %s to %s" % (str(src), str(dst)))
65 shutil.copy(src, dst)
66
67
def print(*args, **kwargs)
Definition: run_tests.py:49

◆ GetDiaDll()

def dia_dll.GetDiaDll ( )
Get the location of msdia*.dll for the platform.

Definition at line 24 of file dia_dll.py.

24def GetDiaDll():
25 """Get the location of msdia*.dll for the platform."""
26
27 # Bump after VC updates.
28 DIA_DLL = {
29 '2013': 'msdia120.dll',
30 '2015': 'msdia140.dll',
31 '2017': 'msdia140.dll',
32 '2019': 'msdia140.dll',
33 '2022': 'msdia140.dll',
34 }
35
36 # Don't let vs_toolchain overwrite our environment.
37 environ_bak = os.environ
38
39 sys.path.append(os.path.join(THIS_DIR, '..', '..', 'build'))
40 import vs_toolchain
43
44 if bool(int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '1'))):
45 # Depot tools .zip layout:
46 # \- DIA SDK
47 # \- Windows Kits
48 # \- 10
49 # \- ... # Location of `DEPOT_TOOLS_WIN_TOOLCHAIN`
50 dia_path = os.path.join(win_sdk_dir, '..', '..', 'DIA SDK', 'bin', 'amd64')
51 else:
52 if 'GYP_MSVS_OVERRIDE_PATH' in os.environ:
53 vs_path = os.environ['GYP_MSVS_OVERRIDE_PATH']
54 else:
56 dia_path = os.path.join(vs_path, 'DIA SDK', 'bin', 'amd64')
57
58 os.environ = environ_bak
59 return os.path.join(dia_path, DIA_DLL[msvs_version])
60
61
def DetectVisualStudioPath()
def GetVisualStudioVersion()
def SetEnvironmentAndGetSDKDir()

◆ main()

def dia_dll.main ( )

Definition at line 74 of file dia_dll.py.

74def main():
75 CopyDiaDllTo(os.path.join(LLVM_BUILD_DIR, 'bin'))
76 return 0
77
78
def main()
Definition: dia_dll.py:74

Variable Documentation

◆ LLVM_BUILD_DIR

dia_dll.LLVM_BUILD_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', 'buildtools', 'windows-x64', 'clang'))

Definition at line 21 of file dia_dll.py.

◆ THIS_DIR

dia_dll.THIS_DIR = os.path.abspath(os.path.dirname(__file__))

Definition at line 20 of file dia_dll.py.