aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-11-05 00:16:17 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-11-05 00:16:17 +0200
commitbcdb84fcbe31b9dff686794b1cabaff0e95a5e91 (patch)
treef0b3756bcae6f64aa9be0e45cf4898146c37ae67 /backends.py
parent34d673984d603092d0710a372b8656561d884ae8 (diff)
downloadmeson-bcdb84fcbe31b9dff686794b1cabaff0e95a5e91.zip
meson-bcdb84fcbe31b9dff686794b1cabaff0e95a5e91.tar.gz
meson-bcdb84fcbe31b9dff686794b1cabaff0e95a5e91.tar.bz2
Can use object files directly in targets.
Diffstat (limited to 'backends.py')
-rw-r--r--backends.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends.py b/backends.py
index 01e782c..989b658 100644
--- a/backends.py
+++ b/backends.py
@@ -171,6 +171,12 @@ class Backend():
for src in target.get_sources():
if not self.environment.is_header(src):
obj_list.append(self.generate_single_compile(target, outfile, src, False, header_deps))
+ for obj in target.get_objects():
+ if isinstance(obj, str):
+ o = os.path.join(self.build_to_src, target.get_subdir(), obj)
+ else:
+ raise MesonException('Unknown data type in object list.')
+ obj_list.append(o)
elem = self.generate_link(target, outfile, outname, obj_list)
self.generate_shlib_aliases(target, self.get_target_dir(target), outfile, elem)
self.processed_targets[name] = True