Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions | Variables
activate_emsdk Namespace Reference

Functions

 main ()
 

Variables

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

Function Documentation

◆ main()

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
void print(void *str)
Definition bridge.cpp:126
Definition main.py:1

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

str activate_emsdk.EMSDK_VERSION = '3.1.44'

Definition at line 17 of file activate_emsdk.py.