cmake_add_configure_build_install()
def cmake_add_configure_build_install(name, source_directory, build_directory, prefix_paths, configure_inputs, build_inputs, configure_args, configure_env, build_args, build_env, build_artifact_globs, deps, install_path, skip_install, find_using_cmake_system_path)Add a CMake project to the build
Args
name-strThe name of the projectsource_directory-strThe directory of the projectbuild_directory-strThe directory to build the project in (default is build/) prefix_paths-list[str]The paths to add to the CMAKE_PREFIX_PATH: default is sysroot;build/install (uses absolute paths)configure_inputs-list[str]The inputs for the configure step. Default uses cmake files in source directorybuild_inputs-list[str]The inputs for the build step. Default uses source directoryconfigure_args-list[str]The arguments to pass to the configure scriptconfigure_env-dict[str, str]The environment variables to set for the configure stepbuild_args-list[str]The arguments to pass to the build commandbuild_env-dict[str, str]The environment variables to set for the build stepbuild_artifact_globs-list[str]The globs to match when installing build artifactsdeps-[str]The dependencies of the projectinstall_path-strThe path to install the projectskip_install-boolSkip the install stepfind_using_cmake_system_path-
cmake_add_repo()
def cmake_add_repo(name, url, rev, install_path, configure_args, build_args, build_artifact_globs, checkout_submodules, relative_source_directory, clone, checkout_type, skip_install, find_using_cmake_system_path, deps)Add a CMake project to the build
Args
name-strThe name of the projecturl-strThe URL of the repositoryrev-strThe revision of the repositoryinstall_path-strThe path to install the projectconfigure_args-[str]The arguments to pass to the configure scriptbuild_args-[str]The arguments to pass to the build commandbuild_artifact_globs-[str]The globs to match when installing build artifactscheckout_submodules-boolWhether to checkout submodulesrelative_source_directory-strThe directory of the project (default is the name)clone-strThe clone type (Worktree, Blobless, Shallow, Default)checkout_type-struse checkout_type_optional() to skip rule checkoutskip_install-boolSkip the install stepfind_using_cmake_system_path-deps-[str]The dependencies of the project
cmake_add_source_archive()
def cmake_add_source_archive(name, url, sha256, source_directory, filename, install_path, configure_args, build_args, build_artifact_globs, deps, checkout_type, skip_install)Add a CMake project to the build
Args
name-strThe name of the projecturl-strThe URL of the source archivesha256-strThe SHA256 of the source archivesource_directory-strThe directory of the projectfilename-strThe filename of the source archiveinstall_path-strThe path to install the projectconfigure_args-[str]The arguments to pass to the configure scriptbuild_args-[str]The arguments to pass to the build commandbuild_artifact_globs-[str]The globs to match when installing build artifactsdeps-[str]List of dependencies of the projectcheckout_type-struse checkout_type_optional() to skip rule checkoutskip_install-boolSkip the install step
cmake_get_default_prefix_paths()
def cmake_get_default_prefix_paths(install_path)Get the default prefix paths for CMake
Args
install_path- The path to install the project
Returns
A list of the default prefix paths