massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / distutils / ccompiler.pyi
1 from typing import Any, Callable, Optional, Tuple, Union
2
3 _Macro = Union[Tuple[str], Tuple[str, Optional[str]]]
4
5 def gen_lib_options(
6     compiler: CCompiler, library_dirs: list[str], runtime_library_dirs: list[str], libraries: list[str]
7 ) -> list[str]: ...
8 def gen_preprocess_options(macros: list[_Macro], include_dirs: list[str]) -> list[str]: ...
9 def get_default_compiler(osname: str | None = ..., platform: str | None = ...) -> str: ...
10 def new_compiler(
11     plat: str | None = ..., compiler: str | None = ..., verbose: int = ..., dry_run: int = ..., force: int = ...
12 ) -> CCompiler: ...
13 def show_compilers() -> None: ...
14
15 class CCompiler:
16     dry_run: bool
17     force: bool
18     verbose: bool
19     output_dir: str | None
20     macros: list[_Macro]
21     include_dirs: list[str]
22     libraries: list[str]
23     library_dirs: list[str]
24     runtime_library_dirs: list[str]
25     objects: list[str]
26     def __init__(self, verbose: int = ..., dry_run: int = ..., force: int = ...) -> None: ...
27     def add_include_dir(self, dir: str) -> None: ...
28     def set_include_dirs(self, dirs: list[str]) -> None: ...
29     def add_library(self, libname: str) -> None: ...
30     def set_libraries(self, libnames: list[str]) -> None: ...
31     def add_library_dir(self, dir: str) -> None: ...
32     def set_library_dirs(self, dirs: list[str]) -> None: ...
33     def add_runtime_library_dir(self, dir: str) -> None: ...
34     def set_runtime_library_dirs(self, dirs: list[str]) -> None: ...
35     def define_macro(self, name: str, value: str | None = ...) -> None: ...
36     def undefine_macro(self, name: str) -> None: ...
37     def add_link_object(self, object: str) -> None: ...
38     def set_link_objects(self, objects: list[str]) -> None: ...
39     def detect_language(self, sources: str | list[str]) -> str | None: ...
40     def find_library_file(self, dirs: list[str], lib: str, debug: bool = ...) -> str | None: ...
41     def has_function(
42         self,
43         funcname: str,
44         includes: list[str] | None = ...,
45         include_dirs: list[str] | None = ...,
46         libraries: list[str] | None = ...,
47         library_dirs: list[str] | None = ...,
48     ) -> bool: ...
49     def library_dir_option(self, dir: str) -> str: ...
50     def library_option(self, lib: str) -> str: ...
51     def runtime_library_dir_option(self, dir: str) -> str: ...
52     def set_executables(self, **args: str) -> None: ...
53     def compile(
54         self,
55         sources: list[str],
56         output_dir: str | None = ...,
57         macros: _Macro | None = ...,
58         include_dirs: list[str] | None = ...,
59         debug: bool = ...,
60         extra_preargs: list[str] | None = ...,
61         extra_postargs: list[str] | None = ...,
62         depends: list[str] | None = ...,
63     ) -> list[str]: ...
64     def create_static_lib(
65         self,
66         objects: list[str],
67         output_libname: str,
68         output_dir: str | None = ...,
69         debug: bool = ...,
70         target_lang: str | None = ...,
71     ) -> None: ...
72     def link(
73         self,
74         target_desc: str,
75         objects: list[str],
76         output_filename: str,
77         output_dir: str | None = ...,
78         libraries: list[str] | None = ...,
79         library_dirs: list[str] | None = ...,
80         runtime_library_dirs: list[str] | None = ...,
81         export_symbols: list[str] | None = ...,
82         debug: bool = ...,
83         extra_preargs: list[str] | None = ...,
84         extra_postargs: list[str] | None = ...,
85         build_temp: str | None = ...,
86         target_lang: str | None = ...,
87     ) -> None: ...
88     def link_executable(
89         self,
90         objects: list[str],
91         output_progname: str,
92         output_dir: str | None = ...,
93         libraries: list[str] | None = ...,
94         library_dirs: list[str] | None = ...,
95         runtime_library_dirs: list[str] | None = ...,
96         debug: bool = ...,
97         extra_preargs: list[str] | None = ...,
98         extra_postargs: list[str] | None = ...,
99         target_lang: str | None = ...,
100     ) -> None: ...
101     def link_shared_lib(
102         self,
103         objects: list[str],
104         output_libname: str,
105         output_dir: str | None = ...,
106         libraries: list[str] | None = ...,
107         library_dirs: list[str] | None = ...,
108         runtime_library_dirs: list[str] | None = ...,
109         export_symbols: list[str] | None = ...,
110         debug: bool = ...,
111         extra_preargs: list[str] | None = ...,
112         extra_postargs: list[str] | None = ...,
113         build_temp: str | None = ...,
114         target_lang: str | None = ...,
115     ) -> None: ...
116     def link_shared_object(
117         self,
118         objects: list[str],
119         output_filename: str,
120         output_dir: str | None = ...,
121         libraries: list[str] | None = ...,
122         library_dirs: list[str] | None = ...,
123         runtime_library_dirs: list[str] | None = ...,
124         export_symbols: list[str] | None = ...,
125         debug: bool = ...,
126         extra_preargs: list[str] | None = ...,
127         extra_postargs: list[str] | None = ...,
128         build_temp: str | None = ...,
129         target_lang: str | None = ...,
130     ) -> None: ...
131     def preprocess(
132         self,
133         source: str,
134         output_file: str | None = ...,
135         macros: list[_Macro] | None = ...,
136         include_dirs: list[str] | None = ...,
137         extra_preargs: list[str] | None = ...,
138         extra_postargs: list[str] | None = ...,
139     ) -> None: ...
140     def executable_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...
141     def library_filename(self, libname: str, lib_type: str = ..., strip_dir: int = ..., output_dir: str = ...) -> str: ...
142     def object_filenames(self, source_filenames: list[str], strip_dir: int = ..., output_dir: str = ...) -> list[str]: ...
143     def shared_object_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...
144     def execute(self, func: Callable[..., None], args: Tuple[Any, ...], msg: str | None = ..., level: int = ...) -> None: ...
145     def spawn(self, cmd: list[str]) -> None: ...
146     def mkpath(self, name: str, mode: int = ...) -> None: ...
147     def move_file(self, src: str, dst: str) -> str: ...
148     def announce(self, msg: str, level: int = ...) -> None: ...
149     def warn(self, msg: str) -> None: ...
150     def debug_print(self, msg: str) -> None: ...