Replies: 1 comment
-
Hey ! I was wondering how to make it work with Meson like you, and I tried to make a configuration file that seem to work. Just note that there is an issue for now and I think it may be best to create a fully-fledged Simple configuration filesHere is what you should add to your cmake = import('cmake')
poco_proj = cmake.subproject('poco')
poco_dep_foundation = poco_proj.dependency(['Foundation'])
poco_dep_util = poco_proj.dependency(['Util'])
# add to your executable 'dependencies: [poco_dep_foundation, poco_dep_util]' afterwards Then to your [wrap-file]
directory = poco-poco-1.14.1-release
source_url = https://github.com/pocoproject/poco/archive/refs/tags/poco-1.14.1-release.tar.gz
source_filename = poco-1.14.1-release.tar.gz
source_hash = e711712d68d01e580be315e1cca21d2d10ce941fc3252c0402c0a5732f719445
method = cmake
wrapdb_version = 1.14.1 Here it is for the version 1.14.1, but it can work with other versions as well, just make sure to update the source hash What are the issues for now ?Library nameIt seem to work well on Linux because the bindings are done on the go to the shared/static library. However, it seems that the name generated from Meson is not the correct one. I get set_target_properties(Foundation
PROPERTIES
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION}
OUTPUT_NAME PocoFoundation
DEFINE_SYMBOL Foundation_EXPORTS
) One workaround would be to create a fork and to modify explicitly these lines. However this cannot be a definitive solution as you guessed. Generating
|
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I'd like to use Poco with Meson
Describe the solution you'd like
It would be cool if Meson support was added. CMake can't see Meson wrap-based dependencies at the moment.
Describe alternatives you've considered
I'm uncertain what alternatives there are. If one just uses the basic edition you lose out on TLS/SSL support and things like that on from what I can tell pretty much any platform.
Additional context
I'm hoping to migrate a project away from scons to Meson, hence this request.
Beta Was this translation helpful? Give feedback.
All reactions