aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-04-27 10:36:42 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-07 09:16:19 -0700
commit4d1cbd1b8ab45d5eebb82cf0c22123e10d29a7d8 (patch)
treeb44187884257c26e4a45196db44d16f5673836ed
parentcf17ef3867b585a40762808aed8e0b240d9113ed (diff)
downloadmeson-4d1cbd1b8ab45d5eebb82cf0c22123e10d29a7d8.zip
meson-4d1cbd1b8ab45d5eebb82cf0c22123e10d29a7d8.tar.gz
meson-4d1cbd1b8ab45d5eebb82cf0c22123e10d29a7d8.tar.bz2
compilers: Add cython file suffixes
-rw-r--r--mesonbuild/build.py1
-rw-r--r--mesonbuild/compilers/compilers.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index dff9649..942927c 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -64,6 +64,7 @@ lang_arg_kwargs = {
'rust_args',
'vala_args',
'cs_args',
+ 'cython_args',
}
vala_kwargs = {'vala_header', 'vala_gir', 'vala_vapi'}
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 361f5d6..cdb9f1c 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -64,6 +64,7 @@ lang_suffixes = {
'cs': ('cs',),
'swift': ('swift',),
'java': ('java',),
+ 'cython': ('pyx', ),
} # type: T.Dict[str, T.Tuple[str, ...]]
all_languages = lang_suffixes.keys()
cpp_suffixes = lang_suffixes['cpp'] + ('h',) # type: T.Tuple[str, ...]
@@ -97,6 +98,7 @@ CFLAGS_MAPPING: T.Mapping[str, str] = {
'd': 'DFLAGS',
'vala': 'VALAFLAGS',
'rust': 'RUSTFLAGS',
+ 'cython': 'CYTHONFLAGS',
}
CEXE_MAPPING: T.Mapping = {