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

Unified Diff: scripts/slave/recipe_modules/android/config.py

Issue 24737002: Add Paths as first-class types in configs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: license Created 7 years, 3 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 | « scripts/slave/recipe_modules/android/api.py ('k') | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/android/config.py
diff --git a/scripts/slave/recipe_modules/android/config.py b/scripts/slave/recipe_modules/android/config.py
index 711f464869a2b7ee2d7a25c5c1f8da5b96ce1d65..81fc0a4f66e5ae8bcb2214368f4af8a130d7e997 100644
--- a/scripts/slave/recipe_modules/android/config.py
+++ b/scripts/slave/recipe_modules/android/config.py
@@ -4,8 +4,12 @@
from slave.recipe_config import config_item_context, ConfigGroup, Single, List
from slave.recipe_config import Static
+from slave.recipe_config_types import Path
def BaseConfig(USE_MIRROR=False):
+ chromium_in_android_subpath = ('external', 'chromium_org')
+ build_path = Path('[SLAVE_BUILD]', 'android-src')
+
return ConfigGroup(
lunch_flavor = Single(basestring),
repo = ConfigGroup(
@@ -14,6 +18,13 @@ def BaseConfig(USE_MIRROR=False):
sync_flags = List(basestring),
),
USE_MIRROR = Static(bool(USE_MIRROR)),
+
+ # Path stuff
+ chromium_in_android_subpath = Static('/'.join(chromium_in_android_subpath)),
+ build_path = Static(build_path),
+ slave_chromium_in_android_path = Static(
+ build_path(*chromium_in_android_subpath)),
+ slave_android_out_path = Static(build_path('out')),
)
config_ctx = config_item_context(
« no previous file with comments | « scripts/slave/recipe_modules/android/api.py ('k') | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698