Building modules
|
enabled module | related configure switch | related build system flag |
---|---|---|
Bluetooth | -bluetooth | enable_bluetooth |
Infrared | -infrared | enable_infrared |
Telephony | -telephony | enable_telephony |
Cell | -modem (implies -telephony switch) | enable_cell |
IPComms | -voip (implies -telephony switch) | enable_voip |
Drm | -drm | drmagent |
Media | -qtopiamedia | enable_qtopiamedia |
Location | -whereabouts | enable_qtopiawhereabouts |
QtUiTest | -test | qtuitest |
To further increase the flexibility the Qt Extended configure script behaves slightly more restrictive when compared to previous versions. Usually Qt Extended enables additional features/modules based on tests performed when configure runs. If for instance Bluez & DBUS support is detected Bluetooth support is automatically enabled unless it was explicitly disabled via the -no-bluetooth flag. Starting with Qt Extended 4.4 configure only enables additional features/modules if they are explicitly enabled via their respective command line option.
The -modules configure options unifies the various options and allows the selection of modules.
./configure -modules cell,location,pim,messaging -device xyz
The above command line enables the QtCellModule, QtLocationModule, QtPimModule, QtMessagingModule and the QtBaseModule module. The Base module is always required and is implicitly selected.
Each module has a definition file which lists the projects belonging to it. The definition files use the following name schema $QPEDIR/src/module_<module-name>.pri and the appropriate configure flag has to be passed to enable it. Once the module is included each project listed in the definition file becomes part of the build.
In some cases a module may still contain some projects not required for a particular target build. Therefore selected projects can be further excluded from the build via the device profile's projects.pri. Project selection happens after module selection. The example below adds the contact application and removes the calculator from the build.
PROJECTS+=src/applications/addressbook PROJECTS-=src/applciations/calculator
Note that when directly adding new projects dependencies may require further project adjustments in order to resolve build problems. It may for instance be necessary to add the pim library the above project selection as the addressbook depends on it (this is subject the modules selected prior to the project selection).
[Previous: Module concept] [Qt Extended Modules] [Next: Reference designs]
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com