2017-08-29 18:25:18 +00:00
|
|
|
pkg = 'gst-editing-services'
|
|
|
|
raw_api_fname = join_paths(meson.current_source_dir(), pkg + '-api.raw')
|
2017-10-04 19:02:53 +00:00
|
|
|
metadata = files(pkg + '.metadata')
|
2017-08-29 18:25:18 +00:00
|
|
|
|
|
|
|
subdir('generated')
|
|
|
|
|
2018-03-24 14:30:40 +00:00
|
|
|
ges_sharp = shared_library(pkg + '-sharp', ges_generate_files,
|
2017-09-25 15:00:00 +00:00
|
|
|
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
|
2017-08-29 18:25:18 +00:00
|
|
|
link_with: gst_sharp,
|
|
|
|
dependencies: [glib_sharp_dep, gio_sharp_dep])
|
|
|
|
|
2017-10-04 19:02:53 +00:00
|
|
|
ges_sharp_dep = declare_dependency(dependencies: [glib_sharp_dep, gio_sharp_dep, gst_sharp_dep], link_with: ges_sharp)
|
2017-08-29 18:25:18 +00:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: pkg + '-sharp.dll.config',
|
|
|
|
output: pkg + '-sharp.dll.config',
|
2019-04-13 06:46:55 +00:00
|
|
|
copy: true)
|
2017-08-29 18:25:18 +00:00
|
|
|
|
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(pkg + '_c_abi', c_abi,
|
|
|
|
c_args: ['-Wno-deprecated', '-Wno-deprecated-declarations'],
|
|
|
|
dependencies: [gst_deps, ges_dep])
|
|
|
|
|
|
|
|
cs_abi_exe = executable(pkg + '_cs_abi', cs_abi,
|
|
|
|
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-nowarn:0618', '-unsafe'],
|
|
|
|
dependencies: [ges_sharp_dep])
|
|
|
|
|
2017-10-04 20:07:26 +00:00
|
|
|
test(pkg + '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
|