|
| 1 | +from _typeshed import StrPath |
| 2 | +from collections.abc import Callable, Iterable |
| 3 | +from shlex import _ShlexInstream |
| 4 | +from typing import ClassVar, Final, Literal, NoReturn |
| 5 | +from typing_extensions import Never, deprecated |
| 6 | + |
| 7 | +from ...version import LooseVersion |
| 8 | +from . import unix |
| 9 | + |
| 10 | +def get_msvcr() -> list[str]: ... |
| 11 | + |
| 12 | +class Compiler(unix.Compiler): |
| 13 | + compiler_type: ClassVar[str] |
| 14 | + obj_extension: ClassVar[str] |
| 15 | + static_lib_extension: ClassVar[str] |
| 16 | + shared_lib_extension: ClassVar[str] |
| 17 | + dylib_lib_extension: ClassVar[str] |
| 18 | + static_lib_format: ClassVar[str] |
| 19 | + shared_lib_format: ClassVar[str] |
| 20 | + dylib_lib_format: ClassVar[str] |
| 21 | + exe_extension: ClassVar[str] |
| 22 | + cc: str |
| 23 | + cxx: str |
| 24 | + linker_dll: str |
| 25 | + linker_dll_cxx: str |
| 26 | + dll_libraries: list[str] |
| 27 | + def __init__(self, verbose: bool = False, force: bool = False) -> None: ... |
| 28 | + @property |
| 29 | + @deprecated( |
| 30 | + "gcc_version attribute of CygwinCCompiler is deprecated. " |
| 31 | + "Instead of returning actual gcc version a fixed value 11.2.0 is returned." |
| 32 | + ) |
| 33 | + def gcc_version(self) -> LooseVersion: ... |
| 34 | + # `objects` and `libraries` uses list methods |
| 35 | + def link( |
| 36 | + self, |
| 37 | + target_desc: str, |
| 38 | + objects: list[str], # type: ignore[override] |
| 39 | + output_filename: str, |
| 40 | + output_dir: str | None = None, |
| 41 | + libraries: list[str] | None = None, # type: ignore[override] |
| 42 | + library_dirs: list[str] | tuple[str, ...] | None = None, |
| 43 | + runtime_library_dirs: list[str] | tuple[str, ...] | None = None, |
| 44 | + export_symbols: Iterable[str] | None = None, |
| 45 | + debug: bool = False, |
| 46 | + extra_preargs: list[str] | None = None, |
| 47 | + extra_postargs: list[str] | None = None, |
| 48 | + build_temp: StrPath | None = None, |
| 49 | + target_lang: str | None = None, |
| 50 | + ) -> None: ... |
| 51 | + # cygwin doesn't support rpath; prints a warning and returns an empty list |
| 52 | + def runtime_library_dir_option(self, dir: str) -> list[Never]: ... # type: ignore[override] |
| 53 | + @property |
| 54 | + def out_extensions(self) -> dict[str, str]: ... |
| 55 | + |
| 56 | +class MinGW32Compiler(Compiler): |
| 57 | + compiler_type: ClassVar[str] |
| 58 | + def __init__(self, verbose: bool = False, force: bool = False) -> None: ... |
| 59 | + def runtime_library_dir_option(self, dir: str) -> NoReturn: ... |
| 60 | + |
| 61 | +CONFIG_H_OK: Final = "ok" |
| 62 | +CONFIG_H_NOTOK: Final = "not ok" |
| 63 | +CONFIG_H_UNCERTAIN: Final = "uncertain" |
| 64 | + |
| 65 | +def check_config_h() -> tuple[Literal["ok", "not ok", "uncertain"], str]: ... |
| 66 | +def is_cygwincc(cc: str | _ShlexInstream) -> bool: ... |
| 67 | + |
| 68 | +get_versions: Callable[[], tuple[LooseVersion | None, ...]] | None |
0 commit comments