| 1 |
# SPDX-License-Identifier: Apache-2.0 |
| 2 |
# Copyright 2017 The Meson development team |
| 3 |
|
| 4 |
# Public symbols for compilers sub-package when using 'from . import compilers' |
| 5 |
__all__ = [ |
| 6 |
'Compiler', |
| 7 |
'RunResult', |
| 8 |
|
| 9 |
'all_languages', |
| 10 |
'clib_langs', |
| 11 |
'clink_langs', |
| 12 |
'c_suffixes', |
| 13 |
'cpp_suffixes', |
| 14 |
'get_base_compile_args', |
| 15 |
'get_base_link_args', |
| 16 |
'is_assembly', |
| 17 |
'is_header', |
| 18 |
'is_library', |
| 19 |
'is_llvm_ir', |
| 20 |
'is_object', |
| 21 |
'is_separate_compile', |
| 22 |
'is_source', |
| 23 |
'is_java', |
| 24 |
'is_known_suffix', |
| 25 |
'lang_suffixes', |
| 26 |
'LANGUAGES_USING_LDFLAGS', |
| 27 |
'sort_clink', |
| 28 |
'SUFFIX_TO_LANG', |
| 29 |
|
| 30 |
'compiler_from_language', |
| 31 |
'detect_compiler_for', |
| 32 |
'detect_static_linker', |
| 33 |
'detect_c_compiler', |
| 34 |
'detect_cpp_compiler', |
| 35 |
'detect_cuda_compiler', |
| 36 |
'detect_fortran_compiler', |
| 37 |
'detect_objc_compiler', |
| 38 |
'detect_objcpp_compiler', |
| 39 |
'detect_java_compiler', |
| 40 |
'detect_cs_compiler', |
| 41 |
'detect_vala_compiler', |
| 42 |
'detect_rust_compiler', |
| 43 |
'detect_d_compiler', |
| 44 |
'detect_swift_compiler', |
| 45 |
] |
| 46 |
|
| 47 |
# Bring symbols from each module into compilers sub-package namespace |
| 48 |
from .compilers import ( |
| 49 |
Compiler, |
| 50 |
RunResult, |
| 51 |
all_languages, |
| 52 |
clib_langs, |
| 53 |
clink_langs, |
| 54 |
c_suffixes, |
| 55 |
cpp_suffixes, |
| 56 |
get_base_compile_args, |
| 57 |
get_base_link_args, |
| 58 |
is_header, |
| 59 |
is_source, |
| 60 |
is_java, |
| 61 |
is_assembly, |
| 62 |
is_llvm_ir, |
| 63 |
is_object, |
| 64 |
is_library, |
| 65 |
is_known_suffix, |
| 66 |
is_separate_compile, |
| 67 |
lang_suffixes, |
| 68 |
LANGUAGES_USING_LDFLAGS, |
| 69 |
sort_clink, |
| 70 |
SUFFIX_TO_LANG, |
| 71 |
) |
| 72 |
from .detect import ( |
| 73 |
compiler_from_language, |
| 74 |
detect_compiler_for, |
| 75 |
detect_static_linker, |
| 76 |
detect_c_compiler, |
| 77 |
detect_cpp_compiler, |
| 78 |
detect_cuda_compiler, |
| 79 |
detect_objc_compiler, |
| 80 |
detect_objcpp_compiler, |
| 81 |
detect_fortran_compiler, |
| 82 |
detect_java_compiler, |
| 83 |
detect_cs_compiler, |
| 84 |
detect_vala_compiler, |
| 85 |
detect_rust_compiler, |
| 86 |
detect_d_compiler, |
| 87 |
detect_swift_compiler, |
| 88 |
) |