all repos — mgba @ bbcf40e0e740a5e2cf6d2c240a6435945f522bc7

mGBA Game Boy Advance Emulator

Tools: Collapse install_name_tool calls in deploy-mac

Change suggested in Dolphin PR #2536
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Jun 2015 12:54:46 -0700
commit

bbcf40e0e740a5e2cf6d2c240a6435945f522bc7

parent

17ee9d55e8a5b9c3457092df7d7e1e7ad9959a17

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M tools/deploy-mac.pytools/deploy-mac.py

@@ -108,16 +108,19 @@ if not qtPath and 'Qt' in oldPath:

qtPath = findQtPath(oldPath) if verbose: print('Found Qt path at {}.'.format(qtPath)) + args = [installNameTool] for path, oldExecPath, newExecPath in toUpdate: if path != bin: updateMachO(path, execPath, root) if verbose: print('Updating Mach-O load from {} to {}...'.format(oldExecPath, newExecPath)) - subprocess.check_call([installNameTool, '-change', oldExecPath, newExecPath, bin]) + args.extend(['-change', oldExecPath, newExecPath]) else: if verbose: print('Updating Mach-O id from {} to {}...'.format(oldExecPath, newExecPath)) - subprocess.check_call([installNameTool, '-id', newExecPath, bin]) + args.extend(['-id', newExecPath]) + args.append(bin) + subprocess.check_call(args) if __name__ == '__main__': parser = argparse.ArgumentParser()