summaryrefslogtreecommitdiff
path: root/doc/reference/librygel-db/meson.build
blob: b551787f7d3c994e65f33201a31c6d9029df2c62 (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
if valadoc.found()
db_doc_common_args = [
        '--package-name', 'librygel-db',
        '--package-version', '2.6',
        '-b', join_paths(meson.source_root(), 'src', 'librygel-db'),
        '--vapidir', join_paths(meson.source_root(), 'vapi'),
        '--vapidir', join_paths(meson.source_root(), 'src/librygel-core'),
        '--vapidir', join_paths(meson.build_root(), 'src/librygel-core'),
        '--pkg', 'rygel-build-config',
        '--force',
        '--directory', '@OUTPUT@',
        '--pkg', 'gio-2.0',
        '--pkg', 'gee-0.8',
        '--pkg', 'gupnp-1.0',
        '--pkg', 'gmodule-2.0',
        '--pkg', 'posix',
        '--pkg', 'sqlite3',
        '--pkg', 'gupnp-av-1.0',
        '--pkg', 'rygel-core-2.6',
]

custom_target('valadoc-db',
    input: db_sources,
    output: 'valadoc',
    depends: db_lib,
    build_by_default : get_option('api-docs'),
    command :
    [
        valadoc,
        db_doc_common_args,
        '-o', 'valadoc',
        db_sources
    ]
)

if gtkdoc.found()
custom_target('gtkdoc-db',
    input: db_sources,
    output: 'gtkdoc',
    depends : db_lib,
    build_by_default : get_option('api-docs'),
    command :
    [
        valadoc,
        db_doc_common_args,
        '--doclet', 'gtkdoc',
        '-o', 'gtkdoc',
        '-X', join_paths(meson.build_root(), 'src/librygel-db/rygel-db.h'),
        '-X', '-l',
        '-X', join_paths(meson.build_root(), 'src/librygel-db/librygel-db-2.6.so'),
        '-X', '-l',
        '-X', join_paths(meson.build_root(), 'src/librygel-core/librygel-core-2.6.so'),
        db_sources
    ]
)

if get_option('api-docs')
    install_subdir('gtkdoc/html',
                   install_dir : join_paths(get_option('datadir'), 'gtk-doc/html/librygel-db'),
                   strip_directory : true)
endif

endif
endif