diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-05-17 19:24:02 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-05-17 19:24:02 +0300 |
commit | 05b6220844577ef64079c9f4359b8df880d5d129 (patch) | |
tree | d93e7f4f6a64c9e53bbb2e2e84b8ca9f7e7584ed /compilers.py | |
parent | 9c6ae66211485da8bf434e35dcd8a7e1cd30f73c (diff) | |
download | meson-05b6220844577ef64079c9f4359b8df880d5d129.zip meson-05b6220844577ef64079c9f4359b8df880d5d129.tar.gz meson-05b6220844577ef64079c9f4359b8df880d5d129.tar.bz2 |
In Vala .vapi files are sort of headers that you must put on the command line. Make it so.
Diffstat (limited to 'compilers.py')
-rw-r--r-- | compilers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilers.py b/compilers.py index 575bd62..6fe7370 100644 --- a/compilers.py +++ b/compilers.py @@ -21,7 +21,7 @@ from coredata import MesonException about. To support a new compiler, add its information below. Also add corresponding autodetection code in environment.py.""" -header_suffixes = ['h', 'hh', 'hpp', 'hxx', 'H', 'moc'] +header_suffixes = ['h', 'hh', 'hpp', 'hxx', 'H', 'moc', 'vapi'] cpp_suffixes = ['cc', 'cpp', 'cxx', 'h', 'hh', 'hpp', 'hxx', 'c++'] c_suffixes = ['c'] clike_suffixes = c_suffixes + cpp_suffixes @@ -813,7 +813,7 @@ class ValaCompiler(): raise EnvironmentException('Vala compiler %s can not compile programs.' % self.name_string()) def can_compile(self, fname): - return fname.endswith('.vala') + return fname.endswith('.vala') or fname.endswith('.vapi') class RustCompiler(): def __init__(self, exelist, version): |