Arun Raghavan 21d78a4267 build: Make packages versioned
Since we cannot rely on the API to be stable upstream, let's start
making the pkg-config, library, and include dir have a version suffix.
This will allow different downstream projects depending on us to
independently switch versions without packagers having to jump through
hoops.
2020-10-23 13:30:23 -04:00

47 lines
984 B
Meson

api_sources = [
'audio/audio_frame.cc',
'audio/channel_layout.cc',
'audio/echo_canceller3_config.cc',
'audio_codecs/audio_decoder.cc',
'audio_codecs/audio_encoder.cc',
'rtp_headers.cc',
'rtp_packet_info.cc',
'task_queue/task_queue_base.cc',
'units/data_rate.cc',
'units/data_size.cc',
'units/frequency.cc',
'units/time_delta.cc',
'units/timestamp.cc',
'video/color_space.cc',
'video/hdr_metadata.cc',
'video/video_content_type.cc',
'video/video_timing.cc',
]
api_headers = [
['', 'array_view.h'],
['', 'scoped_refptr.h'],
['audio', 'echo_canceller3_config.h'],
['audio', 'echo_control.h'],
]
foreach h : api_headers
install_headers(
join_paths(h[0], h[1]),
subdir: join_paths(include_subdir, 'api', h[0])
)
endforeach
libapi = static_library('libapi',
api_sources,
dependencies: common_deps,
include_directories: webrtc_inc,
cpp_args : common_cxxflags
)
api_dep = declare_dependency(
link_with: libapi
)