This module contains function to handle CMake managed project.
Get the list of known cmake generators. Assume cmake is in PATH, or path to cmake is correctly configured in ~/.config/qi/qibuild.xml
Get a variable from cmake cache
Parameters: |
|
---|---|
Returns: | the variable value |
Call cmake with from a build dir for a source dir. cmake_args are added on the command line.
Parameters: |
|
---|
For qibuild/CMake hackers:
Parameters: |
|
---|
Display the options by looking in the CMake cache
Read a CMakeCache.txt file, returning a dict name -> value
Get the path to cmake modules.
First, look fo a project named qibuild in the worktree, (if a worktree was passed, then, assume we are using qibuild from sources, then assume we are using an installed version of qibuild.
Get a tool from the binutils package. First, look for it in the CMake cache, else look for it in the system.
Note that after a call to CMAKE_FORCE_C_COMPILER() in a CMake toolchain file, CMAKE_AR, CMAKE_OBJDUMP et al. should be correctly set in cache.