summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-06-11CMake project arch: Fixed title to match nav panelScott Rifenbark1-1/+1
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Change-Id: I28d9cdf7ed173d71e19d37ae200652b2e83af240
2019-06-11CMake Configuring: Updated topic title.Scott Rifenbark1-1/+1
Amended to change the title to "Configuring AGL CMake Templates" based on review comments. Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Change-Id: I809e83b51829852d4cd2d76494489b5e2d6b89ef Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
2019-06-09CMake Overview: Added TOC links and edits.Scott Rifenbark1-1/+17
I put in a linkable topic list and made sure the topic titles matched what is in the book.yml file. Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Change-Id: I32893f8380ec1927513dd44bd8f1e0247a0c39bd
2019-06-09Book manual updates for CMake TemplatesScott Rifenbark1-3/+3
I made some string changes from "CMAKE" to "CMake" for consistency. Also, set the version from "guppy" to "master". Change-Id: I3ee142a4ec541e8776c5a31c396e1435ac4b5dea Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
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-05-14Fix cmake-apps-module document typo.Li Xiaoming1-3/+3
Bug-AGL: SPEC-2404 Change-Id: I981ebec1e7c36c282e5d3bf327bb5faedd46e877 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-04-12CMake: Complete re-write of the CMake topic.Scott Rifenbark1-1/+1
Change-Id: I97c3a450401b87b8419ff00615588c261e6afc25 Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> (cherry picked from commit 7061edf1849de1bb1730df92d23aa52a6793a609)
2019-04-08CMake Topic book: Updated for the new file names.Scott Rifenbark2-10/+12
Change-Id: Ic4883cead2c8fe19fbe3ec3ae5a6db005786561d Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
2019-04-04CMake Section: Complete re-write.Scott Rifenbark14-748/+609
Completely re-wrote the section. New file names that do not use the numbers also. Change-Id: I443feb41cf83d760a57179473439e89e7b71f9c5 Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
2019-03-26cmake-apps-module: New file names.Scott Rifenbark9-63/+360
Created some new file names based on some re-writing. Also, updated the devguides-book.yml file to reflect the state of things. Change-Id: I6a9a91fe9c2f271493404ab7d63b6d6a8faf586e Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
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-20docs: add yaml bookhalibut_7.90.0halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy/6.99.4guppy/6.99.37.90.06.99.46.99.3Frederic Marec1-0/+22
Bug-AGL: SPEC-1988 Change-Id: I1b0b2d4f0bef6bb14c17303200641578b8bd5687 Signed-off-by: Frederic Marec <frederic.marec@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-17Tiny fix about packaging for openSUSE distributionRomain Forlot1-2/+2
For some reasons Suse don't use the same doc directory and add a subdirectory package to the default path so rpmbuild expects files in /usr/share/doc/packages instead of /usr/share/doc... Change-Id: I927b81bb99294dde53eab4957daedc2f3d0d3ae8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-14Point to SDK sysroot files first instead of nativeRomain Forlot1-0/+10
Point to SDK sysroot files first instead of native installation directories. Bug-AGL: SPEC-1958 Change-Id: I54f4e3dac9951289b245911f82767dbe4c2dd30f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-14Install docs and sample files in a separate dirRomain Forlot7-13/+13
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-30Update installation abstract instructionsguppy_6.99.2guppy/6.99.26.99.2Romain Forlot1-9/+74
Make clearer the difference between build environments Yocto, cross compile with an AGL SDK and native. Change-Id: Id09782c8648026420fbfdbbbcf0fd1891edb7b86 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-30Revert "doc: Improve formatting"Romain Forlot1-7/+3
This reverts commit 60b0f4556fb94cbd6d9bac083f561067a437d98e. Change-Id: Id73104aa7466e6a16ec6a93842718017a2084584 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-29doc: Improve formattingJosé Bollo1-2/+6
Change-Id: Id252624a59fffe789b93e978ef60eec2fc659055 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-11-14Allow overwritting the installation directoryguppy_6.99.1guppy/6.99.16.99.1Jose Bollo1-3/+8
At your own risks of course Change-Id: I1b613b9801a8b031f42321367148ae469f337af2 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-11-13Fix crosscompile installationsandbox/claneys/moduleRomain Forlot1-2/+4
Using CMAKE_ROOT doesn't point to the correct path when using a cross-compilation environment since the cmake installation directory isn't located in the same sysroot than the targeted system. Change-Id: If3f877c579123c5dd0b23a762c08d97755817442 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-12Explain why add_subdirectory raise errorJosé Bollo1-0/+11
Change-Id: Id304c589ebe4f1e944377047ca3d462dce80dd7d 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-12doc: Fix sample of SET_TARGET_PROPERTIESJosé Bollo1-1/+1
Change-Id: Iec703099717e7b9e876db0e8c1ba9c450049d404 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-07Update docsRomain Forlot6-743/+166
Since migration to CMake module, the doc needs to be be updated to reflect the change and get rid of all git submodule occurrences. Change-Id: If56c50a845d01dafd6b5dcd46cac7cfb2be76e85 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 Forlot40-3/+95
Change-Id: I70d30588c59e6a0d3c451c74fc6cc565b5eea167 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-06Merge "Fix: missing files in test widget"Stéphane Desneux1-1/+3
2018-11-06Upgrade the autobuild scriptRomain Forlot3-28/+44
This update the autobuild script generated by the CMakeAfbTemplates module making clearer build dir variable and change the way to build using the classic way with cmake .. ; make etc. Remove also an intermediate target that wasn't needed. Change the directory where the autobuild script is generated. Added a README instruction about the autobuild script coming from the SPEC-495 description Change-Id: I24905b348adbdba2dca5ffa146812461a4030690 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-02Fix: missing files in test widgetRomain Forlot1-1/+3
Adds the config.xml file and the test launcher script in the widget when built using the test_widget target. Without config.xml file the widget can't be installed. Change-Id: Iaedfcef49ae0d6748e55f6fa5e07d373124ed078 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-02Install the module in the system cmake pathRomain Forlot1-9/+3
Change-Id: Ib9a826842d9ce88e27eb564fd9fee9725c161ed2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-30Select the test set to runRomain Forlot1-7/+26
The widget launcher script has been modified to use the environment variable VERBSELECTED and VERBARGS. Then you are able to select a test set defined by the testVerb configuration section in your JSON configuration file. You can also use the special argument {'lavaOutput': true} to enable specials Lava markers on the output. Change-Id: If677cbbc8cb6cf6eb1bdf9f76b83f5e7976dd5a5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23Fix: mismatch between built and expected lib nameRomain Forlot1-1/+2
The module expect that a library built without specifying any prefix to the target will then have no prefix but cmake set it to "lib" by default. So we need to adjust the expected lib file name expected in the module. Change-Id: I6feaa6c5ff9efd9a06ac90a515e6e454b6d90421 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23Improving readabilityRomain Forlot4-100/+191
Change-Id: I2f14f0304a5f40ddb146d779bc5c3aad94d872b6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23Add another mode to build a test widgetRomain Forlot1-6/+2
By default, the test widget is built using a cmake option, this commit adds the ability to use makefile target to build it. Change-Id: I2691c7e4549190bd7594387eacf6cb8344ecf9c1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23cmake: coverage: disable compiler optimization for COVERAGE buildMatt Ranostay1-1/+1
Switch to -O0 compile option to allow more accurate coverage reports that function inlining and OOO execution can skew. Bug-AGL: SPEC-1807 Change-Id: If3ea7e9fe931ac9087d4c4966d0b3ca77308eaf7 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-23Improved test widget launcher scriptRomain Forlot1-17/+7
Improved test widget launcher script which calls verb synchronously and therefore we can correctly detect the end of the test session and exit. Change-Id: I66e404cfe1a25f1986bc722572efa93979d43bc2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23set default link flags to the target propertyRomain Forlot1-0/+9
set default link flags to the target property for binding target. Change-Id: I12387d310abd993a5a3861f04c7bc0cef941d2b7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23Use a custom test-config.xml file for test widgetRomain Forlot3-6/+12
Change-Id: I2c71f5cd1bbfa6d6e2d2c48aaf004b24811dbee1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23Convert app-templates to a cmake moduleRomain Forlot10-72/+105
- Changes PATH to find correctly all cmake files. - Clean useless code now it's integrated as CMake module - Clean variable usage - Create module entry point Bugs-AGL: SPEC-1682 Change-Id: I6943129677603b786c7144a92880d82795a916cd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>