summaryrefslogtreecommitdiff
path: root/meson.build
blob: 55f9ba3b5410e910f267be3fc0c2abb0108db19e (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
project(
    'gupnp-dlna',
    'c',
    version: '0.12.0'
)

pkg = import('pkgconfig')
gnome = import('gnome')

shareddir = join_paths(get_option('prefix'), get_option('datadir'), 'gupnp-dlna-2.0')
metadata_backend_dir = join_paths(get_option('prefix'), get_option('libdir'), 'gupnp-dlna')
library_version = '4.0.0'

config = configuration_data()
config.set_quoted('GUPNP_DLNA_DEFAULT_METADATA_BACKEND', get_option('default_backend'))
config.set_quoted('GUPNP_DLNA_DEFAULT_METADATA_BACKEND_DIR', metadata_backend_dir)


# Generate config.h
subdir('internal')
add_project_arguments('-DHAVE_CONFIG_H=1', language : 'c')
toplevel_incdir = include_directories('.')

glib = dependency('glib-2.0')
gobject = dependency('gobject-2.0')
gio = dependency('gio-2.0')
gmodule = dependency('gmodule-2.0')
xml = dependency('libxml-2.0')

gstreamer = dependency('gstreamer-1.0', required: get_option('gstreamer_backend'), disabler : true)
gstreamer_pbu = dependency('gstreamer-pbutils-1.0', required: get_option('gstreamer_backend'), disabler : true)

# default is relative to the source dir; if test_media is absolute, join_paths() will return that instead
media_dir = join_paths(meson.current_source_dir(), get_option('test_media'))
dlna_profile_dir = join_paths(meson.current_source_dir(), 'data')

install_data(
    files(
        'data/dlna-profiles.rng',
        'data/aac.xml',
        'data/ac3.xml',
        'data/amr.xml',
        'data/avc.xml',
        'data/common.xml',
        'data/jpeg.xml',
        'data/lpcm.xml',
        'data/mp3.xml',
        'data/mpeg1.xml',
        'data/mpeg4.xml',
        'data/mpeg-common.xml',
        'data/mpeg-ps.xml',
        'data/mpeg-ts.xml',
        'data/png.xml',
        'data/wma.xml'
    ),
    install_dir : join_paths(shareddir, 'dlna-profiles')
)

subdir('libgupnp-dlna')
subdir('tools')
if get_option('introspection')
    if get_option('vapi')
        subdir('vala')
    endif
endif
subdir('doc')
subdir('tests')