From 7ea37a733e6fe6ca36c98d57bbaba3b8f9d2bbfa Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 8 Feb 2013 23:49:25 +0200 Subject: Generate shared library symlinks with Ninja. --- builder_install.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'builder_install.py') diff --git a/builder_install.py b/builder_install.py index d899d51a7..67537dba9 100755 --- a/builder_install.py +++ b/builder_install.py @@ -69,11 +69,14 @@ def install_targets(d): fullfilename = t[0] outdir = t[1] fname = os.path.split(fullfilename)[1] + aliases = t[2] outname = os.path.join(outdir, fname) print('Installing %s to %s' % (fname, outdir)) os.makedirs(outdir, exist_ok=True) shutil.copyfile(fullfilename, outname) shutil.copystat(fullfilename, outname) + for alias in aliases: + os.symlink(fname, os.path.join(outdir, alias)) p = subprocess.Popen([d.depfixer, outname, d.dep_prefix], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdo, stde) = p.communicate() -- cgit v1.2.3