Bug 7635 - recipetool: extend cmake recipe creation
Summary: recipetool: extend cmake recipe creation
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.8
Hardware: All Multiple
: Medium enhancement
Target Milestone: 2.1
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-21 09:07 UTC by Paul Eggleton
Modified: 2016-01-19 17:43 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2015-04-21 09:07:46 UTC
recipetool has the ability to create recipes for software that uses cmake. However there isn't currently any support for extracting dependencies from CMakeLists.txt; there may be other things we can pick up as well. Someone with a better understanding of cmake needs to extend it; we may need to properly parse the files instead of the keyword searching we are doing now. KDE's cmake-dependencies.py may possibly be of interest:
http://quickgit.kde.org/?p=kde-dev-scripts.git&a=tree

The implementation for this is in scripts/lib/recipetool/create_buildsys.py.
Comment 1 Paul Eggleton 2016-01-19 17:43:32 UTC
We now have a basic implementation in master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=726dbda396a49de0fa710e64218457915715a5d2
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2c8c9fe3b4e2d3a0910d567e99f0b268a854c0fe

I think we should go ahead and mark this one as fixed; any issues that aren't outright breakage can be dealt with through separate bugs.