apps/app-templates.git
5 years agoBe able to overwrite BUILD_TYPE using CLI 85/15085/3 sandbox/sdesneux/4a_master
Romain Forlot [Fri, 6 Jul 2018 14:10:33 +0000 (16:10 +0200)]
Be able to overwrite BUILD_TYPE using CLI

If not defined using CLI CMake set the variable CMAKE_BUILD_TYPE
to an empty value. As it is a CACHE variable it can't be
overwritten except if you force it. This fix setting this variable
the first defined value wins:

CLI > Config.cmake > Default value (DEBUG)

Change-Id: I7ff3c9063febf71b898fa7f19058ce2fb25fae01
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoUse CACHE variable for other common CMAKE variable 35/15135/3
Romain Forlot [Mon, 9 Jul 2018 11:57:28 +0000 (13:57 +0200)]
Use CACHE variable for other common CMAKE variable

This is done to be able to overwite from CLI those variables.
CMAKE_INSTALL_PREFIX is a special case since it is set by default
to '/usr/local' at CMake invocation. So overwriting by CLI is fine
but set it up using config.cmake file not. So since CMake v3.7 there
is a variable to know if this variable has been set by default or not.

Change-Id: I60c5161fa9a4134d100ef709d0966d599871ad44
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix:: wrong wgt using RELEASE BUILD TYPE 65/15065/2
Romain Forlot [Fri, 6 Jul 2018 08:40:37 +0000 (10:40 +0200)]
Fix:: wrong wgt using RELEASE BUILD TYPE

The wgt filename is suffixed with the build type
except for RELEASE build type. In this case, the name
wasn't set. This fix this issue.

Change-Id: I5a0be07c5f380676ba9ecfdd1b51ebab95aca3dd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix: SYSROOT location detection... Wrong test. 33/15033/2
Romain Forlot [Thu, 5 Jul 2018 14:48:19 +0000 (16:48 +0200)]
Fix: SYSROOT location detection... Wrong test.

Change-Id: I8c783cf3bc966b2bec54cab98de97f1e47d3b54c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoChange the default debug compilation options. 57/14957/4
Romain Forlot [Wed, 4 Jul 2018 10:22:33 +0000 (12:22 +0200)]
Change the default debug compilation options.

Because fortify source need optimization then the most
correct optimization to chose is -0g for debugging purpose.

Also be able to specify options for Clang which could differ
slightly from GNU.

Change-Id: I166c0cb62cbf9fc171cffc29c29df993f5ccb8f5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoClearer coverage compilation options configuration 63/14963/2
Romain Forlot [Tue, 3 Jul 2018 15:35:17 +0000 (17:35 +0200)]
Clearer coverage compilation options configuration

Rename CCOV to COVERAGE to make it more clearer which compilation profile
use and add a suffix to the built widget name except for
the RELEASE built type which output the normal name.

Change-Id: Ied0dfb47c25402c4146ebb190d65d17cff9ec360
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoDon't overwrite the autobuild script if it exists 49/14749/1 5.99.1 flounder/5.99.1 flounder_5.99.1
Romain Forlot [Wed, 27 Jun 2018 17:07:21 +0000 (19:07 +0200)]
Don't overwrite the autobuild script if it exists

Bug-AGL: SPEC-1529

Change-Id: I0c048e8bfe4f8eb23f31fb22808168b706cf12f8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoDisable the in-tree build method. 43/14743/1
Romain Forlot [Wed, 27 Jun 2018 16:33:18 +0000 (18:33 +0200)]
Disable the in-tree build method.

In-tree build could lead to problems and is not recommended
because only one-setup, generated files spread over the project
tree, clean is a pain in the ass and it just trash completely
your git repo...

Bug-AGL: SPEC-1534

Change-Id: I68cfd0e03933d87db7f6b2bdb88f22ddd94c2b98
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoDetect Yocto as OS distribution 41/14741/1
Romain Forlot [Wed, 27 Jun 2018 16:20:25 +0000 (18:20 +0200)]
Detect Yocto as OS distribution

When you are in a Yocto Environment there isn't os-release
file, so if the Yocto env is detected then position
manually the OSRELEASE variable to yocto-build.

