Compute a list of CMake flags from all the settings that can affect the build (the toolchain name, the build profiles, etc ...)
A list of build profiles to use (coming from qibuild configure -p<profile>), or read form the local settings
Additional list of CMake flags (coming from qibuild configure -D<flags>) Should be a list of tuples (<key>, <value>)
Path to the “custom” CMake file. Its content will be added to the generated CMake files when running qibuild configure
Returns: | None if the custom CMake file does not exist |
---|
The current toolchain, either set by the user from the command line or read from the local qibuild settings
Whether we are building in debug. True unless user specified –release
Whether we are using make
Whether we are using visual studio
The current CMake generator, either set by the user from the command line or read from the qibuild configuration files
A dictionary defining the environment used when building, as read from qibuild configuration files. os.environ will remain unchanged
Return a suitable build directory, making sure there is one build directory per config name.
If name is None, read the active build config (set by the user with -c, or read as the default config for the worktree0
If system is True, returns sys-<system>-<arch>
The CMake arguments to use
The default configuration, as read from the local build settings
Read <worktree>/.qi/qibuild.xml
Set the active configuration. This should match an existing config name
Used when running qibuild configure -c <config>