Flutter Engine
The Flutter Engine
Functions | Variables
activate_emsdk Namespace Reference

Functions

def main ()
 

Variables

 EMSDK_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', 'prebuilts', 'emsdk'))
 
 EMSDK_PATH = os.path.join(EMSDK_ROOT, 'emsdk.py')
 
string EMSDK_VERSION = '3.1.44'
 

Function Documentation

◆ main()

def activate_emsdk.main ( )

Definition at line 20 of file activate_emsdk.py.

20def main():
21 try:
22 subprocess.check_call([sys.executable, EMSDK_PATH, 'install', EMSDK_VERSION],
23 stdout=subprocess.DEVNULL)
24 except subprocess.CalledProcessError:
25 print('Failed to install emsdk')
26 return 1
27 try:
28 subprocess.check_call([sys.executable, EMSDK_PATH, 'activate', EMSDK_VERSION],
29 stdout=subprocess.DEVNULL)
30 except subprocess.CalledProcessError:
31 print('Failed to activate emsdk')
32 return 1
33
34
def print(*args, **kwargs)
Definition: run_tests.py:49

Variable Documentation

◆ EMSDK_PATH

activate_emsdk.EMSDK_PATH = os.path.join(EMSDK_ROOT, 'emsdk.py')

Definition at line 14 of file activate_emsdk.py.

◆ EMSDK_ROOT

activate_emsdk.EMSDK_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', 'prebuilts', 'emsdk'))

Definition at line 12 of file activate_emsdk.py.

◆ EMSDK_VERSION

string activate_emsdk.EMSDK_VERSION = '3.1.44'

Definition at line 17 of file activate_emsdk.py.