summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-09-18Add source and coverage information to widgetsneedlefish_13.93.0needlefish/13.93.0marlin_12.93.0marlin_12.92.0marlin_12.91.0marlin_12.90.1marlin_12.90.0marlin/12.93.0marlin/12.92.0marlin/12.91.0marlin/12.90.1marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.0koi_10.93.0koi_10.92.0koi_10.91.0koi/10.93.0koi/10.92.0koi/10.91.013.93.012.93.012.92.012.91.012.90.112.90.011.92.011.91.010.93.010.92.010.91.0Scott Murray3-0/+40
Add source and coverage information installation to debug and coverage widgets. The source tree will be installed to "src" in debug and coverage widgets, with some non-source directories like doc/docs excluded. The gcc produced "gcno" files for generating coverage reports will be installed to "coverage" in coverage widgets. A different directory than that for source is used, as the gcno files are in the build output hierarchy, which is not the same as the source tree hierarchy when using CMake. This hierarchy needs to be preserved to be able to use gcc's coverage support. As part of this scheme, an environment file containing values for the GCOV_PREFIX and GCOV_PREFIX_STRIP variables is generated and added to "coverage". The latter variable can only be calculated during widget build, and is essential for abstracting the build directory location and enabling gcov usage on target. Bug-AGL: SPEC-3589 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I258fff0295444bb257d24d442798347728ee7875
2020-07-12Remove kill of test binding from launcher scriptjellyfish_9.99.4jellyfish_9.99.3jellyfish_9.99.2jellyfish/9.99.4jellyfish/9.99.3jellyfish/9.99.29.99.49.99.39.99.2Scott Murray1-7/+0
At some point the synchronous running of the test verbs seems to have stopped working, and it's going to take further digging into afb-client-demo, afb-test, and maybe app-framework-binder to work out what current expected behavior should be and what, if any, fix is required. For now, remove the explicit kill of the test binding that is being done by the launcher script, so that the wait loop in afm-test will let all of the tests run. There is also a "afm-util kill" call in afm-test, but its wait loop may need the addition of a timeout option to improve robustness with respect to tests potentially hanging. Some unused variables and FIFOs from an older wait scheme based on test output have also been removed from the launcher script to avoid confusion. Bug-AGL: SPEC-3466 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I8f9fcd7dfef2c983a9d46a2f190432c07cdd5db3
2020-06-09Update autobuild script templatesjellyfish_9.99.1jellyfish/9.99.19.99.1Scott Murray2-204/+154
Update autobuild.in files with reworked version with the following changes: - Fixes for building outside of the source tree by over-riding BUILD_DIR* (done by use of new ROOT_DIR variable). - Rules simplified by use of static pattern rules and target specific variables. - package-test rule no longer builds the full widget, only the test widget. This is a behavior change, but seems more in line with developer expectations and avoids wasting time during builds from AGL. - package-{coverage,debug}-test rules removed for lack of utility. - Variable usage switched to parentheses instead of braces to match typical usage in Makefiles in other FOSS projects. The autobuild documentation has also been updated to include the previously added targets and BUILD_DIR* variables, and the description of package-test has been updated for the behavior change mentioned above. Bug-AGL: SPEC-2049, SPEC-3300 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ifaf0d59b9ee26bde6d27b8968e68f5dc84df548c
2020-06-05Fix generated install targetScott Murray1-0/+10
Fix the generated install target to use the permissions of the source files to keep the executable permission on libraries and executables, and to add installation of the test widget, which was missing. Bug-AGL: SPEC-3381 Change-Id: Ia32cf6472e4576042721ab933531eec8eb7ff316 Signed-off-by: Clément Bénier <clement.benier@iot.bzh> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2020-05-15Revert "project_targets_populate: source_permissions, test"Jan-Simon Moeller1-10/+0
This reverts commit cab6a70b1f394099966ac60007830219ee631b9a. Change-Id: I9f7799dd2441b0153b03ced907dd3bdb82952b34
2020-05-15project_targets_populate: source_permissions, testClément Bénier1-0/+10
- install package test - use source permissions (exec flags kept) Change-Id: Ie66e4f84e30c7917b06a32ed6afc966ad8be2a75 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2020-02-25Create directories in separate commandsJosé Bollo1-31/+56
This change create separate target for creation separate directories. This fix an obscure error reported by CMAKE: "Deleting primary custom command output ..." This error appered since recent changes related to SPEC-2049. Bug-AGL: SPEC-3207 Bug-AGL: SPEC-2049 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Change-Id: Ie531fd203cd054a24e9f5374727bc403341d832d
2020-02-17Change autobuild targets to avoid files removeFrederic Marec2-130/+115
Change targets in autobuild scripts to dispatch builds in differents build directory Avoid remove of Makefile and CMakeCache from each target Bug-AGL: SPEC-2049 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I08033b3409e308799010c5925be0ae1b455500ed
2020-01-27build-options: add SANITIZERS build typeMatt Ranostay1-0/+12
Add SANITIZERS build type for using AddressSanitizers to find various memory corruptions within applications. Bug-AGL: SPEC-3040 Change-Id: If430177cbac452c09d710a885cbe802419f13e6b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2020-01-13autobuild: fix generating all widget targeticefish_8.99.5icefish/8.99.58.99.5Romain Forlot2-18/+40
This lets to build all widget type once for all. Bug-AGL: SPEC-2049 Change-Id: I6640cf2a6e45f3cbbc3983ff7aca0abe6303f8f7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2020-01-13variable: Fix trailing - in widget versionRomain Forlot1-6/+9
Bug-AGL: SPEC-3102 Change-Id: I959230282e22824f0bd3eb335f4511645a33f3bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-11-25Update autobuild script to create new targetsicefish_8.99.4icefish_8.99.3icefish_8.99.2icefish/8.99.4icefish/8.99.3icefish/8.99.28.99.48.99.38.99.2Frederic Marec2-2/+143
Update autobuild script to create multiple widget target debug, coverage and all Bug-AGL: SPEC-2049 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I54dc7a7156e51ff0ea58f8d534f37092c3f19bc2
2019-10-30build_options: Avoid warning at configuration timeRomain Forlot1-1/+1
New version of CMake use that variable as string and not boolean. Use of it only needs to set it to something to let pkg-config search its packages in CMAKE_PREFIX_PATH, CMAKE_FRAMEWORK_PATH, and CMAKE_APPBUNDLE_PATH Bugs-AGL: SPEC-2929 Change-Id: I085aa04fa53bfa2ce69387b6a1547c74047c7e57 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-10-01Improves widget generationJose Bollo1-49/+79
Use intermediate list of variables to handle dependencies of custom targets. This change also prepares further integration of signature of widgets. Bug-AGL: SPEC-2840 Change-Id: Iacaa6fb235d91b79ee67bc0b24494de2878590f2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-01Print warnings in yellow not redJosé Bollo1-2/+2
Having a message written in red for warnings is confusing when searching for an error in red. Bug-AGL: SPEC-2843 Change-Id: Ic501b37a785acb60e6d3dfc83b0500a85b100dec Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-09-13Revert "Add option to make source files relative"José Bollo1-1/+0
This reverts commit b4828cad913e6218afc2647b80464aff3c7ed170. Revert looks good because the issue has to be adressed by the build environment. Bug-AGL: SPEC-2801 Change-Id: I8b469ce1c42e3d1fbf00128ddfd365cfff3a1f7c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-09-10Add option to make source files relativeJosé Bollo1-0/+1
It is intended to enhance reproducibility of produced binaries as unmeaning prefixes are removed. Bug-AGL: SPEC-2801 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Change-Id: Idcebe383d938a85c594482abd3ef65015fdd4b22
2019-09-06fix(4-extra_targets.cmake): fix filename template in command & dependLi Xiaoming1-7/+7
Bug-AGL: SPEC-2805 Change-Id: I3aad4168c199e2936bdfeedc40f85533eb20f069 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-07-15Fix new target test-treeFrederic Marec1-10/+10
Add condition in cmake command to avoid complilation error Make test-tree target optional Bug-AGL: SPEC-2040 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I885011afda06aaddf226932c3c4bbd9bf78d67a2
2019-07-12Add automatic test tree creationFrederic Marec11-0/+362
Add test tree template Add test path variable Add test-tree target Bug-AGL: SPEC-2040 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I836d6e7653b600e92c7a0de065a41054ea06005e
2019-06-2702-variables.cmake: Fix wrong variable testedhalibut_7.99.3halibut_7.99.2halibut/7.99.3halibut/7.99.27.99.37.99.2Romain Forlot1-2/+2
Fix wrong variable tested setting the PROJECT_HOMEPAGE_URL Bug-AGL: SPEC-2549 Change-Id: I53448d4ddd4c6b148997e140c0f421ddd6dfe182 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-06-27Recurse path when using fallback zip toolRomain Forlot1-2/+2
Recurse path when using fallback zip tool instead of the application framework widget creator tool wgtpkg-pack. Bug-AGL: SPEC-2577 Change-Id: I2bf044fd921ab2debe7fcd6ed12446bffcb99941 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-06-0602-variables.cmake: project options for 3.12.4Frederic Marec1-1/+1
cmake variable VERSION_GREATER_EQUAL are available in cmake 3.7 opensuse 42.3 and ubuntu 16.04 use cmake 3.6 we need to use VERSION_GREATER variable for compatibility BUG-AGL: SPEC-2464 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I581713980c38a3cadcfebe10d2a9ba90b826fe34
2019-06-0402-variables.cmake: project options for 3.12.4Clément Bénier1-3/+7
both HOMEPAGE_URL and DESCRIPTION are only available in 3.12.4 BUG-AGL: SPEC-2464 Change-Id: I2fcf30c3f59464bb16e362f43ae032a7160638ac Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-05-2902-variables.cmake: warns - unset project optionshalibut_7.99.1halibut/7.99.17.99.1Clément Bénier1-1/+14
- add warnings when PROJECT_DESCRIPTION and HOMEPAGE_URL are unset BUG-AGL: SPEC-2464 Change-Id: I24bd6e2428a1c4a89561740a4fc4a55bb14a3a2a Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-05-2802-variables.cmake: fix project cmake-commandsClément Bénier1-1/+1
Set all options in the cmake-commands named project. Add HOMEPAGE_URL and DESCRIPTION options. BUG-AGL: SPEC-2464 Change-Id: I55c6ba7136df80f0f5679be2e9cbd0410afd3630 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-03-05autobuild: fix warnings due to cp command exit codeRomain Forlot2-4/+12
Change-Id: Ie4bae20e33e05b5b166bec3fc4fadcce72ce09d3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-17Avoid a target to link against itselfRomain Forlot1-2/+5
If you have specified in your project to link against a project internal library then the cmake templates should take care to avoid to link a target against itself. Bug-AGL: SPEC-1997 Change-Id: I6959247ab350474533fb8df1c1e912aa203f36b5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-17Add option to preserve links during copyJose Bollo1-5/+5
Links are probably expected when it exists. Change-Id: I9df5776e2e74b3d669da61ea8d978f1fc80df34b Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-12-14Install docs and sample files in a separate dirRomain Forlot4-378/+0
Separate the samples files to be installed in the system doc dir which is: - /usr/share/doc Updating the documentation according to the new path to samples. Change-Id: Ib1958fb87d517ad84abddf3ec71102f7ecf877f5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-11Link with defined project libraries dependenciesRomain Forlot1-19/+30
Link with defined project libraries dependencies by default. This will avoid the user to have to specify this again at target level, in addition of project level in the "config.cmake" file. Bug-AGL: SPEC-1997 Change-Id: Ib0933a8eb9259d27c095d18a0dbb5a269d6b0369 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-12Use target name as output name by defaultJosé Bollo1-0/+3
Change-Id: I32abe9f2ac5ea25e7902f9a1e870d16bb438d5b2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-11-12Fix indentationJosé Bollo1-1/+1
Change-Id: I843513718c49dcde49d2f727e5dd748c59f1f0ec Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-11-08Packaging: find version from command line argumentRomain Forlot1-2/+4
There is a lack in the way to find the project version when you package a project using cmake-apps-module because there isn't git repo included in the source archive then the git tag could not be retrieved. So this commit brings the possibility to set the version from the command line using the argument VERSION. Change-Id: Iba9902a2a1c61a348d719aaca85c26b3786d3620 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-08Fix: find the cmake project files.Romain Forlot1-2/+2
Change-Id: I1bce4a2dbc12ce6e196380c4e6b7d0b58530245f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-08Fix: version variable detection.Romain Forlot1-3/+3
Gives instructions in the error message. Change-Id: I56ff89932d8222116c091e25bfa5fc3b0489d5e8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-07Missing mandatory variable in the CMake sample fileRomain Forlot1-0/+4
Change-Id: I3d0f86fe04a79ca4c3523e1675672c0ce64f24f8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-06Reordering files inclusion by the moduleRomain Forlot1-4/+3
Process distro specifics cmake files before app-template To be sure that everything is set up before calling the app-templates mechanism that will search and process libraries dependencies etc. Change-Id: Icaca4cf4130e60d56d045e5a07e40163bb3c2bb5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-06Adding packaging filesRomain Forlot32-0/+2169
Change-Id: I70d30588c59e6a0d3c451c74fc6cc565b5eea167 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>