aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/templates/mesontemplates.py
diff options
context:
space:
mode:
authorAlberto Fanjul <albertofanjul@gmail.com>2021-11-17 00:34:28 +0100
committerEli Schwartz <eschwartz93@gmail.com>2021-11-16 22:25:14 -0500
commit05e0712f59429423df1dc8564c067990d3430105 (patch)
treebd3a54ec05dde645f5e843be522aa3bcdde2046b /mesonbuild/templates/mesontemplates.py
parent4c62dab611b82e75e5822fdbc00747d427580b8e (diff)
downloadmeson-05e0712f59429423df1dc8564c067990d3430105.zip
meson-05e0712f59429423df1dc8564c067990d3430105.tar.gz
meson-05e0712f59429423df1dc8564c067990d3430105.tar.bz2
Add vala template
Diffstat (limited to 'mesonbuild/templates/mesontemplates.py')
-rw-r--r--mesonbuild/templates/mesontemplates.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/templates/mesontemplates.py b/mesonbuild/templates/mesontemplates.py
index a29ac6f..69939be 100644
--- a/mesonbuild/templates/mesontemplates.py
+++ b/mesonbuild/templates/mesontemplates.py
@@ -14,7 +14,7 @@
import argparse
-meson_executable_template = '''project('{project_name}', '{language}',
+meson_executable_template = '''project('{project_name}', {language},
version : '{version}',
default_options : [{default_options}])
@@ -55,8 +55,9 @@ def create_meson_build(options: argparse.Namespace) -> None:
for x in options.deps.split(','))
depspec += '],'
if options.language != 'java':
+ language = f"'{options.language}'" if options.language != 'vala' else ['c', 'vala']
content = meson_executable_template.format(project_name=options.name,
- language=options.language,
+ language=language,
version=options.version,
executable=options.executable,
sourcespec=sourcespec,