Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: infra/bots/recipe_modules/skia/api.py

Issue 2189713003: recipes: Add a GN flavor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | infra/bots/recipe_modules/skia/fake_specs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/recipe_modules/skia/api.py
diff --git a/infra/bots/recipe_modules/skia/api.py b/infra/bots/recipe_modules/skia/api.py
index 58d51ec7ec5997fc5b572e32f418597417dc8289..a173601e64badea13f16854323bcc4bed2253bec 100644
--- a/infra/bots/recipe_modules/skia/api.py
+++ b/infra/bots/recipe_modules/skia/api.py
@@ -19,6 +19,7 @@ from . import cmake_flavor
from . import coverage_flavor
from . import default_flavor
from . import fake_specs
+from . import gn_flavor
from . import ios_flavor
from . import pdfium_flavor
from . import valgrind_flavor
@@ -66,6 +67,10 @@ def is_cmake(builder_cfg):
return 'CMake' in builder_cfg.get('extra_config', '')
+def is_gn(builder_cfg):
+ return 'GN' == builder_cfg.get('extra_config', '')
+
+
def is_ios(builder_cfg):
return ('iOS' in builder_cfg.get('extra_config', '') or
builder_cfg.get('os') == 'iOS')
@@ -93,6 +98,8 @@ class SkiaApi(recipe_api.RecipeApi):
return android_flavor.AndroidFlavorUtils(self)
elif is_cmake(builder_cfg):
return cmake_flavor.CMakeFlavorUtils(self)
+ elif is_gn(builder_cfg):
+ return gn_flavor.GNFlavorUtils(self)
elif is_ios(builder_cfg):
return ios_flavor.iOSFlavorUtils(self)
elif is_pdfium(builder_cfg):
« no previous file with comments | « no previous file | infra/bots/recipe_modules/skia/fake_specs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698