qibuild.project – Managing projects

qibuild.project.Project

class qibuild.project.Project(name, directory)

Store information about a project

Main attributes

Those are set during initialization

Project.name

The name of the project

Project.directory

The source directory of the project

Project.depends

The list of build time depencies (read for qiproject.xml)

Project.rdepends

The list of runtime depencies (read for qiproject.xml)

Other functions in this module

qibuild.project.update_project(project, toc)

Update a project using a Toc instance:

This is to be called right after the toc object has been created, to be sure that the settings are consistent among all the projects.

This will set the following attributes:

qibuild.project.bootstrap_project(project, toc)

Create the magic build/dependencies.cmake file

This is to be called right before calling cmake inside the project build directory.

Note that update_project() must have been called first, and then only can we use toc.get_sdk_dirs