Discussion:
KDevelop starter questions regarding Build and Source Control
Yinon Ehrlich
2017-05-28 12:14:03 UTC
Permalink
Hi,

Started to evaluate KDevelop (mainly Linux & C++), basically the
parser seems promising.
Yet, didn't find answers to the following questions regarding KDevelop
5.1, could you please shed some light (or refer to updated manual or
other resource) ?
1. Created JSON compilation DB file (compile_commands.json), but where
KDevelop should be configured to use it for the project ?
2. Is there a way to provide several JSON compilation commands - one
per each platform/mode ?
3. How support in another source-control might be introduced (is
there any template/plugins framework) ?
4. Does KDevelop has a mechanism similar to QTCreator of wizards -
http://doc.qt.io/qtcreator/creator-project-wizards-json.html ?

Thanks in advance,
Yinon
Aleix Pol
2017-05-29 23:56:33 UTC
Permalink
Post by Yinon Ehrlich
Hi,
Started to evaluate KDevelop (mainly Linux & C++), basically the
parser seems promising.
Yet, didn't find answers to the following questions regarding KDevelop
5.1, could you please shed some light (or refer to updated manual or
other resource) ?
1. Created JSON compilation DB file (compile_commands.json), but where
KDevelop should be configured to use it for the project ?
This is not supported at the moment. CMake support has a mode that
uses these files, but only cmake. If you want to use this on another
kind of project it will have to be added (which wouldn't be hard, but
still some work).
Post by Yinon Ehrlich
2. Is there a way to provide several JSON compilation commands - one
per each platform/mode ?
I guess you mean being able to switch between compile_commands.json
files. What we'd have now in cmake is each of them in a different
build directory. Build directories in cmake change when the platform
changes.
Post by Yinon Ehrlich
3. How support in another source-control might be introduced (is
there any template/plugins framework) ?
There's not a lot of documentation. I recommend you take a look at the
git plugin code in kdevplatform/plugins/git/.
Post by Yinon Ehrlich
4. Does KDevelop has a mechanism similar to QTCreator of wizards -
http://doc.qt.io/qtcreator/creator-project-wizards-json.html ?
We have templates. There are 2 kinds: file and project templates. I'm
pretty sure they're kind of a similar concept.

You can take a look at them in kdevelop/file_templates and
kdevelop/project_templates.

HTH,
Aleix

Loading...