Index: build/android/pylib/constants.py |
diff --git a/build/android/pylib/constants.py b/build/android/pylib/constants.py |
index 15aebaba5e011b88742de9b7f6d436caa922a605..46f9e18354f37fab7576a336ea9de312dd6e5f88 100644 |
--- a/build/android/pylib/constants.py |
+++ b/build/android/pylib/constants.py |
@@ -132,6 +132,18 @@ def SetBuildType(build_type): |
os.environ['BUILDTYPE'] = build_type |
+def GetOutDirectory(build_type=None): |
+ """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' |