summaryrefslogtreecommitdiffstats
path: root/ll-database-binding/conf.d
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-10-25 18:18:36 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-25 18:18:36 +0200
commita4d27caee36c13e08746be91dd35f01d58475982 (patch)
treea13845ecc5d46ab98987145860135f604f8aaa53 /ll-database-binding/conf.d
parente56b5c07d60ae8d411d8cf4e7bad4c8721e1724e (diff)
database: setup permissions
Change-Id: I5bb0debcff2175de05860b1e13fc6cb5b176a42a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'll-database-binding/conf.d')
-rw-r--r--ll-database-binding/conf.d/cmake/config.cmake4
-rw-r--r--ll-database-binding/conf.d/wgt/config.xml.in19
2 files changed, 21 insertions, 2 deletions
diff --git a/ll-database-binding/conf.d/cmake/config.cmake b/ll-database-binding/conf.d/cmake/config.cmake
index 2005ddb..37f7e76 100644
--- a/ll-database-binding/conf.d/cmake/config.cmake
+++ b/ll-database-binding/conf.d/cmake/config.cmake
@@ -26,7 +26,7 @@ set(PROJECT_URL "")
set(PROJECT_ICON "icon.png")
set(PROJECT_AUTHOR "Collignon, Loïc")
set(PROJECT_AUTHOR_MAIL "loic.collignon@iot.bzh")
-set(PROJECT_LICENSE "APL2.0")
+set(PROJECT_LICENSE "MIT")
set(PROJECT_LANGUAGES,"C")
# Where are stored default templates files from submodule or subtree app-templates in your project tree
@@ -127,7 +127,7 @@ set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib)
# Optional location for config.xml.in
# -----------------------------------
#set(WIDGET_ICON conf.d/wgt/${PROJECT_ICON} CACHE PATH "Path to the widget icon")
-#set(WIDGET_CONFIG_TEMPLATE ${CMAKE_CURRENT_SOURCE_DIR}/conf.d/wgt/config.xml.in CACHE PATH "Path to widget config file template (config.xml.in)")
+set(WIDGET_CONFIG_TEMPLATE ${CMAKE_CURRENT_SOURCE_DIR}/conf.d/wgt/config.xml.in CACHE PATH "Path to widget config file template (config.xml.in)")
# Mandatory widget Mimetype specification of the main unit
# --------------------------------------------------------------------------
diff --git a/ll-database-binding/conf.d/wgt/config.xml.in b/ll-database-binding/conf.d/wgt/config.xml.in
new file mode 100644
index 0000000..0ccd9b5
--- /dev/null
+++ b/ll-database-binding/conf.d/wgt/config.xml.in
@@ -0,0 +1,19 @@
+<?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="@PROJECT_ICON@"/>
+ <content src="@WIDGET_ENTRY_POINT@" type="@WIDGET_TYPE@"/>
+ <description>@PROJECT_DESCRIPTION@</description>
+ <author>@PROJECT_AUTHOR@ &lt;@PROJECT_AUTHOR_MAIL@&gt;</author>
+ <license>@PROJECT_LICENSE@</license>
+ <feature name="urn:AGL:widget:required-permission">
+ <param name="urn:AGL:permission::public:hidden" value="required" />
+ <param name="urn:AGL:permission::system:run-by-default" value="required" />
+ </feature>
+ <feature name="urn:AGL:widget:provided-api">
+ <param name="windowmanager" value="ws" />
+ </feature>
+ <feature name="urn:AGL:widget:required-api">
+ <param name="lib/afb-ll-database-binding.so" value="local" />
+ </feature>
+</widget>