diff options
author | 2017-03-08 14:01:01 -0500 | |
---|---|---|
committer | 2017-03-08 19:41:14 +0000 | |
commit | dcd2a908f424f080170a7d415ea0280d186e5d7f (patch) | |
tree | 9f95e9b2f8733ec0247479ef46fdc1763d80106d /infra/bots/recipe_modules/flavor/api.py | |
parent | 30115680aef0323ae8aac6ceab0da937c2934779 (diff) |
Add jobs for building for Chromecast
BUG=skia:6345
Change-Id: Iaf09eb7f57ae71687c6804221837a8cc8ef04931
Reviewed-on: https://skia-review.googlesource.com/9419
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipe_modules/flavor/api.py')
-rw-r--r-- | infra/bots/recipe_modules/flavor/api.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/infra/bots/recipe_modules/flavor/api.py b/infra/bots/recipe_modules/flavor/api.py index c90136fac1..eadaea024c 100644 --- a/infra/bots/recipe_modules/flavor/api.py +++ b/infra/bots/recipe_modules/flavor/api.py @@ -11,6 +11,7 @@ from recipe_engine import recipe_api from . import default_flavor from . import flutter_flavor from . import gn_android_flavor +from . import gn_chromecast_flavor from . import gn_flavor from . import ios_flavor from . import pdfium_flavor @@ -30,6 +31,9 @@ VERSION_NONE = -1 def is_android(builder_cfg): return 'Android' in builder_cfg.get('extra_config', '') +def is_chromecast(builder_cfg): + return 'Chromecast' in builder_cfg.get('extra_config', '') + def is_flutter(builder_cfg): return 'Flutter' in builder_cfg.get('extra_config', '') @@ -48,6 +52,8 @@ class SkiaFlavorApi(recipe_api.RecipeApi): """Return a flavor utils object specific to the given builder.""" if is_flutter(builder_cfg): return flutter_flavor.FlutterFlavorUtils(self.m) + if is_chromecast(builder_cfg): + return gn_chromecast_flavor.GNChromecastFlavorUtils(self.m) if is_android(builder_cfg): return gn_android_flavor.GNAndroidFlavorUtils(self.m) elif is_ios(builder_cfg): |