aboutsummaryrefslogtreecommitdiff
path: root/shellgenerator.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-01-06 18:40:32 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-01-06 18:40:32 +0200
commitb9f3ab1c4865f9cba3923b661d999ad75d60d3ee (patch)
treeb8c3a5cc3d4c502a5900bf86cd28777de40251c7 /shellgenerator.py
parent216a8ca1ea84165adc8088129c6171f5264ba534 (diff)
downloadmeson-b9f3ab1c4865f9cba3923b661d999ad75d60d3ee.zip
meson-b9f3ab1c4865f9cba3923b661d999ad75d60d3ee.tar.gz
meson-b9f3ab1c4865f9cba3923b661d999ad75d60d3ee.tar.bz2
Can link against shared libraries.
Diffstat (limited to 'shellgenerator.py')
-rwxr-xr-xshellgenerator.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/shellgenerator.py b/shellgenerator.py
index f115fbe..2f04ecd 100755
--- a/shellgenerator.py
+++ b/shellgenerator.py
@@ -70,13 +70,13 @@ class ShellGenerator():
outfile.write('\necho Compiling \\"%s\\"\n' % src)
outfile.write(' '.join(quoted) + ' || exit\n')
return abs_obj
-
+
def build_target_link_arguments(self, deps):
args = []
for d in deps:
- if not isinstance(d, interpreter.StaticLibrary):
- print(d)
- raise RuntimeError('Only static libraries supported ATM.')
+ if not isinstance(d, interpreter.StaticLibrary) and\
+ not isinstance(d, interpreter.SharedLibrary):
+ raise RuntimeError('Tried to link with a non-library target "%s".' % d.get_basename())
args.append(self.get_target_filename(d))
return args