diff options
author | John Preston <johnprestonmail@gmail.com> | 2018-11-15 10:54:38 +0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-11-15 21:06:31 +0200 |
commit | 16144fd61bb8522bf772cbc5de814bfcda5617b7 (patch) | |
tree | 229d032011e7131eef2cc9ec650908ae7ccb9787 | |
parent | 5a9c9c70df17c8f1ba900933574586c46c3d096f (diff) | |
download | meson-16144fd61bb8522bf772cbc5de814bfcda5617b7.zip meson-16144fd61bb8522bf772cbc5de814bfcda5617b7.tar.gz meson-16144fd61bb8522bf772cbc5de814bfcda5617b7.tar.bz2 |
Add 'meson.build' to VS project files.
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 2e86ca9..b00a9f9 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/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') |