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

Unified Diff: scripts/slave/recipe_universe.py

Issue 1347263002: Revert of Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 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/webrtc/builders.py ('k') | scripts/slave/recipes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_universe.py
diff --git a/scripts/slave/recipe_universe.py b/scripts/slave/recipe_universe.py
new file mode 100644
index 0000000000000000000000000000000000000000..8969a315265dd2836d0f69e119c5ef2eeb90a0e8
--- /dev/null
+++ b/scripts/slave/recipe_universe.py
@@ -0,0 +1,27 @@
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+
+BUILD_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(
+ os.path.abspath(__file__))))
+BUILD_INTERNAL_ROOT = os.path.join(
+ os.path.dirname(BUILD_ROOT), 'build_internal')
+
+sys.path.append(os.path.join(BUILD_ROOT, 'third_party'))
+
+_UNIVERSE = None
+def get_universe():
+ from recipe_engine import loader
+ global _UNIVERSE
+ if _UNIVERSE is None:
+ roots = [BUILD_ROOT, BUILD_INTERNAL_ROOT]
+ _UNIVERSE = loader.RecipeUniverse(
+ module_dirs=[ os.path.join(root, 'scripts', 'slave', 'recipe_modules')
+ for root in roots ],
+ recipe_dirs=[ os.path.join(root, 'scripts', 'slave', 'recipes')
+ for root in roots ])
+ return _UNIVERSE
+
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/builders.py ('k') | scripts/slave/recipes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698