How to customize a meson with Qt creator

I usually use the Qt creator with cmake to program projects in C ++. I have read quite a lot about the meson recently, and it's simplicity, and I like to check it. This is an example of setting the meson.

When using the meson, however, I like to use the Qt shortcut keys to build ( ctrl + B) or launch ( ctrl + R). How to configure Qt-creator to create a meson project when I use a " shared project "?

+4
source share
2 answers

Meson is currently not directly supported by Qt Creator. There is an error message in the report: https://bugreports.qt.io/browse/QTCREATORBUG-18117 , and I am considering the possibility of its implementation.

I am currently using the meson through the "Common Project". Go to "New file or project", "Import project" and there, "Import an existing project." This gives you a dialog in which you can select the files that make up your project.

After that, you will need to edit "projectname.includes" and add include files (one per line). Then you need to edit "projectname.config" and add define (one per line) there.

Finally, you will need to edit the assembly configuration and call the ninja, and not do there.

.

+6

QtCreator meson.build, , python2 script QtCreator: https://github.com/mbitsnbites/meson2ide

PATH, : $ meson builddir $ python2 meson2ide.py builddir

.creator builddir ( "mesonintrospect" , PR: https://github.com/mbitsnbites/meson2ide/pull/1)

CTRL + B, QtCreator make ninja

3 > & 1 1 & 2 2 & 3

QtCreator "".

+1

Source: https://habr.com/ru/post/1676411/


All Articles