summaryrefslogtreecommitdiff
path: root/ges/meson.build
blob: aecf93239b19836ac2f49422d435d2cb105c9907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pkg = 'gst-editing-services'
raw_api_fname = join_paths(meson.current_source_dir(), pkg + '-api.raw')
metadata  = files(pkg + '.metadata')

subdir('generated')

ges_sharp = library(pkg + '-sharp', source_gen,
        cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
        link_with: gst_sharp,
        dependencies: [glib_sharp_dep, gio_sharp_dep])

ges_sharp_dep = declare_dependency(dependencies: [glib_sharp_dep, gio_sharp_dep, gst_sharp_dep], link_with: ges_sharp)

configure_file(
    input: pkg + '-sharp.dll.config',
    output: pkg + '-sharp.dll.config',
    configuration: configuration_data())

if add_languages('c', required: false) and csc.get_id() == 'mono'
    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])

    env = environment()
    env.prepend('MONO_PATH', mono_path)
    test(pkg + 'abi', diff, args: [c_abi_exe.full_path(), cs_abi_exe.full_path()],
            env: env)
else
    message('Not running tests ' + csc.get_id())
endif