Change-Id: I10029664100bb73aa74eaa85c1a4295c4ab65428
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix: wrong compile options added 81/14681/2
Romain Forlot [Tue, 26 Jun 2018 09:47:55 +0000 (11:47 +0200)]
Fix: wrong compile options added

Change-Id: I697e3812be657abc0b1877e55044225cc001c93e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFallback using zip format if no wgtpkg-pack found 63/14463/1
Romain Forlot [Fri, 15 Jun 2018 08:40:01 +0000 (10:40 +0200)]
Fallback using zip format if no wgtpkg-pack found

wgtpkg-pack tool is part of "application-framework-main" project
and not mandatory when developing natively. As a wgt package is
a zip file then use the zip format to simulate a real wgt package.

Change-Id: If2d5a86e93b9c9dc707658b2367f59a7824eddf6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years ago02-variables.cmake: Avoid checking CXX version if not required 13/14413/2
José Bollo [Thu, 14 Jun 2018 09:16:39 +0000 (11:16 +0200)]
02-variables.cmake: Avoid checking CXX version if not required

Change-Id: Id5a8987d3222df9cfaa258cdce8353dad6ca9a4a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoconfig.cmake.sample: Remove dependency to libsystemd 07/14407/2
José Bollo [Thu, 14 Jun 2018 08:15:23 +0000 (10:15 +0200)]
config.cmake.sample: Remove dependency to libsystemd

The dependency to libsystemd isn't strictly required.

Change-Id: I763e6a8d63af921c25c8dfdfb2d2021671dfd9d2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoconfig.cmake.sample: Remove dependency to libmicrohttpd 05/14405/1
José Bollo [Thu, 14 Jun 2018 08:09:23 +0000 (10:09 +0200)]
config.cmake.sample: Remove dependency to libmicrohttpd

The dependency to libmlicrohttpd is a fake. Just remove it!

Change-Id: I511acc0ea9207aa973aac28fe02b1262ad8a47c2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoAdded -D_FORTIFY_SOURCE=2 to CFLAGS 79/14279/1
Thierry Bultel [Mon, 11 Jun 2018 14:08:03 +0000 (16:08 +0200)]
Added -D_FORTIFY_SOURCE=2 to CFLAGS

Added this option, to match the given ones when building
from yocto with bitbake.
Also fixed the sample example, and some copy-paste issues
on build targets (RELEASE/DEBUG/PROFILING/CCOV).

Change-Id: I759305e54d427e6763f32b1a86207fe35add1b3f
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
5 years agostart-on-target: uses RSYNC_PREFIX path for config 97/14097/2
Thierry Bultel [Fri, 25 May 2018 14:44:29 +0000 (16:44 +0200)]
start-on-target: uses RSYNC_PREFIX path for config

Bindings using the controller need to have a right base
search path for the config files, loaded plugins, and other extra
files (lua, for instance).
Therefore, in the development workflow here, where the binding
is uploaded to the target at a typically unsusual location,
the afb-daemon is given the RSYNC_PREFIX/etc as a base through the
CONFIG_CONTROL_PATH env variable.

Change-Id: Ieb39174918f0d51985e1d63b9f7c6509a05f284a
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
5 years agoFixed spelling. 75/13975/2
Sebastien Douheret [Tue, 15 May 2018 13:13:43 +0000 (15:13 +0200)]
Fixed spelling.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoImprove OS detection
Romain Forlot [Wed, 16 May 2018 08:26:06 +0000 (10:26 +0200)]
Improve OS detection

Every distribution name detected in ID_LIKE field could
be used.

Change-Id: I767b1bb20521248b30269955ce6a15912a62df33
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: OS detection
Romain Forlot [Mon, 14 May 2018 13:11:51 +0000 (15:11 +0200)]
Fix: OS detection

Change-Id: Idcf5e85bfeab4edf1dbf52b6a0e3470ad350f939
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoLaunch from workdir
Romain Forlot [Mon, 7 May 2018 15:00:04 +0000 (17:00 +0200)]
Launch from workdir

