Commit 81e367fe authored by Niklas Haas's avatar Niklas Haas

meson.build: add pkg-config

Also add some versioning policy. Basically, the policy I've decided on:

1. majorver has abstract high-level semantics (e.g. major rewrite)
2. apiver controls the public API (=soname), updated any time the public
   API is extended or reduced
3. fixver is updated any time a fix is made without changing the API

Additionally:
- fixver resets on apiver changes
- apiver never resets
parent e5c25606
# Updated any time the API changes
apiver = 0
majorver = '0'
apiver = '0'
fixver = '0'
# Build options mostly taken from mpv
add_global_arguments([
......@@ -61,3 +62,11 @@ headers = [
]
install_headers(headers, subdir: 'libplacebo')
pkg = import('pkgconfig')
pkg.generate(
name: meson.project_name(),
description: 'Reusable library for GPU-accelerated video/image rendering',
libraries: '-lplacebo',
version: majorver + '.' + apiver + '.' + fixver,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment