Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify meson.build #206

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Simplify meson.build #206

merged 1 commit into from
Jun 30, 2023

Conversation

uni-dos
Copy link
Contributor

@uni-dos uni-dos commented Jun 26, 2023

This pull request makes the meson.build more compact. If a user would like a static library they will pass -Ddefault_library=static to build one instead of making both a static and shared lib.

@kgabis kgabis merged commit fd02ea0 into kgabis:master Jun 30, 2023
1 check passed
Comment on lines -17 to 19
parson_shared_lib = shared_library(
meson.project_name(),
sources: parson_sources,
soversion: lib_so_version,
install: true
)

parson_static_lib = static_library(
parson_lib = library(
meson.project_name(),
sources: parson_sources,
install: true
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

library(), like shared_library(), accepts the soversion argument -- it is used only when building the shared component. Was this intentionally dropped?

Aside: just noticed in commit da126c2 the project version was added as the library soversion.

But in #179 (comment) it was predicted that there shouldn't really be breaking ABI changes between versions... and the soversion was set to "0" here.

Which one is it? (The cmake one seems wrong to me, since it says the ABI is broken every time PARSON_VERSION is updated.)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, SOVERSION in cmake doesn't seem to make sense but at this point I don't know if removing it might break something.

I don't use or know meson and cmake so I'm open to PRs fixing those issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants