mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
meson: Install cmake files
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
a054e088a3
commit
538229633f
1 changed files with 37 additions and 0 deletions
37
meson.build
37
meson.build
|
|
@ -445,6 +445,13 @@ if webrtc_dep.found()
|
||||||
cdata.set('HAVE_WEBRTC', 1)
|
cdata.set('HAVE_WEBRTC', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# These are required for the CMake file generation
|
||||||
|
cdata.set('PA_LIBDIR', libdir)
|
||||||
|
cdata.set('PA_INCDIR', includedir)
|
||||||
|
if glib_dep.found()
|
||||||
|
cdata.set('HAVE_GLIB20', 1) # to match the AM_CONDITIONAL for CMake file generation
|
||||||
|
endif
|
||||||
|
|
||||||
# Test dependencies
|
# Test dependencies
|
||||||
|
|
||||||
check_dep = dependency('check', version : '>= 0.9.10', required : get_option('tests'))
|
check_dep = dependency('check', version : '>= 0.9.10', required : get_option('tests'))
|
||||||
|
|
@ -486,6 +493,36 @@ foreach file : pc_files
|
||||||
install_dir : pkgconfigdir)
|
install_dir : pkgconfigdir)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
# CMake files
|
||||||
|
|
||||||
|
m4 = find_program('m4', required: true)
|
||||||
|
|
||||||
|
cmakedir = join_paths(libdir, 'cmake', 'PulseAudio')
|
||||||
|
|
||||||
|
cmake_template_file = configure_file(
|
||||||
|
input : 'PulseAudioConfig.cmake.in',
|
||||||
|
output : 'PulseAudioConfig.cmake.tmp',
|
||||||
|
configuration: cdata,
|
||||||
|
)
|
||||||
|
|
||||||
|
custom_target('PulseAudioConfig.cmake',
|
||||||
|
input : cmake_template_file,
|
||||||
|
output : 'PulseAudioConfig.cmake',
|
||||||
|
capture : true,
|
||||||
|
command : [m4, '@INPUT@'],
|
||||||
|
build_by_default : true,
|
||||||
|
install : true,
|
||||||
|
install_dir : cmakedir,
|
||||||
|
)
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
input : 'PulseAudioConfigVersion.cmake.in',
|
||||||
|
output : 'PulseAudioConfigVersion.cmake',
|
||||||
|
configuration: cdata,
|
||||||
|
install : true,
|
||||||
|
install_dir : cmakedir,
|
||||||
|
)
|
||||||
|
|
||||||
# Subdirs
|
# Subdirs
|
||||||
|
|
||||||
subdir('po')
|
subdir('po')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue