2017-08-21 18:20:47 +00:00
|
|
|
raw_api_fname = join_paths(meson.current_source_dir(), meson.project_name() + '-api.raw')
|
2017-10-04 19:02:53 +00:00
|
|
|
metadata = files(meson.project_name() + '.metadata')
|
2017-08-21 18:20:47 +00:00
|
|
|
|
2018-03-19 18:49:25 +00:00
|
|
|
abi_includes = 'glib.h,gst/gst.h,gst/video/video.h,gst/audio/audio.h,gst/rtsp/rtsp.h,gst/app/app.h,gst/audio/audio.h,gst/base/base.h,gst/controller/controller.h,gst/fft/fft.h,gst/net/net.h,gst/pbutils/gstaudiovisualizer.h,gst/pbutils/pbutils.h,gst/rtp/rtp.h,gst/rtsp/rtsp.h,gst/sdp/sdp.h,gst/tag/tag.h,gst/video/video.h,gst/video/gstvideoaffinetransformationmeta.h,gst/net/gstnetcontrolmessagemeta.h,gst/webrtc/webrtc.h'
|
2017-08-21 18:20:47 +00:00
|
|
|
|
|
|
|
sources = [
|
|
|
|
'custom/Adapter.cs',
|
|
|
|
'custom/Application.cs',
|
|
|
|
'custom/AppSink.cs',
|
|
|
|
'custom/AppSrc.cs',
|
|
|
|
'custom/AudioFilter.cs',
|
|
|
|
'custom/Bin.cs',
|
|
|
|
'custom/Buffer.cs',
|
|
|
|
'custom/Bus.cs',
|
|
|
|
'custom/Caps.cs',
|
|
|
|
'custom/DeviceProvider.cs',
|
|
|
|
'custom/DynamicSignal.cs',
|
|
|
|
'custom/Element.cs',
|
2020-07-06 21:15:22 +00:00
|
|
|
'custom/ElementFactory.cs',
|
2017-08-21 18:20:47 +00:00
|
|
|
'custom/FFTF32.cs',
|
|
|
|
'custom/Iterator.cs',
|
|
|
|
'custom/MapInfo.cs',
|
|
|
|
'custom/Message.cs',
|
|
|
|
'custom/MiniObject.cs',
|
|
|
|
'custom/NavigationAdapter.cs',
|
|
|
|
'custom/Object.cs',
|
|
|
|
'custom/Pad.cs',
|
|
|
|
'custom/Pipeline.cs',
|
|
|
|
'custom/TagList.cs',
|
|
|
|
'custom/Value.cs',
|
|
|
|
'custom/Version.cs',
|
2017-08-30 01:19:49 +00:00
|
|
|
'custom/VideoGLUploadMeta.cs',
|
|
|
|
'custom/Global.cs',
|
2017-08-21 18:20:47 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
subdir('generated')
|
|
|
|
|
2018-03-24 14:30:40 +00:00
|
|
|
gst_sharp = shared_library('gstreamer-sharp', gst_generate_files, sources,
|
2017-09-25 15:00:00 +00:00
|
|
|
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
|
2017-08-21 18:20:47 +00:00
|
|
|
dependencies: [glib_sharp_dep, gio_sharp_dep])
|
|
|
|
|
|
|
|
gst_sharp_dep = declare_dependency(dependencies: [glib_sharp_dep, gio_sharp_dep],
|
|
|
|
link_with: gst_sharp)
|
|
|
|
|
2019-02-25 14:12:23 +00:00
|
|
|
if add_languages('c', required: get_option('tests')) and csc.get_id() == 'mono'
|
2017-10-04 19:02:53 +00:00
|
|
|
c_abi_exe = executable('gst_sharp_c_abi', c_abi,
|
2018-03-19 18:49:25 +00:00
|
|
|
c_args: ['-DGST_USE_UNSTABLE_API'],
|
2017-10-04 19:02:53 +00:00
|
|
|
dependencies: [gst_deps])
|
|
|
|
|
|
|
|
cs_abi_exe = executable('gst_sharp_cs_abi', cs_abi,
|
|
|
|
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
|
|
|
|
dependencies: [gst_sharp_dep])
|
|
|
|
|
2017-10-04 20:07:26 +00:00
|
|
|
test('gstreamer_sharp_abi', diff, args: [c_abi_exe.full_path(), cs_abi_exe.full_path()],
|
2018-01-12 16:04:37 +00:00
|
|
|
env: testsenv)
|
2017-10-04 20:07:26 +00:00
|
|
|
else
|
|
|
|
message('Not running tests ' + csc.get_id())
|
2017-10-04 19:02:53 +00:00
|
|
|
endif
|
|
|
|
|
2017-08-21 18:20:47 +00:00
|
|
|
configure_file(
|
2017-10-11 22:20:38 +00:00
|
|
|
input: 'gstreamer-sharp.dll.config',
|
2017-08-21 18:20:47 +00:00
|
|
|
output: 'gstreamer-sharp.dll.config',
|
2019-04-13 06:46:55 +00:00
|
|
|
copy: true)
|