diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-03 10:46:02 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:21:42 +0200 |
commit | 8cb9e63d3401a1b90858ef4f7e985c94686435e5 (patch) | |
tree | e682cc52525a8525ec2f9c2a3dbf1d93ea432b61 /template | |
parent | b067c5854c76a96b949ff0c092f74649fbda44fc (diff) |
Make more generic template.
Adding variable to fill config.xml content.
Change-Id: Ie9557e4ba89457026fb2db4f8d574e6e19af8556
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'template')
-rw-r--r-- | template/etc/config.cmake | 39 | ||||
-rw-r--r-- | template/packaging/wgt/config.xml.in | 8 |
2 files changed, 41 insertions, 6 deletions
diff --git a/template/etc/config.cmake b/template/etc/config.cmake index b331ac7..6566ed5 100644 --- a/template/etc/config.cmake +++ b/template/etc/config.cmake @@ -24,6 +24,20 @@ set(PROJECT_PRETTY_NAME "Example") set(PROJECT_DESCRIPTION "AGL application example") set(PROJECT_URL "https://gerrit.automotivelinux.org/gerrit/apps/app-templates") set(PROJECT_ICON "icon.png") +set(PROJECT_AUTHOR "Last Name, First Name") +set(PROJECT_AUTHOR_MAIL "example.man@bigouden.bzh") +set(PROJECT_LICENCE "APL2.0") + +# Where are stored config.xml.in and icon.png.in files. Template available at : +# https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/app-templates +# set(PROJECT_WGT_DIR "packaging/wgt") + +# Where are stored your external libraries for your project. This is 3rd party library that you don't maintain +# but used and must be built and linked. +# set(PROJECT_LIBDIR "libs") + +# Where are stored data for your application. Pictures, static resources must be placed in that folder. +# set(PROJECT_RESOURCES "data") # Compilation Mode (DEBUG, RELEASE) # ---------------------------------- @@ -75,12 +89,33 @@ set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib) # Optional force binding installation # ------------------------------------ -set(BINDINGS_INSTALL_PREFIX /opt ) +# set(BINDINGS_INSTALL_PREFIX PrefixPath ) # Optional force widget prefix generation -# --------------------------------------- +# ------------------------------------------------ # set(WIDGET_PREFIX DestinationPath) +# Optional Widget entry point file. +# --------------------------------------------------------- + # This is the file that will be executed, loaded,... +# at launch time by the application framework + +# set(WIDGET_ENTRY_POINT EntryPoint_Path) + +# Optional Widget Mimetype specification +# -------------------------------------------------- +# Choose between : +# - application/x-executable +# - application/vnd.agl.url +# - application/vnd.agl.service +# - application/vnd.agl.native +# - text/vnd.qt.qml +# - application/vnd.agl.qml +# - application/vnd.agl.qml.hybrid +# - application/vnd.agl.html.hybrid +# +# set(WIDGET_TYPE MimeType) + # Optional force binding Linking flag # ------------------------------------ # set(BINDINGS_LINK_FLAG LinkOptions ) diff --git a/template/packaging/wgt/config.xml.in b/template/packaging/wgt/config.xml.in index 99c0168..250878a 100644 --- a/template/packaging/wgt/config.xml.in +++ b/template/packaging/wgt/config.xml.in @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" id="@PROJECT_NAME@" version="@PROJECT_VERSION@"> <name>@PROJECT_NAME@</name> - <icon src="icon.png"/> - <content src="htdocs/index.html" type="application/vnd.agl.html.hybrid"/> + <icon src="@PROJECT_ICON@"/> + <content src="@WIDGET_ENTRY_POINT@" type="@WIDGET_TYPE@"/> <description>@PROJECT_DESCRIPTION@</description> - <author>Romain Forlot <romain.forlot@iot.bzh></author> - <license>APL 2.0</license> + <author>@PROJECT_AUTHOR@ <@PROJECT_AUTHOR_MAIL@></author> + <license>@PROJECT_LICENCE@</license> </widget> |