Re: KDevelop starter questions regarding Build and Source Control

Aleix Pol <[email protected]>
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <CACcA1RqR-5wpakBubFRuWwair1E8M+eKT4Zy43xyKbKSWF5D7w@mail.gmail.com>
On Sun, May 28, 2017 at 2:14 PM, Yinon Ehrlich <[email protected]> wrote:
> 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).

> 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.

> 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/.

> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.