Expressing a dependency for a custom_target #13320
-
Hi, On some machines with many cores, it seems that the GUI build will sometimes start before the library is finished building, causing a build error. Using a -j argument to ninja with a lower value will fix the error. It seems that a custom_target does not have a dependencies attribute. How can I tell meson that the target depends on the library build ? Refs to the meson.build files if this is useful: Main: https://framagit.org/medoc92/recoll/-/blob/master/src/meson.build?ref_type=heads GUI: https://framagit.org/medoc92/recoll/-/blob/master/src/qtgui/meson.build?ref_type=heads |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot ! I had tried with 'dependencies', which did not work, and did not go all the way to the reference manual. I do feel stupid... |
Beta Was this translation helpful? Give feedback.
-
As a matter of curiosity -- is there any specific issue preventing from building the GUI using meson's builtin Qt support? |
Beta Was this translation helpful? Give feedback.
-
The motivation for the switch to meson was to replace the autotools which were used to build the library and the command line utilities. The GUI is built with qmake/make on all platforms (Linux/Windows/MacOS), and not touching this allowed reaching the main goal faster. Maybe the GUI build will also switch in the future, but the good integration of qcreator/qmake with both Qt and the different platform tools and compilers makes it difficult to beat for simplicity. |
Beta Was this translation helpful? Give feedback.
-
@jeandet Thanks a lot for this information. Not changing the GUI build satisfied the requirement to ditch the autotools and was the minimum effort. I'll have a look at using meson for everything when I get a little more time. |
Beta Was this translation helpful? Give feedback.
Of course you can: