__init__.py 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. # Copyright 2017 The Meson development team
  2. # Licensed under the Apache License, Version 2.0 (the "License");
  3. # you may not use this file except in compliance with the License.
  4. # You may obtain a copy of the License at
  5. # http://www.apache.org/licenses/LICENSE-2.0
  6. # Unless required by applicable law or agreed to in writing, software
  7. # distributed under the License is distributed on an "AS IS" BASIS,
  8. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. # See the License for the specific language governing permissions and
  10. # limitations under the License.
  11. # Public symbols for compilers sub-package when using 'from . import compilers'
  12. __all__ = [
  13. 'Compiler',
  14. 'all_languages',
  15. 'base_options',
  16. 'clib_langs',
  17. 'clink_langs',
  18. 'c_suffixes',
  19. 'cpp_suffixes',
  20. 'get_base_compile_args',
  21. 'get_base_link_args',
  22. 'is_assembly',
  23. 'is_header',
  24. 'is_library',
  25. 'is_llvm_ir',
  26. 'is_object',
  27. 'is_source',
  28. 'is_known_suffix',
  29. 'lang_suffixes',
  30. 'sort_clink',
  31. 'AppleClangCCompiler',
  32. 'AppleClangCPPCompiler',
  33. 'ArmCCompiler',
  34. 'ArmCPPCompiler',
  35. 'ArmclangCCompiler',
  36. 'ArmclangCPPCompiler',
  37. 'CCompiler',
  38. 'ClangCCompiler',
  39. 'ClangCompiler',
  40. 'ClangCPPCompiler',
  41. 'ClangObjCCompiler',
  42. 'ClangObjCPPCompiler',
  43. 'ClangClCCompiler',
  44. 'ClangClCPPCompiler',
  45. 'CompilerArgs',
  46. 'CPPCompiler',
  47. 'DCompiler',
  48. 'DmdDCompiler',
  49. 'FortranCompiler',
  50. 'G95FortranCompiler',
  51. 'GnuCCompiler',
  52. 'ElbrusCCompiler',
  53. 'EmscriptenCCompiler',
  54. 'GnuCompiler',
  55. 'GnuLikeCompiler',
  56. 'GnuCPPCompiler',
  57. 'ElbrusCPPCompiler',
  58. 'EmscriptenCPPCompiler',
  59. 'GnuDCompiler',
  60. 'GnuFortranCompiler',
  61. 'ElbrusFortranCompiler',
  62. 'FlangFortranCompiler',
  63. 'GnuObjCCompiler',
  64. 'GnuObjCPPCompiler',
  65. 'IntelGnuLikeCompiler',
  66. 'IntelVisualStudioLikeCompiler',
  67. 'IntelCCompiler',
  68. 'IntelCPPCompiler',
  69. 'IntelClCCompiler',
  70. 'IntelClCPPCompiler',
  71. 'IntelFortranCompiler',
  72. 'IntelClFortranCompiler',
  73. 'JavaCompiler',
  74. 'LLVMDCompiler',
  75. 'MonoCompiler',
  76. 'CudaCompiler',
  77. 'VisualStudioCsCompiler',
  78. 'NAGFortranCompiler',
  79. 'ObjCCompiler',
  80. 'ObjCPPCompiler',
  81. 'Open64FortranCompiler',
  82. 'PathScaleFortranCompiler',
  83. 'PGICCompiler',
  84. 'PGICPPCompiler',
  85. 'PGIFortranCompiler',
  86. 'RustCompiler',
  87. 'CcrxCCompiler',
  88. 'CcrxCPPCompiler',
  89. 'Xc16CCompiler',
  90. 'C2000CCompiler',
  91. 'C2000CPPCompiler',
  92. 'SunFortranCompiler',
  93. 'SwiftCompiler',
  94. 'ValaCompiler',
  95. 'VisualStudioLikeCompiler',
  96. 'VisualStudioCCompiler',
  97. 'VisualStudioCPPCompiler',
  98. ]
  99. # Bring symbols from each module into compilers sub-package namespace
  100. from .compilers import (
  101. Compiler,
  102. all_languages,
  103. base_options,
  104. clib_langs,
  105. clink_langs,
  106. c_suffixes,
  107. cpp_suffixes,
  108. get_base_compile_args,
  109. get_base_link_args,
  110. is_header,
  111. is_source,
  112. is_assembly,
  113. is_llvm_ir,
  114. is_object,
  115. is_library,
  116. is_known_suffix,
  117. lang_suffixes,
  118. sort_clink,
  119. CompilerArgs,
  120. )
  121. from .c import (
  122. CCompiler,
  123. AppleClangCCompiler,
  124. ArmCCompiler,
  125. ArmclangCCompiler,
  126. ClangCCompiler,
  127. ClangClCCompiler,
  128. GnuCCompiler,
  129. ElbrusCCompiler,
  130. EmscriptenCCompiler,
  131. IntelCCompiler,
  132. IntelClCCompiler,
  133. PGICCompiler,
  134. CcrxCCompiler,
  135. Xc16CCompiler,
  136. C2000CCompiler,
  137. VisualStudioCCompiler,
  138. )
  139. from .cpp import (
  140. CPPCompiler,
  141. AppleClangCPPCompiler,
  142. ArmCPPCompiler,
  143. ArmclangCPPCompiler,
  144. ClangCPPCompiler,
  145. ClangClCPPCompiler,
  146. GnuCPPCompiler,
  147. ElbrusCPPCompiler,
  148. EmscriptenCPPCompiler,
  149. IntelCPPCompiler,
  150. IntelClCPPCompiler,
  151. PGICPPCompiler,
  152. CcrxCPPCompiler,
  153. C2000CPPCompiler,
  154. VisualStudioCPPCompiler,
  155. )
  156. from .cs import MonoCompiler, VisualStudioCsCompiler
  157. from .d import (
  158. DCompiler,
  159. DmdDCompiler,
  160. GnuDCompiler,
  161. LLVMDCompiler,
  162. )
  163. from .cuda import CudaCompiler
  164. from .fortran import (
  165. FortranCompiler,
  166. G95FortranCompiler,
  167. GnuFortranCompiler,
  168. ElbrusFortranCompiler,
  169. FlangFortranCompiler,
  170. IntelFortranCompiler,
  171. IntelClFortranCompiler,
  172. NAGFortranCompiler,
  173. Open64FortranCompiler,
  174. PathScaleFortranCompiler,
  175. PGIFortranCompiler,
  176. SunFortranCompiler,
  177. )
  178. from .java import JavaCompiler
  179. from .objc import (
  180. ObjCCompiler,
  181. ClangObjCCompiler,
  182. GnuObjCCompiler,
  183. )
  184. from .objcpp import (
  185. ObjCPPCompiler,
  186. ClangObjCPPCompiler,
  187. GnuObjCPPCompiler,
  188. )
  189. from .rust import RustCompiler
  190. from .swift import SwiftCompiler
  191. from .vala import ValaCompiler
  192. from .mixins.visualstudio import VisualStudioLikeCompiler
  193. from .mixins.gnu import GnuCompiler, GnuLikeCompiler
  194. from .mixins.intel import IntelGnuLikeCompiler, IntelVisualStudioLikeCompiler
  195. from .mixins.clang import ClangCompiler