summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-03 10:46:02 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-03 10:46:02 +0200
commit683fd147858049097bd3684326210ddcb9460572 (patch)
tree8a47823a434fc0ed9e5dd96c828222f2f2849a26 /template
parent64ffd7a9f9604805c01f8bb2fd32616c3adf3ec0 (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.cmake39
-rw-r--r--template/packaging/wgt/config.xml.in8
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 &lt;romain.forlot@iot.bzh&gt;</author>
- <license>APL 2.0</license>
+ <author>@PROJECT_AUTHOR@ &lt;@PROJECT_AUTHOR_MAIL@&gt;</author>
+ <license>@PROJECT_LICENCE@</license>
</widget>