codecrepos.git_repository_cloner_and_builder

class GitRepositoryClonerAndBuilder(repository_address: str = '', tag: str = 'master', local_path: str = '', build_tool: str = 'cmake', cmake_path: str = '..', build_path: str = 'build', build_options: List[str] = <factory>, use_docker_to_build: bool = True, gcc_version_from_build: str = 'Undefined', commit_hash: str = '')[source]

Bases: object

Parameters:
  • repository_address (str)

  • tag (str)

  • local_path (str)

  • build_tool (str)

  • cmake_path (str)

  • build_path (str)

  • build_options (List[str])

  • use_docker_to_build (bool)

  • gcc_version_from_build (str)

  • commit_hash (str)

repository_address: str = ''
tag: str = 'master'
local_path: str = ''
build_tool: str = 'cmake'
cmake_path: str = '..'
build_path: str = 'build'
build_options: List[str]
use_docker_to_build: bool = True
gcc_version_from_build: str = 'Undefined'
commit_hash: str = ''
clone_and_checkout_tag()[source]

Clones the repository if it does not exist and checks out the configured tag.

Returns:

None

Return type:

None

build(num_cores=None)[source]

Builds the codec using the configured build tool (cmake or make).

Parameters:

num_cores (Optional[float]) – Number of CPU cores for parallel build, defaults to all available

Returns:

None

Return type:

None