Add CMake definitions so that it use the correct API's version.
XML node in config.xml wasn't correct so that it fails to parse.
The binary should be placed into a bin sub-directory.
Add the missing API import.
Fix the dependency name due to renaming.
Hack the compilation script so that it can find the widget when yocto
and when jenkins (waiting for a fix of the cmake alias in the SDK so
that I can get rid of this script)
Change-Id: Idaff67d8d63b7163deb16766832cf04349eb0237
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
set(AFB_HELPERS_QTWSCLIENT ON CACHE BOOL "enable Qt's WebSocket client" FORCE)
set(AFB_HELPERS_QTWSCLIENT ON CACHE BOOL "enable Qt's WebSocket client" FORCE)
-add_definitions(-DUSE_API_DYN)
+add_definitions(-DUSE_API_DYN -DAFB_BINDING_WANT_DYNAPI -DAFB_BINDING_VERSION=3)
include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/cmake/config.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/cmake/config.cmake)
if(NOT NATIVE_BUILD)
target_link_libraries(mixer
homescreen
if(NOT NATIVE_BUILD)
target_link_libraries(mixer
homescreen
if [ "$1" == "package" ]; then
make widget
if [ "$1" == "package" ]; then
make widget
<widget xmlns="http://www.w3.org/ns/widgets" id="@PROJECT_NAME@" version="@PROJECT_VERSION@">
<name>@PROJECT_NAME@</name>
<icon src="@PROJECT_ICON@"/>
<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@"/>
+ <content src="bin/@WIDGET_ENTRY_POINT@" type="@WIDGET_TYPE@"/>
<description>@PROJECT_DESCRIPTION@</description>
<description>@PROJECT_DESCRIPTION@</description>
- <author>
- <author href="https://www.automotivelinux.org/" email = "info@automotivelinux.org">
- Loïc Collignon <loic.collignon@iot.bzh>
- Matt Porter <mporter@konsulko.com>
- </author>
+ <author href="https://www.automotivelinux.org/" email = "info@automotivelinux.org">
+ Loïc Collignon <loic.collignon@iot.bzh>
+ Matt Porter <mporter@konsulko.com>
+ </author>
<license>@PROJECT_LICENSE@</license>
<feature name="urn:AGL:widget:required-api">
<param name="windowmanager" value="ws" />
<param name="homescreen" value="ws" />
<license>@PROJECT_LICENSE@</license>
<feature name="urn:AGL:widget:required-api">
<param name="windowmanager" value="ws" />
<param name="homescreen" value="ws" />
+ <param name="ahl-4a" value="ws" />
</feature>
<feature name="urn:AGL:widget:required-permission">
<param name="urn:AGL:permission::public:no-htdocs" value="required" />
</feature>
<feature name="urn:AGL:widget:required-permission">
<param name="urn:AGL:permission::public:no-htdocs" value="required" />