__init__.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. 'CLANG_OSX',
  14. 'CLANG_STANDARD',
  15. 'CLANG_WIN',
  16. 'GCC_CYGWIN',
  17. 'GCC_MINGW',
  18. 'GCC_OSX',
  19. 'GCC_STANDARD',
  20. 'ICC_OSX',
  21. 'ICC_STANDARD',
  22. 'ICC_WIN',
  23. 'all_languages',
  24. 'base_options',
  25. 'clib_langs',
  26. 'clink_langs',
  27. 'c_suffixes',
  28. 'cpp_suffixes',
  29. 'get_macos_dylib_install_name',
  30. 'get_base_compile_args',
  31. 'get_base_link_args',
  32. 'is_assembly',
  33. 'is_header',
  34. 'is_library',
  35. 'is_llvm_ir',
  36. 'is_object',
  37. 'is_source',
  38. 'lang_suffixes',
  39. 'sanitizer_compile_args',
  40. 'sort_clink',
  41. 'ArmCCompiler',
  42. 'ArmCPPCompiler',
  43. 'CCompiler',
  44. 'ClangCCompiler',
  45. 'ClangCompiler',
  46. 'ClangCPPCompiler',
  47. 'ClangObjCCompiler',
  48. 'ClangObjCPPCompiler',
  49. 'CompilerArgs',
  50. 'CPPCompiler',
  51. 'DCompiler',
  52. 'DmdDCompiler',
  53. 'FortranCompiler',
  54. 'G95FortranCompiler',
  55. 'GnuCCompiler',
  56. 'ElbrusCCompiler',
  57. 'GnuCompiler',
  58. 'GnuCPPCompiler',
  59. 'ElbrusCPPCompiler',
  60. 'GnuDCompiler',
  61. 'GnuFortranCompiler',
  62. 'ElbrusFortranCompiler',
  63. 'GnuObjCCompiler',
  64. 'GnuObjCPPCompiler',
  65. 'IntelCompiler',
  66. 'IntelCCompiler',
  67. 'IntelCPPCompiler',
  68. 'IntelFortranCompiler',
  69. 'JavaCompiler',
  70. 'LLVMDCompiler',
  71. 'MonoCompiler',
  72. 'VisualStudioCsCompiler',
  73. 'NAGFortranCompiler',
  74. 'ObjCCompiler',
  75. 'ObjCPPCompiler',
  76. 'Open64FortranCompiler',
  77. 'PathScaleFortranCompiler',
  78. 'PGIFortranCompiler',
  79. 'RustCompiler',
  80. 'SunFortranCompiler',
  81. 'SwiftCompiler',
  82. 'ValaCompiler',
  83. 'VisualStudioCCompiler',
  84. 'VisualStudioCPPCompiler',
  85. ]
  86. # Bring symbols from each module into compilers sub-package namespace
  87. from .compilers import (
  88. GCC_OSX,
  89. GCC_MINGW,
  90. GCC_CYGWIN,
  91. GCC_STANDARD,
  92. CLANG_OSX,
  93. CLANG_WIN,
  94. CLANG_STANDARD,
  95. ICC_OSX,
  96. ICC_WIN,
  97. ICC_STANDARD,
  98. all_languages,
  99. base_options,
  100. clib_langs,
  101. clink_langs,
  102. c_suffixes,
  103. cpp_suffixes,
  104. get_macos_dylib_install_name,
  105. get_base_compile_args,
  106. get_base_link_args,
  107. is_header,
  108. is_source,
  109. is_assembly,
  110. is_llvm_ir,
  111. is_object,
  112. is_library,
  113. lang_suffixes,
  114. sanitizer_compile_args,
  115. sort_clink,
  116. ClangCompiler,
  117. CompilerArgs,
  118. GnuCompiler,
  119. IntelCompiler,
  120. )
  121. from .c import (
  122. CCompiler,
  123. ArmCCompiler,
  124. ArmclangCCompiler,
  125. ClangCCompiler,
  126. GnuCCompiler,
  127. ElbrusCCompiler,
  128. IntelCCompiler,
  129. VisualStudioCCompiler,
  130. )
  131. from .cpp import (
  132. CPPCompiler,
  133. ArmCPPCompiler,
  134. ArmclangCPPCompiler,
  135. ClangCPPCompiler,
  136. GnuCPPCompiler,
  137. ElbrusCPPCompiler,
  138. IntelCPPCompiler,
  139. VisualStudioCPPCompiler,
  140. )
  141. from .cs import MonoCompiler, VisualStudioCsCompiler
  142. from .d import (
  143. DCompiler,
  144. DmdDCompiler,
  145. GnuDCompiler,
  146. LLVMDCompiler,
  147. )
  148. from .fortran import (
  149. FortranCompiler,
  150. G95FortranCompiler,
  151. GnuFortranCompiler,
  152. ElbrusFortranCompiler,
  153. IntelFortranCompiler,
  154. NAGFortranCompiler,
  155. Open64FortranCompiler,
  156. PathScaleFortranCompiler,
  157. PGIFortranCompiler,
  158. SunFortranCompiler,
  159. )
  160. from .java import JavaCompiler
  161. from .objc import (
  162. ObjCCompiler,
  163. ClangObjCCompiler,
  164. GnuObjCCompiler,
  165. )
  166. from .objcpp import (
  167. ObjCPPCompiler,
  168. ClangObjCPPCompiler,
  169. GnuObjCPPCompiler,
  170. )
  171. from .rust import RustCompiler
  172. from .swift import SwiftCompiler
  173. from .vala import ValaCompiler