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