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

Unified Diff: third_party/android_platform/development/scripts/stack

Issue 1660693002: Add --output-dir flag to third_party/android_platform/development/scripts/stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix fix fix Created 4 years, 10 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 | « third_party/android_platform/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/android_platform/development/scripts/stack
diff --git a/third_party/android_platform/development/scripts/stack b/third_party/android_platform/development/scripts/stack
index 6901ad5896e18dcbad99d557ecb489e0cf02922d..87f2c3abc0ac6b3559a1d7e4cfb9ff0c1ea65b47 100755
--- a/third_party/android_platform/development/scripts/stack
+++ b/third_party/android_platform/development/scripts/stack
@@ -28,6 +28,12 @@ import subprocess
import symbol
import sys
+sys.path.insert(0, os.path.join(os.path.dirname(__file__),
+ os.pardir, os.pardir, os.pardir, os.pardir,
+ 'build', 'android'))
+from pylib import constants
+
+
DEFAULT_SYMROOT='/tmp/symbols'
DEFAULT_APK_DIR='chrome_apk'
# From: https://source.android.com/source/build-numbers.html
@@ -45,8 +51,10 @@ def PrintUsage():
print " --chrome-symbols-dir=path"
print " the path to a Chrome symbols dir (can be absolute or relative"
print " to src), such as =out/Debug/lib"
- print " If not specified, will look for the newest lib in out/Debug or"
- print " out/Release"
+ print
+ print " --output-directory=path"
+ print " the path to the build output directory, such as out/Debug."
+ print " Ignored if --chrome-symbols-dir is passed."
print
print " --packed-relocation-adjustments"
print " --no-packed-relocation-adjustments"
@@ -139,6 +147,7 @@ def main(argv):
"less-info",
"chrome-symbols-dir=",
"chrome-apk-dir=",
+ "output-directory=",
"symbols-dir=",
"symbols-zip=",
"arch=",
@@ -164,6 +173,8 @@ def main(argv):
symbol.CHROME_SYMBOLS_DIR = os.path.join(symbol.CHROME_SRC, value)
elif option == "--chrome-apk-dir":
chrome_apk_dir = os.path.join(symbol.CHROME_SRC, value)
+ elif option == "--output-directory":
+ constants.SetOutputDirectory(value)
elif option == "--packed-relocation-adjustments":
packed_relocation_adjustments = True
elif option == "--no-packed-relocation-adjustments":
« no previous file with comments | « third_party/android_platform/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698