Commit 55aca4d2 authored by Niklas Haas's avatar Niklas Haas

meson.build: improve pkgconfig usage

Instead of manually generating the string, we can just pass the
shared_library object here and it will automatically generate the right
-L and -l flags.
parent ec6e5260
...@@ -57,7 +57,7 @@ sources = [ ...@@ -57,7 +57,7 @@ sources = [
'ta/talloc.c', 'ta/talloc.c',
] ]
shared_library('placebo', sources, lib = shared_library('placebo', sources,
install: true, install: true,
dependencies: deps, dependencies: deps,
soversion: apiver, soversion: apiver,
...@@ -78,6 +78,6 @@ pkg = import('pkgconfig') ...@@ -78,6 +78,6 @@ pkg = import('pkgconfig')
pkg.generate( pkg.generate(
name: meson.project_name(), name: meson.project_name(),
description: 'Reusable library for GPU-accelerated video/image rendering', description: 'Reusable library for GPU-accelerated video/image rendering',
libraries: '-lplacebo', libraries: lib,
version: version, version: version,
) )
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