123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444 |
- source_root_replacer = "${PROJECT_SOURCE_DIR}"
- binary_root_replacer = "${PROJECT_BINARY_DIR}"
- [platforms]
- linux="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\" AND NOT HAVE_CUDA"
- linux-x86_64="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\" AND NOT HAVE_CUDA"
- linux-x86_64-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\" AND HAVE_CUDA"
- linux-aarch64="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND NOT HAVE_CUDA"
- linux-arm64="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND NOT HAVE_CUDA"
- linux-aarch64-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND HAVE_CUDA"
- linux-arm64-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"aarch64\" AND HAVE_CUDA"
- linux-ppc64le="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"ppc64le\" AND NOT HAVE_CUDA"
- linux-ppc64le-cuda="CMAKE_SYSTEM_NAME STREQUAL \"Linux\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"ppc64le\" AND HAVE_CUDA"
- darwin="CMAKE_SYSTEM_NAME STREQUAL \"Darwin\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\""
- darwin-x86_64="CMAKE_SYSTEM_NAME STREQUAL \"Darwin\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"x86_64\""
- darwin-arm64="CMAKE_SYSTEM_NAME STREQUAL \"Darwin\" AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"arm64\""
- windows="WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"AMD64\" AND NOT HAVE_CUDA"
- windows-x86_64="WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"AMD64\" AND NOT HAVE_CUDA"
- windows-x86_64-cuda="WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL \"AMD64\" AND HAVE_CUDA"
- android-arm="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"arm\""
- android-arm32="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"arm\""
- android-arm64="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"arm64\""
- android-x86="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"x86\""
- android-x86_64="ANDROID AND CMAKE_ANDROID_ARCH STREQUAL \"x86_64\""
- [root]
- templates=[
- { path="conanfile.py.jinja", dest="conanfile.py" },
- { path="root_cmake_lists.jinja", dest="CMakeLists.txt" },
- { path="root_global_vars.jinja", dest="cmake/global_vars.cmake" },
- ]
- copy=[
- "cmake/global_flags.compiler.gnu.march.cmake",
- "cmake/global_flags.compiler.gnu.cmake",
- "cmake/global_flags.compiler.msvc.cmake",
- "cmake/global_flags.linker.gnu.cmake",
- "cmake/global_flags.linker.msvc.cmake",
- "cmake/global_flags.cmake",
- ]
- [targets.EMPTY]
- template={ path="dir_cmake_lists.jinja", dest="CMakeLists{PLATFORM}.txt" }
- merge_platform_template={ path="merge_platforms_cmake_lists.jinja", dest="CMakeLists.txt" }
- [targets.add_executable]
- template={ path="dir_cmake_lists.jinja", dest="CMakeLists{PLATFORM}.txt" }
- merge_platform_template={ path="merge_platforms_cmake_lists.jinja", dest="CMakeLists.txt" }
- [targets.add_global_library_for]
- is_extra_target = true
- [targets.add_library]
- template={ path="dir_cmake_lists.jinja", dest="CMakeLists{PLATFORM}.txt" }
- merge_platform_template={ path="merge_platforms_cmake_lists.jinja", dest="CMakeLists.txt" }
- [targets.add_shared_library]
- template={ path="dir_cmake_lists.jinja", dest="CMakeLists{PLATFORM}.txt" }
- merge_platform_template={ path="merge_platforms_cmake_lists.jinja", dest="CMakeLists.txt" }
- [targets.add_fat_object]
- template={ path="dir_cmake_lists.jinja", dest="CMakeLists{PLATFORM}.txt" }
- merge_platform_template={ path="merge_platforms_cmake_lists.jinja", dest="CMakeLists.txt" }
- [targets.add_recursive_library]
- is_extra_target = true
- [targets.add_swig_jni_library]
- is_extra_target = true
- [attrs.root]
- # DEPRECATED - Skipped old hardcoded-cmake attributes
- conan_require="skip"
- conan_require_tool="skip"
- conan_import="skip"
- conan_options="skip"
- add_language="skip"
- set_global_flags="skip"
- find_package="skip"
- include="skip"
- # Really used attributes
- # All Conan attributes make sorted_set for stability generated conanfile,
- # order has no effect for all conan options
- # All OS conan attributes
- conan-requires="sorted_set"
- conan-tool_requires="sorted_set"
- conan-imports="sorted_set"
- conan-options="sorted_set"
- conan-generators="sorted_set"
- # OS depends conan attributes
- conan-os_depends="list"
- conan-os_depends-ITEM="dict"
- conan-os_depends-os="str"
- conan-os_depends-requires="sorted_set"
- conan-os_depends-tool_requires="sorted_set"
- conan-os_depends-imports="sorted_set"
- conan-os_depends-options="sorted_set"
- conan-os_depends-generators="sorted_set"
- # For project languages order important only for ASM, it must be after C/CXX,
- # this special logic maked in template, here use sorted_set for stability generated vars
- project_languages="sorted_set"
- vanilla_protobuf="flag"
- # Use sorted_set for include(*.cmake) for stability generated CMakeLists.txt
- includes="sorted_set"
- [attrs.platform]
- platform_vars-FAT_OBJECT_PREFIX="str"
- platform_vars-FAT_OBJECT_SUFFIX="str"
- platform_vars-RAGEL_FLAGS="str"
- platform_vars-YASM_FLAGS="str"
- platform_vars-CMAKE_CUDA_STANDARD="str"
- platform_vars-BISON_FLAGS="str"
- platform_vars-LEX_FLAGS="str"
- platform_vars-FBS_CPP_FLAGS="str"
- platform_vars-COMMON_PROTOC_FLAGS="str"
- [attrs.dir]
- # DEPRECATED - Skipped old hardcoded-cmake attributes
- curdir_masm_flags="skip"
- set_vars="skip"
- # Really used attributes
- dir_macroses="list"
- dir_macroses-ITEM="dict"
- dir_macroses-macro="str"
- dir_macroses-args="list"
- # This dir_includes translated to add_subdirectory(), order may be important (depends on the code),
- # that is why here use set and not sort it
- dir_includes="set"
- [attrs.target]
- # DEPRECATED - Skipped old hardcoded-cmake attributes
- set_target_property="skip"
- append_target_property="skip"
- # DEPRECATED - target multiple calls macroses
- generate_enum_serilization="skip"
- target_joined_source="skip"
- target_ragel_lexers="skip"
- target_fbs_source="skip"
- target_flex_lexers="skip"
- target_bison_parser="skip"
- target_yasm_source="skip"
- target_rodata_sources="skip"
- target_sources_custom="skip"
- vcs_info="skip"
- resources="skip"
- llvm_compile_c="skip"
- llvm_compile_cxx="skip"
- # DEPRECATED - target unique calls macroses
- target_cuda_flags="skip"
- target_cuda_cflags="skip"
- target_proto_outs="skip"
- target_proto_addincls="skip"
- use_export_script="skip"
- target_cython_options="skip"
- target_cython_include_directories="skip"
- set_python_type_for_cython="skip"
- target_proto_plugin="skip"
- # DEPRECATED - target options
- target_compile_options="skip"
- target_include_directories="skip"
- target_link_options="skip"
- target_ev_messages="skip"
- target_proto_messages="skip"
- target_sources="skip"
- target_cuda_sources="skip"
- target_cython_sources="skip"
- library_fake_marker="skip"
- # DEPRECATED - target commands
- add_custom_command="skip"
- add_test="skip"
- add_yunittest="skip"
- set_yunittest_property="skip"
- copy_file="skip"
- configure_file="skip"
- run_antlr="skip"
- set_property="skip"
- add_jar="skip"
- set_property_escaped="skip"
- set_yunittest_property_escaped="skip"
- # Really used attributes
- is_fake_module="bool"
- # Module packages (not induced, applied in current module only)
- mpackages="list"
- mpackages-ITEM="dict"
- mpackages-name="str"
- mpackages-components="list"
- target_properties="list"
- target_properties-ITEM="dict"
- target_properties-name="str"
- target_properties-value="list"
- protoc_extra_outs="list"
- target_options="dict"
- target_options-interfaces="list"
- target_options-interfaces-ITEM="dict"
- target_options-interfaces-option="str"
- target_options-interfaces-args="list"
- target_options-publics="list"
- target_options-publics-ITEM="dict"
- target_options-publics-option="str"
- target_options-publics-args="list"
- target_options-privates="list"
- target_options-privates-ITEM="dict"
- target_options-privates-option="str"
- target_options-privates-args="list"
- target_commands="list"
- target_commands-ITEM="dict"
- target_commands-macro="str"
- target_commands-args="list"
- target_commands-args_escaped="list"
- target_macroses="list"
- target_macroses-ITEM="dict"
- target_macroses-macro="str"
- target_macroses-args="list"
- target_macroses-merge_args="flag"
- add_test_requirements="list"
- add_ytest_requirements="list"
- [attrs.induced]
- # DEPRECATED - target options
- consumer_link_library="skip"
- target_allocator="skip"
- # Induced packages
- packages="list"
- packages-ITEM="dict"
- packages-name="str"
- packages-components="list"
- # Induced link libraries
- link-interfaces="list"
- link-publics="list"
- link-privates="list"
- allocators="list"
- [[rules]]
- attrs=["packages-name=AIO"]
- copy=["cmake/FindAIO.cmake"]
- add_values=[{attr="includes", values=["cmake/FindAIO.cmake"]}]
- [[rules]]
- attrs=["packages-name=IDN"]
- copy=["cmake/FindIDN.cmake"]
- add_values=[{attr="includes", values=["cmake/FindIDN.cmake"]}]
- [[rules]]
- attrs=["packages-name=JNITarget"]
- copy=["cmake/FindJNITarget.cmake"]
- add_values=[{attr="includes", values=["cmake/FindJNITarget.cmake"]}]
- [[rules]]
- attrs=["run_antlr"]
- copy=["cmake/antlr.cmake"]
- add_values=[{attr="includes", values=["cmake/antlr.cmake"]}]
- [[rules]]
- attrs=[
- "target_bison_parser",
- "target_flex_lexers"
- ]
- copy=["cmake/bison.cmake"]
- add_values=[{attr="includes", values=["cmake/bison.cmake"]}]
- [[rules]]
- attrs=[
- "conan-requires",
- "conan-tool_requires",
- "conan-imports",
- "conan-options",
- "conan-generators",
- ]
- copy=["cmake/conan1_deprecated.cmake", "cmake/conan_provider.cmake"]
- add_values=[{attr="includes", values=["cmake/conan1_deprecated.cmake"]}]
- [[rules]]
- attrs=[
- "target_ev_messages",
- "target_proto_messages",
- "target_macroses-macro=target_proto_plugin",
- "target_macroses-macro=target_proto_outs",
- "target_macroses-macro=target_proto_addincls",
- ]
- copy=[
- "cmake/protobuf.cmake",
- "build/scripts/re_replace.py",
- ]
- add_values=[{attr="includes", values=["cmake/protobuf.cmake"]}]
- [[rules]]
- attrs=[
- "add_global_library_for",
- "target_macroses-macro=generate_enum_serilization",
- "target_macroses-macro=target_joined_source",
- "target_macroses-macro=target_ragel_lexers",
- "target_macroses-macro=target_yasm_source",
- "target_macroses-macro=vcs_info",
- "target_macroses-macro=target_sources_custom",
- "target_macroses-macro=use_export_script",
- "target_commands-macro=add_yunittest",
- "target_commands-macro=set_yunittest_property",
- ]
- copy=[
- "cmake/common.cmake",
- "build/scripts/export_script_gen.py",
- "build/scripts/split_unittest.py",
- "build/scripts/generate_vcs_info.py"
- ]
- add_values=[{attr="includes", values=["cmake/common.cmake"]}]
- [[rules]]
- attrs=[
- "target_macroses-macro=llvm_compile_c",
- "target_macroses-macro=llvm_compile_cxx",
- ]
- copy=["cmake/llvm-tools.cmake"]
- add_values=[{attr="includes", values=["cmake/llvm-tools.cmake"]}]
- [[rules]]
- attrs=["dir_macroses-macro=curdir_masm_flags"]
- copy=["cmake/masm.cmake"]
- add_values=[{attr="includes", values=["cmake/masm.cmake"]}]
- [[rules]]
- attrs=["target_macroses-macro=target_fbs_source"]
- copy=["cmake/fbs.cmake"]
- add_values=[{attr="includes", values=["cmake/fbs.cmake"]}]
- [[rules]]
- attrs=["add_fat_object"]
- copy=["cmake/fat_object.cmake"]
- add_values=[{attr="includes", values=["cmake/fat_objects.cmake"]}]
- [[rules]]
- attrs=["add_recursive_library"]
- copy=[
- "cmake/recursive_library.cmake",
- "build/scripts/create_recursive_library_for_cmake.py"
- ]
- add_values=[{attr="includes", values=["cmake/recursive_library.cmake"]}]
- [[rules]]
- attrs=["add_shared_library"]
- copy=["cmake/shared_libs.cmake"]
- add_values=[{attr="includes", values=["cmake/shared_libs.cmake"]}]
- [[rules]]
- attrs=[
- "target_macroses-macro=target_cuda_flags",
- "target_macroses-macro=target_cuda_cflags",
- "target_cuda_sources"
- ]
- copy=["cmake/cuda.cmake"]
- add_values=[{attr="includes", values=["cmake/cuda.cmake"]}]
- [[rules]]
- attrs=["target_macroses-macro=target_rodata_sources"]
- copy=["cmake/archive.cmake"]
- add_values=[{attr="includes", values=["cmake/archive.cmake"]}]
- [[rules]]
- attrs=[
- "target_cython_sources",
- "target_macroses-macro=target_cython_options",
- "target_macroses-macro=target_cython_include_directories",
- "target_macroses-macro=set_python_type_for_cython",
- ]
- copy=["cmake/cython.cmake"]
- add_values=[{attr="includes", values=["cmake/cython.cmake"]}]
- [[rules]]
- attrs=[
- "swig_add_library",
- "target_commands-macro=add_jar"
- ]
- copy=[
- "cmake/swig.cmake",
- "build/scripts/gather_swig_java.cmake"
- ]
- add_values=[{attr="includes", values=["cmake/swig.cmake"]}]
- # Conan profiles for platforms
- [[rules]]
- platforms=[
- "android-arm",
- "android-arm32"
- ]
- copy=["cmake/conan-profiles/android.armv7.profile"]
- [[rules]]
- platforms=["android-arm64"]
- copy=["cmake/conan-profiles/android.arm64.profile"]
- [[rules]]
- platforms=["android-x86"]
- copy=["cmake/conan-profiles/android.x86.profile"]
- [[rules]]
- platforms=["android-x86_64"]
- copy=["cmake/conan-profiles/android.x86_64.profile"]
- [[rules]]
- platforms=[
- "linux-aarch64",
- "linux-arm64",
- "linux-aarch64-cuda",
- "linux-arm64-cuda"
- ]
- copy=["cmake/conan-profiles/linux.aarch64.profile"]
- [[rules]]
- platforms=[
- "linux-ppc64le",
- "linux-ppc64le-cuda"
- ]
- copy=["cmake/conan-profiles/linux.ppc64le.profile"]
- [[rules]]
- platforms=["darwin-x86_64"]
- copy=["cmake/conan-profiles/macos.x86_64.profile"]
- [[rules]]
- platforms=["darwin-arm64"]
- copy=["cmake/conan-profiles/macos.arm64.profile"]
|