Index: build/android/pylib/constants.py |
diff --git a/build/android/pylib/constants.py b/build/android/pylib/constants.py |
index ea148e7358669f3343fdae31624d6d96c2e96e8c..ec513d63b346dbbe65180208af9ce3d3b5694ef3 100644 |
--- a/build/android/pylib/constants.py |
+++ b/build/android/pylib/constants.py |
@@ -131,6 +131,18 @@ def SetBuildType(build_type): |
os.environ['BUILDTYPE'] = build_type |
+def GetOutDirectory(build_type=None): |
frankf
2013/09/03 18:42:01
So you can also do:
SetBuildType('Debug')
GetOutD
craigdh
2013/09/03 22:48:18
As discussed offline, this provides a way to gener
|
+ """Returns the out directory where the output binaries are built. |
+ |
+ Args: |
+ build_type: Build type, generally 'Debug' or 'Release'. Defaults to the |
+ globally set build type environment variable BUILDTYPE. |
+ """ |
+ return os.path.abspath(os.path.join( |
+ DIR_SOURCE_ROOT, os.environ.get('CHROMIUM_OUT_DIR', 'out'), |
+ GetBuildType() if build_type is None else build_type)) |
+ |
+ |
def _GetADBPath(): |
if os.environ.get('ANDROID_SDK_ROOT'): |
return 'adb' |