Bug 7635

Summary: recipetool: extend cmake recipe creation
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 1.8   
Target Milestone: 2.1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.