This will ensure we are to be able to correctly debug
with GDB. Indeed workdir afb-daemon parameter need to be
set at the current dir to correctly retrieve source files
path for GDB

Change-Id: Ib59e80ec48314d5d58e033d894314d0bd676fb85
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoChange closing that could fix native debugging
Romain Forlot [Mon, 30 Apr 2018 21:31:13 +0000 (23:31 +0200)]
Change closing that could fix native debugging

Change-Id: I5b1f48d2ad70bb5903e13e1df76d523ee12a52b1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix filename pattern to match .cmake files
Romain Forlot [Tue, 24 Apr 2018 15:44:41 +0000 (17:44 +0200)]
Fix filename pattern to match .cmake files

Change-Id: I1c659045f178f5e45d31b0203abcd91485b55838
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdding cmake file at the root directory
Romain Forlot [Fri, 20 Apr 2018 13:17:49 +0000 (15:17 +0200)]
Adding cmake file at the root directory

It may be needed to include additionnal files from the root dir
as populate and remote_target_populate targets are created
at inclusion parts you can't adds target using app-template
macros after the config.cmake first inclusion.

Change-Id: I92a98d997aa239ab56183da8dc95f6db993c17a2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdds commit hash to the version. 61/13661/3
Romain Forlot [Sun, 25 Mar 2018 12:38:40 +0000 (14:38 +0200)]
Adds commit hash to the version.

Added the short hash coming from git lastest git commit
to the version number. In addition of the dirty flag
it make possible to know from where modifications
divergences begin.

Change-Id: Id25256f896c8179009d8588f79e7801cc2c90821
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoChange default sample settings.
Romain Forlot [Mon, 26 Mar 2018 07:33:03 +0000 (09:33 +0200)]
Change default sample settings.

No needs to force CMAKE build type to debug as
it's the default. Only kept for convenience if
needed to specify other build type.

Change-Id: Idf88f09eebf6ab4defe070b7df23ebf769861c63
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoForgot updating README also...
Romain Forlot [Tue, 9 Jan 2018 08:42:37 +0000 (09:42 +0100)]
Forgot updating README also...

Change-Id: If650347cb598c27fe11fbb60666af57189bc00f6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate documentation
Romain Forlot [Fri, 5 Jan 2018 17:06:13 +0000 (18:06 +0100)]
Update documentation

Better description to use BINDINGV2 labels.
Adding documentation for macros:
- add_input_files
- set_openapi_filename

Change-Id: I7eb685faf4a5d4f92343d826877066b54b0012f0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUse LFSH named, rename data to var
Romain Forlot [Fri, 5 Jan 2018 17:02:27 +0000 (18:02 +0100)]
Use LFSH named, rename data to var

Change-Id: I63ad812fc69c0ac38db0b16af405614fa68f6d54
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUse new CPP generation from afb-genskel
Romain Forlot [Thu, 21 Dec 2017 15:57:51 +0000 (16:57 +0100)]
Use new CPP generation from afb-genskel

Include a new options calling afb-genskel depending on
PROJECT_LANGUAGES variable

Change-Id: Id7719b399eac58f0ced54a49e09350a587e4e997
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate README with latest docs modifications
Romain Forlot [Thu, 7 Dec 2017 12:48:01 +0000 (13:48 +0100)]
Update README with latest docs modifications

Change-Id: If00a115e7f58ed6f2fcd6d4ebe00d96df58c0747
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDoesn't set rpath for built target and update doc
Romain Forlot [Wed, 6 Dec 2017 17:44:43 +0000 (18:44 +0100)]
Doesn't set rpath for built target and update doc

Rpath could be set using a target property if needed
in the mean time no rpath is used by default.

Change-Id: Ia704b00972545ed73dee98ea88e17d0ef08cf014
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDetails external library.
Romain Forlot [Tue, 5 Dec 2017 09:39:40 +0000 (10:39 +0100)]
Details external library.

Linting and little typo fixes.

Change-Id: I714477b429c9257595ee8eae05ba1ef4901234a2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDeprecate PROJECT_LIBDIR and PROJECT_RESOURCES var
Romain Forlot [Wed, 29 Nov 2017 08:59:02 +0000 (09:59 +0100)]
Deprecate PROJECT_LIBDIR and PROJECT_RESOURCES var

Change-Id: I9fc0e4389ade90e22e4ede77720effeff87834b7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMake sure to point to correct dir for cmake script 4.99.3 eel/4.99.3 eel_4.99.3
Romain Forlot [Fri, 24 Nov 2017 10:07:10 +0000 (11:07 +0100)]
Make sure to point to correct dir for cmake script

Change-Id: I1ec3541aa5ab6f82a91e150193c954e586cb06f8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix variables checking.
Romain Forlot [Thu, 23 Nov 2017 18:41:55 +0000 (19:41 +0100)]
Fix variables checking.

Change-Id: Ifbe95bbcb7f192ec9e84c26a73dc260926360b37
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCMake doesn't path protection.
Romain Forlot [Thu, 23 Nov 2017 18:40:35 +0000 (19:40 +0100)]
CMake doesn't path protection.

Keep using a classic CMake variable not escape with quote
for path PKG_TEMPLATE_PREFIX else path isn't correct for internal
cmake usage.

Change-Id: I9ebff240e28c5cc8922ff6bbc5e6c14a62997f65
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCompare to manual Project version if not from git
Romain Forlot [Thu, 23 Nov 2017 18:21:23 +0000 (19:21 +0100)]
Compare to manual Project version if not from git

Change-Id: I7e83d2e587757edf5cfa22709ead85ce82f52dcc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoNo failure if none tags found on project git repo
Romain Forlot [Thu, 23 Nov 2017 18:09:13 +0000 (19:09 +0100)]
No failure if none tags found on project git repo

Change-Id: Idb46117feb860c84a14b6c256ee809e31546fd7c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoProtect path with space in it.
Romain Forlot [Thu, 23 Nov 2017 08:55:21 +0000 (09:55 +0100)]
Protect path with space in it.

Bug-AGL: SPEC-1117

Change-Id: I36ba8047c3dc722c6c99ecbd90e14d5d717cb808
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCheck version between app-templates and project. 39/12039/1
Romain Forlot [Fri, 17 Nov 2017 15:24:40 +0000 (16:24 +0100)]
Check version between app-templates and project.

PROJECT_VERSION could be detected if project is located in AGL gerrit repo
or with personal tags when in personal repository
This version is checked against app-templates version which is
aligned on AGL tags.
A warning is displayed if app-templates version is outdated related to
project_version.

Also a "dirty" flag is appended to the project version if
git repo isn't in sync with its remote counterpart. Then you could
know if see an installed widget on a target that got that "-dirty"
flag appended to the version that this widget include code that could
not be merged in the git repository.

Bug-AGL: SPEC-951

Change-Id: I99687560d19d746c887fc7a095e71407bda34325
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCleaning
Romain Forlot [Thu, 16 Nov 2017 09:22:54 +0000 (10:22 +0100)]
Cleaning

Change-Id: Ia040321ddf86d80c04b63f56041b571b24a802ec
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCould specify others default install directories
Romain Forlot [Thu, 16 Nov 2017 09:22:43 +0000 (10:22 +0100)]
Could specify others default install directories

Path to default package BINDIR, LIBDIR, ETCDIR, DATADIR and
HTTPDIR.

Change-Id: I0e820f48f60e5e18053077fdbaa1d45912d5bb12
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix finding config template 03/11803/1
Scott Murray [Fri, 10 Nov 2017 04:00:53 +0000 (23:00 -0500)]
Fix finding config template

Commit 9a73785 ("Better handling icon&config.xml to build widget")
seems to have accidentally broken an application providing its own
config template, resulting in the stock templates always being used.
That results in breakage like extra permissions in the app's version
not being picked up.  The logic for setting WIDGET_CONFIG_TEMPLATE
has been reverted to what it was previously to fix the behavior.

Change-Id: I245bc08f466b883b61c286faed933a5e57a74845
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
6 years agoDisallow build in-source. 4.99.2 eel/4.99.2 eel_4.99.2
Romain Forlot [Mon, 23 Oct 2017 15:14:06 +0000 (17:14 +0200)]
Disallow build in-source.

Change-Id: If606d1ad283a37b7a2c1d4e45d8459ace2ba76c5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoKeep libraries and binding in the same directory 4.99.1 eel/4.99.1 eel_4.99.1
Romain Forlot [Mon, 9 Oct 2017 08:45:43 +0000 (10:45 +0200)]
Keep libraries and binding in the same directory

Change-Id: I40a3424b689d03e3f6cf471495ed869511a30d2d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate README and documentation
Romain Forlot [Wed, 4 Oct 2017 11:43:08 +0000 (13:43 +0200)]
Update README and documentation

Instructions to include external library into a widget

Change-Id: Ic5c8c477fdbc1d374f1f88260b51cb9f200d02e1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoInclude ExternalProject CMake module by default
Romain Forlot [Wed, 4 Oct 2017 11:41:57 +0000 (13:41 +0200)]
Include ExternalProject CMake module by default

Change-Id: Icf3929e6f2b0c28d3281ee451527ec1085ac9c7f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCleaning
Romain Forlot [Wed, 4 Oct 2017 09:22:11 +0000 (11:22 +0200)]
Cleaning

Change-Id: Id06766a8c24dd21fdee6211a384bfccf7c6535ad
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoHandle imported target to populate package folder
Romain Forlot [Wed, 4 Oct 2017 09:22:06 +0000 (11:22 +0200)]
Handle imported target to populate package folder

Can use an external library builded as an external project
or an already built library/executable to include it into
a widget.

Change-Id: Ia3282f875fe0f6f9e8f1153d87ccfbecf8559dbb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoControl install destination directory
Romain Forlot [Wed, 4 Oct 2017 09:18:47 +0000 (11:18 +0200)]
Control install destination directory

Either put all in a dedicated binding directory like a classic
widget install, either put all directly a CMAKE_INSTALL_PREFIX
root directory.

Change-Id: I54ebe8a680ea09af73c7fc9e6646fdd203fdeb98
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: wrong if closure...
Romain Forlot [Tue, 26 Sep 2017 12:59:37 +0000 (14:59 +0200)]
Fix: wrong if closure...

Change-Id: I6b8964c0c7db970b88e636222fb8394a51dbde8e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMake use of LibEfence optional
Romain Forlot [Sun, 24 Sep 2017 10:01:37 +0000 (12:01 +0200)]
Make use of LibEfence optional

Change-Id: I22b52611dab0be6021b08d6c6d63bc369df0b4d4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate Readme
Romain Forlot [Sun, 24 Sep 2017 10:01:21 +0000 (12:01 +0200)]
Update Readme

Change-Id: I30b75cec8634ffe52f3918e9da7bc1c656c6215d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: No build error on input files checked
Romain Forlot [Wed, 20 Sep 2017 14:50:53 +0000 (16:50 +0200)]
Fix: No build error on input files checked

Output a warning if no checker found but at usage must
crash the build if input files has errors.

Change-Id: I282c4eb2303922ce1cd7055b51182ed222b62d08
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdding install target to autobuild script
Romain Forlot [Fri, 15 Sep 2017 12:37:43 +0000 (14:37 +0200)]
Adding install target to autobuild script

Change-Id: I1ee2fb376e247c74e383428ec5c0b7994cba1f54
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoHandle controller plugin populate and install
Romain Forlot [Thu, 14 Sep 2017 11:31:47 +0000 (13:31 +0200)]
Handle controller plugin populate and install

Change-Id: Ib48817e4634990b6369de29ce81fa86354d73652
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoClearer output when checking data file
Romain Forlot [Tue, 12 Sep 2017 16:10:19 +0000 (18:10 +0200)]
Clearer output when checking data file

Change-Id: I942b11b460c15618cc3c6a731f588d7a8b91abcf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDon't fails if data files checker not found.
Romain Forlot [Tue, 12 Sep 2017 09:22:42 +0000 (11:22 +0200)]
Don't fails if data files checker not found.

Change-Id: If28a37406175dc318c3ed62153e3276f2eb77525
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate doc
Romain Forlot [Sat, 9 Sep 2017 14:07:37 +0000 (16:07 +0200)]
Update doc

Change-Id: I942267d9673651db6986177e8d47aa0dbc235e3e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCopying content not the directory.
Romain Forlot [Fri, 1 Sep 2017 17:36:02 +0000 (19:36 +0200)]
Copying content not the directory.

Change-Id: I3d221379459ff5451b6933fac2383c8c3797d0d3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDisabling packaging target. To be externalized
Romain Forlot [Wed, 30 Aug 2017 13:44:18 +0000 (15:44 +0200)]
Disabling packaging target. To be externalized

Change-Id: I4ff1c05eae2a8542f1ad002acc6bf0d4a7ff72d6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdded populate binding config files
Romain Forlot [Wed, 30 Aug 2017 09:14:52 +0000 (11:14 +0200)]
Added populate binding config files

Change-Id: I9fd0ccd917c0fbbfe67910a169001c85220a78c0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: wrong OS detection when SDK env or Yocto
Romain Forlot [Tue, 29 Aug 2017 15:50:05 +0000 (17:50 +0200)]
Fix: wrong OS detection when SDK env or Yocto

Change-Id: Iece230f0708129ea5980c61dae2d2cb66d32e7eb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agotemplates.d: adjustments for xds (gdb*.ini, xds-project-target.conf)
Stephane Desneux [Mon, 28 Aug 2017 17:05:20 +0000 (19:05 +0200)]
templates.d: adjustments for xds (gdb*.ini, xds-project-target.conf)

Change-Id: Ic3b029793670aac617d6d23e67ce15084f855cdb
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
6 years agostart-on-target.sh.in: use --monitoring option to start afb-daemon
Stephane Desneux [Mon, 28 Aug 2017 17:01:35 +0000 (19:01 +0200)]
start-on-target.sh.in: use --monitoring option to start afb-daemon

Change-Id: I397613a350aafd46b52d2e83d9f4c7951a9da8fe
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
6 years agoDirty fix to handle distro specific packages deps
Romain Forlot [Mon, 28 Aug 2017 16:54:41 +0000 (18:54 +0200)]
Dirty fix to handle distro specific packages deps

Could include first distro specific file to be able to modify
variable from config.cmake and then process classic submodule
cmake files.

Change-Id: Id5dad2504d44c86cb165ad56f5314e9c0c545f0b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix pkgconfig parsing result
Ronan Le Martret [Mon, 28 Aug 2017 14:03:12 +0000 (16:03 +0200)]
Fix pkgconfig parsing result

Change-Id: I1d278188126baae20ef6890ea140b2136f1a09f0
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
6 years agoFix deb packaging pkgconfig dependency
Ronan Le Martret [Mon, 28 Aug 2017 13:52:06 +0000 (15:52 +0200)]
Fix deb packaging pkgconfig dependency

 * dpkg must be use to find the package whose provides
   the .pc file

Change-Id: I475559264c5dd1116e773a6842889cfd230917a0
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
6 years agoFix: output msg if build fail on remote populate
Romain Forlot [Sat, 26 Aug 2017 13:10:01 +0000 (15:10 +0200)]
Fix: output msg if build fail on remote populate

Change-Id: Id0ee4805854181dab1885af42f9c9f4603ad796f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoadd_input_target targets built by default
Romain Forlot [Fri, 25 Aug 2017 08:06:44 +0000 (10:06 +0200)]
add_input_target targets built by default

Adding to 'all' target

Change-Id: I3b4696ced961a5ccc6a35cbb1ab64cbd489af45b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate doc and README with latest modifications
Romain Forlot [Fri, 25 Aug 2017 00:26:42 +0000 (02:26 +0200)]
Update doc and README with latest modifications

Change-Id: I7b42fe371b6912de9df42a76781a8886dd804b3d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoGeneric default CLOSING_MESSAGE in sample config
Romain Forlot [Fri, 25 Aug 2017 00:04:13 +0000 (02:04 +0200)]
Generic default CLOSING_MESSAGE in sample config

Change-Id: I6886b4d7844e208f3f996418d9658567e8d8f135
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoIndent
Romain Forlot [Fri, 25 Aug 2017 00:02:56 +0000 (02:02 +0200)]
Indent

Change-Id: Ie333025c5f68c5121a4445308858441e60b17696
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoComment apparently uneeded section.
Romain Forlot [Fri, 25 Aug 2017 00:02:40 +0000 (02:02 +0200)]
Comment apparently uneeded section.

Let's see if used.

Change-Id: Iaa5cf37f0a7964e797cdc99c9d7bdbb93f8b54e4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoChange luac option to do only syntax checking
Romain Forlot [Thu, 24 Aug 2017 17:04:35 +0000 (19:04 +0200)]
Change luac option to do only syntax checking

Change-Id: I20769279e08927d0a9d8bfbbc2691719e7a5475a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: use of filter in Cmake 3.5
Romain Forlot [Thu, 24 Aug 2017 17:04:22 +0000 (19:04 +0200)]
Fix: use of filter in Cmake 3.5

Need using a variable for regex...

Change-Id: Ie5b050a3588dec10d0cc4365aa7272a90f10eb30
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: mistaped
Romain Forlot [Thu, 24 Aug 2017 16:34:08 +0000 (18:34 +0200)]
Fix: mistaped

Change-Id: I6252ed2ed8defaba8d848ce0d500a8a83be4cd90
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: luac invokation failed.
Romain Forlot [Thu, 24 Aug 2017 16:14:48 +0000 (18:14 +0200)]
Fix: luac invokation failed.

Wrong way to use command argument in cmake variable

Change-Id: I9a334a509d109d9243c7e8211a686757821fcb30
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoWorkaround to bugged list filter backport function
Romain Forlot [Thu, 24 Aug 2017 16:05:10 +0000 (18:05 +0200)]
Workaround to bugged list filter backport function

Change-Id: I520bcb09add89567083f0c06bde92dae08206c50
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: wrong variable detection
Romain Forlot [Wed, 23 Aug 2017 15:18:40 +0000 (17:18 +0200)]
Fix: wrong variable detection

Change-Id: Idc736c60f51e20640476202996121eefef8b8210
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoOS detection to fallback instead of addition
Romain Forlot [Wed, 23 Aug 2017 15:14:45 +0000 (17:14 +0200)]
OS detection to fallback instead of addition

Instead of include a default cmake file in addition of the
others, use it as fallback if any other cmake file doesn't
match

Change-Id: Ib46e0e64a5f485dcad4e41f092936484da83b7f4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoEnhances OS detection with Yocto and SDK
Romain Forlot [Wed, 23 Aug 2017 14:44:00 +0000 (16:44 +0200)]
Enhances OS detection with Yocto and SDK

Change-Id: I27f70c3ef9f16d918353e00c0535351bd738df82
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFormat: Remove spaces at EOL
Romain Forlot [Wed, 23 Aug 2017 08:55:56 +0000 (10:55 +0200)]
Format: Remove spaces at EOL

Change-Id: If16b9cd45e5955b8ca8049fee1ea97a9d43d5cb7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoBetter OS detection.
Romain Forlot [Tue, 22 Aug 2017 10:10:56 +0000 (12:10 +0200)]
Better OS detection.

Only take ID_LIKE field if it exists else ID. Doing some
stripping also to get a cleaner output variable

Change-Id: If5c44bf21c3435bd4739cfd34190a81d28dd10d3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFormat, improve config.cmake.sample file
Romain Forlot [Tue, 22 Aug 2017 08:15:43 +0000 (10:15 +0200)]
Format, improve config.cmake.sample file

Change-Id: I6683ac65ea12d697b29adf6d7af1d6939102867d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdd macros to make a 2nd pass on required module
Romain Forlot [Mon, 21 Aug 2017 20:33:03 +0000 (22:33 +0200)]
Add macros to make a 2nd pass on required module

Useful when adding module dependant of distro as they do not
named their packages the same way...

Change-Id: I0422ce4cdad48f9e815d24510376ad11941d5e3d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoBetter OS detection and inclusion per distribution
Romain Forlot [Fri, 18 Aug 2017 18:22:06 +0000 (20:22 +0200)]
Better OS detection and inclusion per distribution

Change-Id: I6f479353df990eb2ff9030b7427d48bb72f0416f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDon't output compiled lua file when checked.
Romain Forlot [Mon, 21 Aug 2017 13:12:59 +0000 (15:12 +0200)]
Don't output compiled lua file when checked.

Change-Id: I062bbb8c1342f189406ac1295baa5fb6e7c5eb1a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoInstall automatically managed for populate targets
Romain Forlot [Sun, 20 Aug 2017 15:02:03 +0000 (17:02 +0200)]
Install automatically managed for populate targets

All populated targets will install in CMAKE_INSTALL_PREFIX/PROJECT_NAME

Change-Id: I37df0c6dfde34a04e515e70b06f56929bd76c51a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: BINDINGV2 target not populated
Romain Forlot [Sun, 20 Aug 2017 14:52:00 +0000 (16:52 +0200)]
Fix: BINDINGV2 target not populated

Miss dependencies...

Change-Id: Ief8a5c764a6a36c042eebbd66b83f12e2f08b36a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoBetter handling icon&config.xml to build widget
Romain Forlot [Fri, 18 Aug 2017 15:20:09 +0000 (17:20 +0200)]
Better handling icon&config.xml to build widget

Default value set

Change-Id: Ie1370ff9e89bb80044fc847b4cf37ba19314ecc1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCleaning, format
Romain Forlot [Fri, 18 Aug 2017 14:44:08 +0000 (16:44 +0200)]
Cleaning, format

Change-Id: I0328f500867636bf13289bc2a9d7f8d5a9f7e060
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDuplicate variable meant to set installation dir
Romain Forlot [Fri, 18 Aug 2017 12:56:39 +0000 (14:56 +0200)]
Duplicate variable meant to set installation dir

Remove BINDING_INSTALL_PREFIX variable

Change-Id: Ia5be7f18a66b3667f03edb265caccc515e0490b2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMake CMake minimal version to at least v3.5
Romain Forlot [Fri, 18 Aug 2017 10:40:58 +0000 (12:40 +0200)]
Make CMake minimal version to at least v3.5

Backport list(filter cmake subcommand as macro

Change-Id: I7736e18ee2618e1977dd968636be84afc31bcc88
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoRemove JSON checker not suitable for schema check
Romain Forlot [Fri, 18 Aug 2017 08:31:05 +0000 (10:31 +0200)]
Remove JSON checker not suitable for schema check

Change-Id: Iba8dcd35290ab43ffc3aeaeb91cf40b6af1268b8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdded per project custom template dir
Romain Forlot [Thu, 17 Aug 2017 14:12:03 +0000 (16:12 +0200)]
Added per project custom template dir

Change-Id: I5175b45a0d493724492157af2d32f4e51a04665f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: missing dev pkg files error. Now well checked
Romain Forlot [Thu, 17 Aug 2017 12:58:13 +0000 (14:58 +0200)]
Fix: missing dev pkg files error. Now well checked

Change-Id: I2c429322990f5a4f0ba192c49502026f4b37dd1d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoPersonal files inclusion now by projects.
Romain Forlot [Wed, 16 Aug 2017 16:33:46 +0000 (18:33 +0200)]
Personal files inclusion now by projects.

Depending on file name you can include some files from your
home or system by project or globally

Change-Id: I1fef678073977633576a21893065e681b286646c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix new arbo
Romain Forlot [Wed, 16 Aug 2017 16:40:18 +0000 (18:40 +0200)]
Fix new arbo

Wrong path to the scripts

Change-Id: I0cc0cf9aaa374b5e130008c65f590cee458a7f39
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoReorganization between variables/build options
Romain Forlot [Wed, 16 Aug 2017 07:38:39 +0000 (09:38 +0200)]
Reorganization between variables/build options

Move compilation/link option to build options and all custom
variables stuff in variable file. Make build options as first
file to be included then all custom stuff.

Change-Id: I530268574745edcc414e29cac59eb542954d73cc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>