From 686ad4ff064471d1d80292a43bbd3796ec199446 Mon Sep 17 00:00:00 2001 From: Yura Yaroshevich Date: Wed, 10 Feb 2021 22:32:20 +0300 Subject: [PATCH] Resolve relative paths in sdk build scripts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit E.g. such command: ./src/tools_webrtc/ios/build_ios_libs.sh --build_config debug \ --arch arm64 --output-dir ./out/ios_debug/ Failed before this CL, because build files actually saved into different location and when attempted to copy to destinatoin dir error occurred. No-Presubmit: True Bug: None Change-Id: Ib7dd23a95cc81873c0eb61cc3c6bf51573936f78 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/206810 Reviewed-by: Mirko Bonadei Reviewed-by: Sami Kalliomäki Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#33275} --- tools_webrtc/android/build_aar.py | 2 ++ tools_webrtc/ios/build_ios_libs.py | 1 + 2 files changed, 3 insertions(+) diff --git a/tools_webrtc/android/build_aar.py b/tools_webrtc/android/build_aar.py index 047be7b0a2..9fc4bb0f39 100755 --- a/tools_webrtc/android/build_aar.py +++ b/tools_webrtc/android/build_aar.py @@ -54,9 +54,11 @@ def _ParseArgs(): parser = argparse.ArgumentParser(description='libwebrtc.aar generator.') parser.add_argument( '--build-dir', + type=os.path.abspath, help='Build dir. By default will create and use temporary dir.') parser.add_argument('--output', default='libwebrtc.aar', + type=os.path.abspath, help='Output file of the script.') parser.add_argument( '--arch', diff --git a/tools_webrtc/ios/build_ios_libs.py b/tools_webrtc/ios/build_ios_libs.py index 65ad6d3f5e..3be0eb1975 100755 --- a/tools_webrtc/ios/build_ios_libs.py +++ b/tools_webrtc/ios/build_ios_libs.py @@ -67,6 +67,7 @@ def _ParseArgs(): parser.add_argument( '-o', '--output-dir', + type=os.path.abspath, default=SDK_OUTPUT_DIR, help='Specifies a directory to output the build artifacts to. ' 'If specified together with -c, deletes the dir.')