Home · Reference · User Guide · Internals

Packages (overview)

Qtopia projects are automatically setup to be built into packages. Non-qtopia projects must add packages to their CONFIG to be built into packages. By default, each project is built into a single package. The contents are the result of running make install. To configure the default package you should use the pkg structure.

    pkg.name=myapp
    pkg.desc=My Great App
    pkg.version=1.0

You can create other structures and assign them to the PACKAGES variable to create more than one package though this is not well tested.

This is the structure of a packaging structure.

    # struct package {
    #     name       # eg. $name.ipk
    #     desc       # one line summary
    #     domain     # SXE security domains
    #     deps       # packages that this ipk depends on
    #     multi      # additional projects that should be included in this package
    #     version    # package version
    #     license    # package license
    #     maintainer # package maintainer
    #     targets    # targets to run (ie. install stuff)
    # }

You can suppress the use of the pkg structure by adding the no_pkg CONFIG value. This is useful for multi-project packages (eg. several network-related projects are put into 1 package). To improve maintainability, you should indicate which project is responsible for packaging if you do this.

    # Packaged by settings/network
    CONFIG+=no_pkg

Note that pkg.domain is automatically set to include target.domain and the domains of any app/script you have installed with hint=sxe so you may not need to set it. However, this feature is only available for the default package and you must manually assign .domain for additional packages.

See also Overviews, PACKAGES, no_pkg, and hint=sxe.


Copyright © 2007 Trolltech Qtopia Build System Documentation