aboutsummaryrefslogtreecommitdiff
path: root/builder_install.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-02-08 23:49:25 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-02-08 23:49:25 +0200
commit7ea37a733e6fe6ca36c98d57bbaba3b8f9d2bbfa (patch)
tree7e41326c397d7e9c411bd98e195ac0d6d4c35106 /builder_install.py
parentb0515379bf562fe7c728cd443e843e8b839146fc (diff)
downloadmeson-7ea37a733e6fe6ca36c98d57bbaba3b8f9d2bbfa.zip
meson-7ea37a733e6fe6ca36c98d57bbaba3b8f9d2bbfa.tar.gz
meson-7ea37a733e6fe6ca36c98d57bbaba3b8f9d2bbfa.tar.bz2
Generate shared library symlinks with Ninja.
Diffstat (limited to 'builder_install.py')
-rwxr-xr-xbuilder_install.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder_install.py b/builder_install.py
index d899d51..67537db 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()