Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
build.api.BuildApi Class Reference
Inheritance diagram for build.api.BuildApi:

Public Member Functions

def __init__ (self, buildername, *args, **kwargs)
 
def __call__ (self, checkout_root, out_dir)
 
def copy_build_products (self, out_dir, dst)
 

Public Attributes

 compile_fn
 
 copy_fn
 

Detailed Description

Definition at line 20 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

def build.api.BuildApi.__init__ (   self,
  buildername,
args,
**  kwargs 
)

Definition at line 21 of file api.py.

21 def __init__(self, buildername, *args, **kwargs):
22 b = buildername
23 if 'Android' in b and not 'Flutter' in b:
24 self.compile_fn = android.compile_fn
25 self.copy_fn = android.copy_build_products
26 elif 'Chromebook' in b:
27 self.compile_fn = chromebook.compile_fn
28 self.copy_fn = chromebook.copy_build_products
29 elif 'EMCC' in b:
30 if 'PathKit' in b:
31 self.compile_fn = pathkit.compile_fn
32 self.copy_fn = pathkit.copy_build_products
33 else:
34 self.compile_fn = canvaskit.compile_fn
35 self.copy_fn = canvaskit.copy_build_products
36 elif 'CMake' in b:
37 self.compile_fn = cmake.compile_fn
38 self.copy_fn = cmake.copy_build_products
39 elif 'Docker' in b:
40 self.compile_fn = docker.compile_fn
41 self.copy_fn = docker.copy_build_products
42 else:
43 self.compile_fn = default.compile_fn
44 self.copy_fn = default.copy_build_products
45 super(BuildApi, self).__init__(*args, **kwargs)
46

Member Function Documentation

◆ __call__()

def build.api.BuildApi.__call__ (   self,
  checkout_root,
  out_dir 
)
Compile the code.

Definition at line 47 of file api.py.

47 def __call__(self, checkout_root, out_dir):
48 """Compile the code."""
49 self.compile_fn(self.m, checkout_root, out_dir)
50

◆ copy_build_products()

def build.api.BuildApi.copy_build_products (   self,
  out_dir,
  dst 
)
Copy selected build products to dst.

Definition at line 51 of file api.py.

51 def copy_build_products(self, out_dir, dst):
52 """Copy selected build products to dst."""
53 self.copy_fn(self.m, out_dir, dst)
def copy_build_products(api, src, dst)
Definition: android.py:116

Member Data Documentation

◆ compile_fn

build.api.BuildApi.compile_fn

Definition at line 24 of file api.py.

◆ copy_fn

build.api.BuildApi.copy_fn

Definition at line 25 of file api.py.


The documentation for this class was generated from the following file: