Commit cfe4dca9 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan Committed by Tim-Philipp Müller

meson: Install headers for all libraries

Closes #7
parent aa5f782b
......@@ -6,6 +6,26 @@ libavcodec_version = libavcodec_majorver + '.' + minorver + '.' + microver
cc = meson.get_compiler('c')
libavcodec_headers = files(
'ac3_parser.h',
'adts_parser.h',
'avcodec.h',
'avdct.h',
'avfft.h',
'd3d11va.h',
'dirac.h',
'dv_profile.h',
'dxva2.h',
'jni.h',
'mediacodec.h',
'qsv.h',
'vaapi.h',
'vdpau.h',
'videotoolbox.h',
'vorbis_parser.h',
'xvmc.h',
)
libavcodec_sources = files(
'ac3_parser.c',
'adts_parser.c',
......@@ -1046,8 +1066,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libavcodec'),
install: true,
)
install_headers(libavcodec_headers, subdir: 'libavcodec')
configure_file(
input: 'libavcodec.v.in',
output: 'libavcodec.ver',
......
......@@ -6,6 +6,10 @@ libavdevice_version = libavdevice_majorver + '.' + minorver + '.' + microver
cc = meson.get_compiler('c')
libavdevice_headers = files(
'avdevice.h',
)
libavdevice_sources = files(
'alldevices.c',
'avdevice.c',
......@@ -73,8 +77,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libavdevice'),
install: true,
)
install_headers(libavdevice_headers, subdir: 'libavdevice')
configure_file(
input: 'libavdevice.v.in',
output: 'libavdevice.ver',
......
......@@ -6,16 +6,10 @@ libavfilter_version = libavfilter_majorver + '.' + minorver + '.' + microver
cc = meson.get_compiler('c')
# Version file
ver_conf = configuration_data()
ver_conf.set('majorver', libavfilter_majorver)
ver_conf.set('minorver', minorver)
ver_conf.set('microver', microver)
configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
libavfilter_headers = files(
'avfilter.h',
'buffersink.h',
'buffersrc.h',
)
libavfilter_sources = files(
......@@ -464,6 +458,22 @@ libavfilter_tests = [
libavfilter_optional_tests = {
}
# Version file
ver_conf = configuration_data()
ver_conf.set('majorver', libavfilter_majorver)
ver_conf.set('minorver', minorver)
ver_conf.set('microver', microver)
configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libavfilter'),
install: true,
)
install_headers(libavfilter_headers, subdir: 'libavfilter')
configure_file(
input: 'libavfilter.v.in',
output: 'libavfilter.ver',
......
......@@ -6,6 +6,11 @@ libavformat_version = libavformat_majorver + '.' + minorver + '.' + microver
cc = meson.get_compiler('c')
libavformat_headers = files(
'avformat.h',
'avio.h',
)
libavformat_sources = files(
'allformats.c',
'avio.c',
......@@ -573,8 +578,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libavformat'),
install: true,
)
install_headers(libavformat_headers, subdir: 'libavformat')
configure_file(
input: 'libavformat.v.in',
output: 'libavformat.ver',
......
......@@ -6,6 +6,10 @@ libavresample_version = libavresample_majorver + '.' + minorver + '.' + microver
cc = meson.get_compiler('c')
libavresample_headers = files(
'avresample.h',
)
libavresample_sources = files(
'audio_convert.c',
'audio_data.c',
......@@ -43,8 +47,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libavresample'),
install: true,
)
install_headers(libavresample_headers, subdir: 'libavresample')
configure_file(
input: 'libavresample.v.in',
output: 'libavresample.ver',
......
......@@ -4,6 +4,85 @@ microver = '100'
libavutil_version = libavutil_majorver + '.' + minorver + '.' + microver
libavutil_headers = files(
'adler32.h',
'aes.h',
'aes_ctr.h',
'attributes.h',
'audio_fifo.h',
'avassert.h',
'avstring.h',
'avutil.h',
'base64.h',
'blowfish.h',
'bprint.h',
'bswap.h',
'buffer.h',
'cast5.h',
'camellia.h',
'channel_layout.h',
'common.h',
'cpu.h',
'crc.h',
'des.h',
'dict.h',
'display.h',
'downmix_info.h',
'encryption_info.h',
'error.h',
'eval.h',
'fifo.h',
'file.h',
'frame.h',
'hash.h',
'hmac.h',
'hwcontext.h',
'hwcontext_cuda.h',
'hwcontext_d3d11va.h',
'hwcontext_drm.h',
'hwcontext_dxva2.h',
'hwcontext_qsv.h',
'hwcontext_mediacodec.h',
'hwcontext_vaapi.h',
'hwcontext_videotoolbox.h',
'hwcontext_vdpau.h',
'imgutils.h',
'intfloat.h',
'intreadwrite.h',
'lfg.h',
'log.h',
'macros.h',
'mathematics.h',
'mastering_display_metadata.h',
'md5.h',
'mem.h',
'motion_vector.h',
'murmur3.h',
'opt.h',
'parseutils.h',
'pixdesc.h',
'pixelutils.h',
'pixfmt.h',
'random_seed.h',
'rc4.h',
'rational.h',
'replaygain.h',
'ripemd.h',
'samplefmt.h',
'sha.h',
'sha512.h',
'spherical.h',
'stereo3d.h',
'threadmessage.h',
'time.h',
'timecode.h',
'timestamp.h',
'tree.h',
'twofish.h',
'xtea.h',
'tea.h',
)
libavutil_sources = files(
'adler32.c',
'aes.c',
......@@ -164,8 +243,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libavutil'),
install: true,
)
install_headers(libavutil_headers, subdir: 'libavutil')
# Lavu configuration file
lavu_conf = configuration_data()
lavu_conf.set10('AV_HAVE_BIGENDIAN', host_machine.endian() == 'big')
......@@ -174,6 +257,8 @@ lavu_conf.set10('HAVE_FAST_UNALIGNED', ['x86', 'x86_64', 'aarch', 'ppc'].contain
configure_file(
output: 'avconfig.h',
configuration: lavu_conf,
install_dir: join_paths(get_option('includedir'), 'libavutil'),
install: true,
)
configure_file(
......@@ -186,6 +271,8 @@ ffversion_h = custom_target('ffversion.h',
output: 'ffversion.h',
command: [find_program('version.py'), join_paths(meson.current_source_dir(), '..'), '@OUTPUT@', ''],
build_by_default: true,
install_dir: join_paths(get_option('includedir'), 'libavutil'),
install: true,
)
subdir('x86')
......@@ -4,6 +4,10 @@ microver = '100'
libpostproc_version = libpostproc_majorver + '.' + minorver + '.' + microver
libpostproc_headers = files(
'postprocess.h',
)
libpostproc_sources = files(
'postprocess.c',
)
......@@ -18,8 +22,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libpostproc'),
install: true,
)
install_headers(libpostproc_headers, subdir: 'libpostproc')
configure_file(
input: 'libpostproc.v.in',
output: 'libpostproc.ver',
......
......@@ -4,6 +4,10 @@ microver = '100'
libswresample_version = libswresample_majorver + '.' + minorver + '.' + microver
libswresample_headers = files(
'swresample.h',
)
libswresample_sources = files(
'audioconvert.c',
'dither.c',
......@@ -43,8 +47,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libswresample'),
install: true,
)
install_headers(libswresample_headers, subdir: 'libswresample')
configure_file(
input: 'libswresample.v.in',
output: 'libswresample.ver',
......
......@@ -4,6 +4,10 @@ microver = '100'
libswscale_version = libswscale_majorver + '.' + minorver + '.' + microver
libswscale_headers = files(
'swscale.h',
)
libswscale_sources = files(
'alphablend.c',
'hscale.c',
......@@ -50,8 +54,12 @@ configure_file(
input: 'version.h.in',
output: 'version.h',
configuration: ver_conf,
install_dir: join_paths(get_option('includedir'), 'libswscale'),
install: true,
)
install_headers(libswscale_headers, subdir: 'libswscale')
configure_file(
input: 'libswscale.v.in',
output: 'libswscale.ver',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment