def get_bazel_lib_files(name, version, package_name="Pkg"): files = { "conanfile.py": conanfile_sources_v2.format(name=name, version=version, package_name=package_name), "main/{}.cpp".format(name): source_cpp.format(name=name, version=version), "main/{}.h".format(name): source_h.format(name=name, version=version), "main/BUILD": _bazel_build.format(name=name, version=version), "WORKSPACE": _bazel_workspace.format(name=name, version=version), "test_package/conanfile.py": test_conanfile_v2.format(name=name, version=version, package_name=package_name), "test_package/main/example.cpp": test_main.format(name=name), "test_package/main/BUILD": _bazel_build_test.format(name=name), "test_package/WORKSPACE": _test_bazel_workspace.format(name=name, version=version) } return files
def get_autotools_exe_files(name, version, package_name="Pkg"): files = {"conanfile.py": conanfile_exe.format(name=name, version=version, package_name=package_name), "src/Makefile.am": makefile_am_exe.format(name=name, version=version), "src/main.cpp": test_main.format(name=name), "src/{}.cpp".format(name): source_cpp.format(name=name, version=version), "src/{}.h".format(name): source_h.format(name=name, version=version), "configure.ac": configure_ac.format(name=name, version=version), "Makefile.am": makefile_am.format(name=name, version=version), "test_package/conanfile.py": test_conanfile_exe.format(name=name, version=version, package_name=package_name)} return files
def get_meson_exe_files(name, version, package_name="Pkg"): files = { "conanfile.py": conanfile_exe.format(name=name, version=version, package_name=package_name), "src/{}.cpp".format(name): source_cpp.format(name=name, version=version), "src/{}.h".format(name): source_h.format(name=name, version=version), "src/main.cpp": test_main.format(name=name), "meson.build": _meson_build_exe.format(name=name, version=version), "test_package/conanfile.py": test_conanfile_exe_v2.format(name=name, version=version, package_name=package_name) } return files