generator.toml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. [platforms]
  2. linux="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\" AND NOT HAVE_CUDA"
  3. linux-x86_64="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\" AND NOT HAVE_CUDA"
  4. linux-x86_64-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\" AND HAVE_CUDA"
  5. linux-aarch64="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND NOT HAVE_CUDA"
  6. linux-arm64="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND NOT HAVE_CUDA"
  7. linux-aarch64-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND HAVE_CUDA"
  8. linux-arm64-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND HAVE_CUDA"
  9. linux-ppc64le="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"ppc64le\" AND NOT HAVE_CUDA"
  10. linux-ppc64le-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"ppc64le\" AND HAVE_CUDA"
  11. darwin="CMAKE_SYSTEM_NAME STREQUAL \"Darwin\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\""
  12. darwin-x86_64="CMAKE_SYSTEM_NAME STREQUAL \"Darwin\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\""
  13. darwin-arm64="CMAKE_SYSTEM_NAME STREQUAL \"Darwin\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"arm64\""
  14. windows="WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"AMD64\" AND NOT HAVE_CUDA"
  15. windows-x86_64="WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"AMD64\" AND NOT HAVE_CUDA"
  16. windows-x86_64-cuda="WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"AMD64\" AND HAVE_CUDA"
  17. android-arm="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"arm\""
  18. android-arm32="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"arm\""
  19. android-arm64="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"arm64\""
  20. android-x86="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"x86\""
  21. android-x86_64="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"x86_64\""
  22. [root]
  23. templates=[
  24. { path="conanfile.jinja", dest="conanfile.txt" },
  25. { path="root_cmake_lists.jinja", dest="CMakeLists.txt" },
  26. { path="root_global_vars.jinja", dest="cmake/global_vars.cmake" },
  27. ]
  28. copy=[
  29. "cmake/global_flags.compiler.gnu.march.cmake",
  30. "cmake/global_flags.compiler.gnu.cmake",
  31. "cmake/global_flags.compiler.msvc.cmake",
  32. "cmake/global_flags.linker.gnu.cmake",
  33. "cmake/global_flags.linker.msvc.cmake",
  34. "cmake/global_flags.cmake",
  35. ]
  36. [attrs.root]
  37. project_name="str"
  38. project_language_list="list"
  39. platform_flags="list"
  40. platform_cmakelists="list"
  41. platform_vars="list"
  42. includes="sorted_set"
  43. use_conan="bool"
  44. vanilla_protobuf="flag"
  45. [attrs.dir]
  46. prologue="str"
  47. epilogue="str"
  48. [attrs.target]
  49. is_interface="bool"
  50. [[rules]]
  51. attrs=["run_antlr"]
  52. copy=["cmake/antlr.cmake"]
  53. add_values=[{attr="includes", values=["cmake/antlr.cmake"]}]
  54. [[rules]]
  55. attrs=[
  56. "target_bison_parser",
  57. "target_flex_lexers"
  58. ]
  59. copy=["cmake/bison.cmake"]
  60. add_values=[{attr="includes", values=["cmake/bison.cmake"]}]
  61. [[rules]]
  62. attrs=[
  63. "conan_add_remote",
  64. "conan_check",
  65. "conan_cmake_autodetect",
  66. "conan_cmake_configure",
  67. "conan_cmake_detect_unix_libcxx",
  68. "conan_cmake_detect_vs_runtime",
  69. "conan_cmake_generate_conanfile",
  70. "conan_cmake_install",
  71. "conan_cmake_run",
  72. "conan_cmake_settings",
  73. "conan_cmake_setup_conanfile",
  74. "conan_config_install",
  75. "conan_load_buildinfo",
  76. "conan_parse_arguments",
  77. "conan_require",
  78. "conan_require_tool",
  79. "old_conan_cmake_install",
  80. ]
  81. copy=["cmake/conan.cmake"]
  82. add_values=[{attr="includes", values=["cmake/conan.cmake"]}]
  83. [[rules]]
  84. attrs=[
  85. "target_ev_messages",
  86. "target_proto_messages",
  87. "target_proto_plugin",
  88. "target_proto_outs",
  89. "target_proto_addincls",
  90. ]
  91. copy=["cmake/protobuf.cmake"]
  92. add_values=[{attr="includes", values=["cmake/protobuf.cmake"]}]
  93. [[rules]]
  94. attrs=[
  95. "add_global_library_for",
  96. "archive",
  97. "resources_file",
  98. "generate_enum_serilization",
  99. "copy",
  100. "target_joined_source",
  101. "target_ragel_lexers",
  102. "target_yasm_source",
  103. "vcs_info",
  104. "target_sources_custom",
  105. "use_export_script",
  106. "add_yunittest",
  107. "set_yunittest_property",
  108. ]
  109. copy=[
  110. "cmake/common.cmake",
  111. "build/scripts/export_script_gen.py",
  112. "build/scripts/split_unittest.py",
  113. "build/scripts/generate_vcs_info.py"
  114. ]
  115. add_values=[{attr="includes", values=["cmake/common.cmake"]}]
  116. [[rules]]
  117. attrs=[
  118. "llvm_compile_c",
  119. "llvm_compile_cxx",
  120. ]
  121. copy=["cmake/llvm-tools.cmake"]
  122. add_values=[{attr="includes", values=["cmake/llvm-tools.cmake"]}]
  123. [[rules]]
  124. attrs=["curdir_masm_flags"]
  125. copy=["cmake/masm.cmake"]
  126. add_values=[{attr="includes", values=["cmake/masm.cmake"]}]
  127. [[rules]]
  128. attrs=["target_fbs_source"]
  129. copy=["cmake/fbs.cmake"]
  130. add_values=[{attr="includes", values=["cmake/fbs.cmake"]}]
  131. [[rules]]
  132. attrs=["add_fat_object"]
  133. copy=["cmake/fat_object.cmake"]
  134. add_values=[{attr="includes", values=["cmake/fat_objects.cmake"]}]
  135. [[rules]]
  136. attrs=["add_recursive_library"]
  137. copy=[
  138. "cmake/recursive_library.cmake",
  139. "build/scripts/create_recursive_library_for_cmake.py"
  140. ]
  141. add_values=[{attr="includes", values=["cmake/recursive_library.cmake"]}]
  142. [[rules]]
  143. attrs=["add_shared_library"]
  144. copy=["cmake/shared_libs.cmake"]
  145. add_values=[{attr="includes", values=["cmake/shared_libs.cmake"]}]
  146. [[rules]]
  147. attrs=[
  148. "target_cuda_flags",
  149. "target_cuda_cflags",
  150. "target_cuda_sources"
  151. ]
  152. copy=["cmake/cuda.cmake"]
  153. add_values=[{attr="includes", values=["cmake/cuda.cmake"]}]
  154. [[rules]]
  155. attrs=["target_rodata_sources"]
  156. copy=["cmake/archive.cmake"]
  157. add_values=[{attr="includes", values=["cmake/archive.cmake"]}]
  158. [[rules]]
  159. attrs=[
  160. "target_cython_sources",
  161. "target_cython_options",
  162. "target_cython_include_directories",
  163. "set_python_type_for_cython",
  164. ]
  165. copy=["cmake/cython.cmake"]
  166. add_values=[{attr="includes", values=["cmake/cython.cmake"]}]
  167. [[rules]]
  168. attrs=[
  169. "swig_add_library",
  170. "add_jar"
  171. ]
  172. copy=[
  173. "cmake/swig.cmake",
  174. "build/scripts/gather_swig_java.cmake"
  175. ]
  176. add_values=[{attr="includes", values=["cmake/swig.cmake"]}]
  177. # Conan profiles for platforms
  178. [[rules]]
  179. platforms=[
  180. "android-arm",
  181. "android-arm32"
  182. ]
  183. copy=["cmake/conan-profiles/android.armv7.profile"]
  184. [[rules]]
  185. platforms=["android-arm64"]
  186. copy=["cmake/conan-profiles/android.arm64.profile"]
  187. [[rules]]
  188. platforms=["android-x86"]
  189. copy=["cmake/conan-profiles/android.x86.profile"]
  190. [[rules]]
  191. platforms=["android-x86_64"]
  192. copy=["cmake/conan-profiles/android.x86_64.profile"]
  193. [[rules]]
  194. platforms=[
  195. "linux-aarch64",
  196. "linux-arm64",
  197. "linux-aarch64-cuda",
  198. "linux-arm64-cuda"
  199. ]
  200. copy=["cmake/conan-profiles/linux.aarch64.profile"]
  201. [[rules]]
  202. platforms=[
  203. "linux-ppc64le",
  204. "linux-ppc64le-cuda"
  205. ]
  206. copy=["cmake/conan-profiles/linux.ppc64le.profile"]
  207. [[rules]]
  208. platforms=["darwin-arm64"]
  209. copy=["cmake/conan-profiles/macos.arm64.profile"]