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