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

Functions

 RunSteps (api)
 
 GenTests (api)
 

Variables

str PYTHON_VERSION_COMPATIBILITY = "PY3"
 
list DEPS
 
list TEST_BUILDERS
 

Function Documentation

◆ GenTests()

compile.GenTests (   api)

Definition at line 55 of file compile.py.

55def GenTests(api):
56 for builder in TEST_BUILDERS:
57 test = (
58 api.test(builder) +
59 api.properties(buildername=builder,
60 repository='https://skia.googlesource.com/skia.git',
61 revision='abc123',
62 path_config='kitchen',
63 swarm_out_dir='[SWARM_OUT_DIR]')
64 )
65 if 'Win' in builder:
66 test += api.platform('win', 64)
67 yield test

◆ RunSteps()

compile.RunSteps (   api)

Definition at line 26 of file compile.py.

26def RunSteps(api):
27 api.vars.setup()
28
29 checkout_root = api.path['start_dir']
30 out_dir = api.vars.cache_dir.join(
31 'work', 'skia', 'out', api.vars.builder_name, api.vars.configuration)
32
33 try:
34 api.build(checkout_root=checkout_root, out_dir=out_dir)
35
36 # TODO(borenet): Move this out of the try/finally.
37 dst = api.vars.swarming_out_dir
38 api.build.copy_build_products(out_dir=out_dir, dst=dst)
39 finally:
40 if 'Win' in api.vars.builder_cfg.get('os', ''):
41 script = api.build.resource('cleanup_win_processes.py')
42 api.step(
43 name='cleanup',
44 cmd=['vpython3', script],
45 infra_step=True)
46
47 api.run.check_failure()
48
49

Variable Documentation

◆ DEPS

list compile.DEPS
Initial value:
1= [
2 'build',
3 'checkout',
4 'recipe_engine/context',
5 'recipe_engine/file',
6 'recipe_engine/json',
7 'recipe_engine/path',
8 'recipe_engine/platform',
9 'recipe_engine/properties',
10 'recipe_engine/step',
11 'run',
12 'vars',
13]

Definition at line 11 of file compile.py.

◆ PYTHON_VERSION_COMPATIBILITY

str compile.PYTHON_VERSION_COMPATIBILITY = "PY3"

Definition at line 9 of file compile.py.

◆ TEST_BUILDERS

list compile.TEST_BUILDERS
Initial value:
1= [
2 'Build-Win-Clang-x86-Debug',
3]

Definition at line 50 of file compile.py.