summaryrefslogtreecommitdiffstats
path: root/test cases/unit/27 pkgconfig usage/dependency/meson.build
blob: ee0f1dadb35f059763c13a72dd8ac43b2b2b4935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
project('pkgconfig dep', 'c',
  version : '1.0.0')

# This is not used in the code, only to check that it does not
# leak out to --libs.
glib_dep = dependency('glib-2.0')

pkgconfig = import('pkgconfig')

intlib = static_library('libpkgdep-int', 'privatelib.c')
intdep = declare_dependency(link_with : intlib)

lib = shared_library('pkgdep', 'pkgdep.c',
  dependencies : [glib_dep, intdep],
  install : true)

install_headers('pkgdep.h')

pkgconfig.generate(
  filebase : 'libpkgdep',
  name : 'Libpkgdep',
  description : 'Sample pkgconfig dependency library',
  version : meson.project_version(),
  libraries : lib)