Conan: What's the best way to support Meson?

Created on 17 Aug 2017  路  3Comments  路  Source: conan-io/conan

Hi there, awesome project! Really glad to finally have a working package manager for C++!

I was wondering about what would be the best way to support the Meson build system, and the maintainer mentioned in this issue that generating a pkg-config file would the best way to go (and would also support other build systems).

Since Meson doesn't let you include files like CMake with the conanbuildinfo.cmake, I think this is the only way to make it work.

What do you think about it?

question

Most helpful comment

Meson is supported since 0.28

All 3 comments

Thanks very much!

I think in Meson you can import files, like:

tmod = import('testmod')
tmod.do_something()

So it seems a conan generator for Meson could generate a file like "conanbuildinfo.meson" with include_directories and other commands, that is callable from the main script.

Conan doesn't use pkg-config for dependencies, as there are some build systems, like Msft VS (MSbuild) that won't manage them. But I think a Meson generator in conan shouldn't be difficult and work great.

Meson is supported since 0.28

Was this page helpful?
0 / 5 - 0 ratings