aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-07-01 14:43:51 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-07-01 20:50:47 +0530
commit761ac8d8c460182a7b450dc3c55c825d3411bf44 (patch)
tree3d42c016246064ce13c8d8d46e495b23f97818ca
parentf54e07bcd842a1a4803b8c62ce8844e0474a2418 (diff)
downloadmeson-761ac8d8c460182a7b450dc3c55c825d3411bf44.zip
meson-761ac8d8c460182a7b450dc3c55c825d3411bf44.tar.gz
meson-761ac8d8c460182a7b450dc3c55c825d3411bf44.tar.bz2
vs: Add support for the 'vs_module_defs' shared_library kwarg
-rw-r--r--mesonbuild/backend/vs2010backend.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 4be9817..ed07671 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -730,6 +730,10 @@ class Vs2010Backend(backends.Backend):
# DLLs built with MSVC always have an import library except when
# they're data-only DLLs, but we don't support those yet.
ET.SubElement(link, 'ImportLibrary').text = target.get_import_filename()
+ # Add module definitions file, if provided
+ if target.vs_module_defs:
+ relpath = target.vs_module_defs.rel_to_builddir(proj_to_src_root)
+ ET.SubElement(link, 'ModuleDefinitionFile').text = relpath
if '/ZI' in buildtype_args or '/Zi' in buildtype_args:
pdb = ET.SubElement(link, 'ProgramDataBaseFileName')
pdb.text = '$(OutDir}%s.pdb' % target_name