diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /third_party/libwebrtc/build/linux/strip_binary.py | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/build/linux/strip_binary.py')
-rwxr-xr-x | third_party/libwebrtc/build/linux/strip_binary.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/libwebrtc/build/linux/strip_binary.py b/third_party/libwebrtc/build/linux/strip_binary.py new file mode 100755 index 0000000000..00b4089e76 --- /dev/null +++ b/third_party/libwebrtc/build/linux/strip_binary.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python +# +# Copyright 2021 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import argparse +import subprocess +import sys + + +def main(): + argparser = argparse.ArgumentParser(description='eu-strip binary.') + + argparser.add_argument('--eu-strip-binary-path', help='eu-strip path.') + argparser.add_argument('--binary-input', help='exe file path.') + argparser.add_argument('--symbol-output', help='debug file path.') + argparser.add_argument('--stripped-binary-output', help='stripped file path.') + args = argparser.parse_args() + + cmd_line = [ + args.eu_strip_binary_path, '-o', args.stripped_binary_output, '-f', + args.symbol_output, args.binary_input + ] + + process = subprocess.Popen(cmd_line) + + return process.returncode + + +if __name__ == '__main__': + sys.exit(main()) |