vs: Add support for the 'vs_module_defs' shared_library kwarg

pull/417/head
Nirbheek Chauhan 9 years ago
parent f54e07bcd8
commit 761ac8d8c4
  1. 4
      mesonbuild/backend/vs2010backend.py

@ -730,6 +730,10 @@ class Vs2010Backend(backends.Backend):
# DLLs built with MSVC always have an import library except when # DLLs built with MSVC always have an import library except when
# they're data-only DLLs, but we don't support those yet. # they're data-only DLLs, but we don't support those yet.
ET.SubElement(link, 'ImportLibrary').text = target.get_import_filename() 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: if '/ZI' in buildtype_args or '/Zi' in buildtype_args:
pdb = ET.SubElement(link, 'ProgramDataBaseFileName') pdb = ET.SubElement(link, 'ProgramDataBaseFileName')
pdb.text = '$(OutDir}%s.pdb' % target_name pdb.text = '$(OutDir}%s.pdb' % target_name

Loading…
Cancel
Save