OSDN Git Service

doc: use Doxyfile template
[android-x86/hardware-intel-common-libva.git] / pkgconfig / meson.build
1 pkgconf = configuration_data()
2
3 pkgconf.set('prefix', get_option('prefix'))
4 pkgconf.set('exec_prefix', '${prefix}')
5 pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
6 pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
7 pkgconf.set('LIBVA_VERSION', libva_version)
8 pkgconf.set('VA_API_VERSION', va_api_version)
9 pkgconf.set('LIBVA_DRIVERS_PATH', driverdir)
10
11 pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
12
13 pkg_files = [ 'libva' ]
14
15 if WITH_DRM
16   pkg_files += [ 'libva-drm' ]
17 endif
18
19 if WITH_X11
20   pkg_files += [ 'libva-x11' ]
21 endif
22
23 if WITH_GLX
24   pkg_files += [ 'libva-glx' ]
25 endif
26
27 if WITH_WAYLAND
28   pkg_files += [ 'libva-wayland' ]
29 endif
30
31 foreach p : pkg_files
32   infile = p + '.pc.in'
33   outfile = p + '.pc'
34   configure_file(
35     input : infile,
36     output : outfile,
37     configuration : pkgconf,
38     install_dir : pkg_install_dir)
39 endforeach