diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2018-12-04 14:14:19 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2018-12-05 20:31:03 +0000 |
commit | daa5144ccc92c9060f712f7fccfe750966186f51 (patch) | |
tree | 54ca5d2f031837cf372918c5485c06f4b22dd84e /README.md | |
parent | 839bb32ea450ed2beb69a58b5928991cab1709e1 (diff) |
Use the new appman qmake integration for packaging the apps
Fixes: AUTOSUITE-691
Change-Id: I9e7b2f8ce6443c72e44e63b50902a50c8654bf6f
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 52 |
1 files changed, 3 insertions, 49 deletions
@@ -4,6 +4,9 @@ This repository hosts additional apps provided for installation in the Qt Automo All apps are intended to be packaged by the appman-packager which is part of the QtApplicationManager module. +See the "Writing Applications" documentation of the QtApplicationManager for how to develop an application +and how the packaging integration works. + # Building and Packaging of Apps All apps can be build by using the following commands: @@ -14,52 +17,3 @@ $ make In addition the apps can be packaged as well using the "package" build target $ make package - -# Adding new apps -## Simple Apps - -For simple QML only apps, just add a new folder with your QML files and icon and the info.yaml for the package. -The new package needs to be added to the qmake build system. For simple apps this is done by creating a new pro file named the same way like your folder. -The pro file looks as following: - -FILES += info.yaml \ - icon.png \ - Browser.qml - -load(app) - -Also make sure the new folder is added to the toplevel pro file qt-auto-extra-apps.pro - -## Complex Apps - -For more complex apps where you need to deploy a C++ based QML plugin in addition to your QML content you need to do the following: - -1. Create a new folder as described for Simple Apps -2. Create a new "app" sub-folder and a new "plugin" subfolder -3. In the plugin subfolder you can use the qmlplugin feature file e.g. - -TEMPLATE = lib -TARGET = camera -QT += qml quick -CONFIG += plugin - -TARGET = $$qtLibraryTarget($$TARGET) -uri = camera -load(qmlplugin) - -# Input -SOURCES += \ - camera_plugin.cpp \ - camerastream.cpp - -HEADERS += \ - camera_plugin.h \ - camerastream.h - -OTHER_FILES = qmldir - -4. In the app directory you can use the same template as used in the simple app case. -5. As the package name is retrieved from the folder name, you need to manually set the package name in your app project file -e.g. NAME = com.pelagicore.camera -6. Create a sub-dirs pro file in your global app folder -7. Add your app folder to the toplevel pro file qt-auto-extra-apps.pro |