Add 'meson.build' to VS project files.
@@ -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')
