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

Unified Diff: tools/utils.py

Issue 10823209: Add support for building the Dart VM for Android OS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: build.py learned --os all option to build for both host and android. Created 8 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
« runtime/tools/android_finder.py ('K') | « tools/gyp/configurations_android.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/utils.py
diff --git a/tools/utils.py b/tools/utils.py
index 36ad7e1567dedaedd6121e5a88dfba68bb4623c7..45990e1809ed7e1efb0284b5f726458e0148e70d 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -135,12 +135,19 @@ def GetBuildConf(mode, arch):
ARCH_GUESS = GuessArchitecture()
BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..'))
-def GetBuildRoot(target_os, mode=None, arch=None):
+
+def GetBuildDir(host_os, target_os):
global BUILD_ROOT
+ build_dir = BUILD_ROOT[host_os]
+ if target_os and target_os != host_os:
+ build_dir = os.path.join(build_dir, target_os)
+ return build_dir
+
+def GetBuildRoot(host_os, mode=None, arch=None, target_os=None):
+ build_root = GetBuildDir(host_os, target_os)
if mode:
- return os.path.join(BUILD_ROOT[target_os], GetBuildConf(mode, arch))
- else:
- return BUILD_ROOT[target_os]
+ build_root = os.path.join(build_root, GetBuildConf(mode, arch))
+ return build_root
def GetBaseDir():
return BASE_DIR
« runtime/tools/android_finder.py ('K') | « tools/gyp/configurations_android.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698