Read and write qibuild XML configuration files
A class to represent qibuild XML configuration
Typical usage is:
qibuild_cfg = QiBuildConfig()
qibuild_cfg.read()
qibuild_cfg.read_local_config(".qi/qibuild.xml")
# Then every config key is usable using objects
# or dictionnaries:
build_dir = qibuild_cfg.local.build.build_dir,
win32_config = qibuild_cfg.configs['win32-vs2010']
cmake_generator = win32_config.cmake.generator
ide = IDE()
ide.name = "QtCreator"
ide.path = "/path/to/qtcreator"
qibuild_cfg.add_ide(ide)
qibuild_cfg.write()
qibuild_cfg.local.defaults = "win32-vs2010"
# save defaults in local xml file:
qibuild_cfg.write_local_config()
A class to represent both local and global qibuild.xml configuration files
Read from a config location
Apply a local configuration
Dump local settings to a xml file
Merge various configs from <defaults> and the selected <config > tag
Set a new config to use by default
Set a new IDE to use by default
Set a new editor to use by default (Useful for qibuild config –edit)
A a new config to the list
Add a new IDE to the list
Add a path to the default env path
Return the access settings of a server
Configure access to a server
Return the default configuration associated with the given worktree
Set the default configuration for the given worktree
Set the config used to build host tools
Get the config to use when looking for host tools
Write back the new config