Add 'meson.build' to VS project files.

pull/4524/head
John Preston 6 years ago committed by Jussi Pakkanen
parent 5a9c9c70df
commit 16144fd61b
  1. 5
      mesonbuild/backend/vs2010backend.py

@ -26,7 +26,7 @@ from .. import mlog
from .. import compilers
from ..compilers import CompilerArgs
from ..mesonlib import MesonException, File, python_command
from ..environment import Environment
from ..environment import Environment, build_filename
def autodetect_vs_version(build):
vs_version = os.getenv('VisualStudioVersion', None)
@ -1098,6 +1098,9 @@ class Vs2010Backend(backends.Backend):
else:
raise MesonException('Unsupported Visual Studio target machine: ' + targetmachine)
meson_file_group = ET.SubElement(root, 'ItemGroup')
ET.SubElement(meson_file_group, 'None', Include=os.path.join(proj_to_src_dir, build_filename))
extra_files = target.extra_files
if len(headers) + len(gen_hdrs) + len(extra_files) > 0:
inc_hdrs = ET.SubElement(root, 'ItemGroup')

Loading…
Cancel
Save