mirror of
https://github.com/mesonbuild/meson.git
synced 2026-11-06 05:16:42 +00:00
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
87 lines
1.9 KiB
Python
87 lines
1.9 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright 2017 The Meson development team
|
|
|
|
# Public symbols for compilers sub-package when using 'from . import compilers'
|
|
__all__ = [
|
|
'Compiler',
|
|
'RunResult',
|
|
|
|
'all_languages',
|
|
'base_options',
|
|
'clib_langs',
|
|
'clink_langs',
|
|
'c_suffixes',
|
|
'cpp_suffixes',
|
|
'get_base_compile_args',
|
|
'get_base_link_args',
|
|
'is_assembly',
|
|
'is_header',
|
|
'is_library',
|
|
'is_llvm_ir',
|
|
'is_object',
|
|
'is_source',
|
|
'is_known_suffix',
|
|
'lang_suffixes',
|
|
'LANGUAGES_USING_LDFLAGS',
|
|
'sort_clink',
|
|
'SUFFIX_TO_LANG',
|
|
|
|
'compiler_from_language',
|
|
'detect_compiler_for',
|
|
'detect_static_linker',
|
|
'detect_c_compiler',
|
|
'detect_cpp_compiler',
|
|
'detect_cuda_compiler',
|
|
'detect_fortran_compiler',
|
|
'detect_objc_compiler',
|
|
'detect_objcpp_compiler',
|
|
'detect_java_compiler',
|
|
'detect_cs_compiler',
|
|
'detect_vala_compiler',
|
|
'detect_rust_compiler',
|
|
'detect_d_compiler',
|
|
'detect_swift_compiler',
|
|
]
|
|
|
|
# Bring symbols from each module into compilers sub-package namespace
|
|
from .compilers import (
|
|
Compiler,
|
|
RunResult,
|
|
all_languages,
|
|
base_options,
|
|
clib_langs,
|
|
clink_langs,
|
|
c_suffixes,
|
|
cpp_suffixes,
|
|
get_base_compile_args,
|
|
get_base_link_args,
|
|
is_header,
|
|
is_source,
|
|
is_assembly,
|
|
is_llvm_ir,
|
|
is_object,
|
|
is_library,
|
|
is_known_suffix,
|
|
lang_suffixes,
|
|
LANGUAGES_USING_LDFLAGS,
|
|
sort_clink,
|
|
SUFFIX_TO_LANG,
|
|
)
|
|
from .detect import (
|
|
compiler_from_language,
|
|
detect_compiler_for,
|
|
detect_static_linker,
|
|
detect_c_compiler,
|
|
detect_cpp_compiler,
|
|
detect_cuda_compiler,
|
|
detect_objc_compiler,
|
|
detect_objcpp_compiler,
|
|
detect_fortran_compiler,
|
|
detect_java_compiler,
|
|
detect_cs_compiler,
|
|
detect_vala_compiler,
|
|
detect_rust_compiler,
|
|
detect_d_compiler,
|
|
detect_swift_compiler,
|
|
)
|