summaryrefslogtreecommitdiffstats
path: root/test cases/failing/123 pkgconfig not relocatable outside prefix/meson.build
blob: 7ebdfc3fe9b0af53f48225e1925e54be62cf9299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
project(
  'pkgconfig-not-relocatable-outside-prefix',
  version : '1.0',
  default_options: [
    'pkgconfig.relocatable=true',
  ])

pkgg = import('pkgconfig')

# A drive letter is needed on windows for this to be an absolute path.
if host_machine.system() == 'windows'
  install_dir = 'C:/opt/lib/pkgconfig'
else
  install_dir = '/opt/lib/pkgconfig'
endif

pkgg.generate(
  name : 'libsimple',
  version : '1.0',
  description : 'A simple pkgconfig file.',
  install_dir: install_dir,
)