summaryrefslogtreecommitdiffstats
path: root/src/cmake/cmake.d/03-macros.cmake
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 Murray1-0/+18
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-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
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-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>
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-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-06Adding packaging filesRomain Forlot1-0/+695
Change-Id: I70d30588c59e6a0d3c451c74fc6cc565b5eea167 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>