1
0
Fork 0
firefox/third_party/chromium/build/linux/strip_binary.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

32 lines
894 B
Python
Executable file

#!/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())