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

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

Issue 2292663002: add gn_android_flavor (Closed)
Patch Set: Created 4 years, 4 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/flavor/gn_android_flavor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/recipe_modules/flavor/api.py
diff --git a/infra/bots/recipe_modules/flavor/api.py b/infra/bots/recipe_modules/flavor/api.py
index 433f11b5b9e5eec5b4f2746ffecd38b5555812c2..bff316a9e7aacd293757c591da1a9e746acc171a 100644
--- a/infra/bots/recipe_modules/flavor/api.py
+++ b/infra/bots/recipe_modules/flavor/api.py
@@ -12,6 +12,7 @@ from . import android_flavor
from . import cmake_flavor
from . import coverage_flavor
from . import default_flavor
+from . import gn_android_flavor
from . import gn_flavor
from . import ios_flavor
from . import pdfium_flavor
@@ -62,6 +63,10 @@ def is_xsan(builder_cfg):
class SkiaFlavorApi(recipe_api.RecipeApi):
def get_flavor(self, builder_cfg):
"""Return a flavor utils object specific to the given builder."""
+ gn_android = gn_android_flavor.GNAndroidFlavorUtils(self.m)
+ if gn_android.supported():
+ return gn_android
+
gn = gn_flavor.GNFlavorUtils(self.m)
if gn.supported():
return gn
« no previous file with comments | « no previous file | infra/bots/recipe_modules/flavor/gn_android_flavor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698