build: add sysprof-capture-2 pkgconfig file

This commit is contained in:
Christian Hergert
2018-01-20 01:43:22 -08:00
parent 469d54df5b
commit 51fadf1a5e
2 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,13 @@ configure_file(
install: true,
install_dir: pkgconfigdir,
)
configure_file(
input: 'sysprof-capture.pc.in',
output: 'sysprof-capture-@0@.pc'.format(libsysprof_api_version),
configuration: pkgconf,
install: true,
install_dir: pkgconfigdir,
)
if get_option('enable_gtk')
configure_file(
input: 'sysprof-ui.pc.in',

View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
Name: libsysprof-capture-@API_VERSION@
Description: The sysprof profiler library for reading and writing capture files
Version: @VERSION@
Libs: -L${libdir} -lsysprof-capture-@API_VERSION@
Cflags: -I${includedir}/sysprof-@API_VERSION@
Requires: gobject-2.0