File: meson.build

package info (click to toggle)
granite 6.2.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,748 kB
  • sloc: python: 10; makefile: 8
file content (60 lines) | stat: -rw-r--r-- 1,581 bytes parent folder | download | duplicates (2)
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
valadoc = find_program('valadoc')
gd_scan = find_program('gtkdoc-scan')

valadoc_vala_dir = 'granite-vala'
valadoc_target = custom_target(
    'valadoc',
    command: [
        valadoc,
        '--pkg=gee-0.8',
        '--pkg=glib-2.0',
        '--pkg=gio-2.0',
        '--pkg=gio-unix-2.0',
        '--pkg=gobject-2.0',
        '--pkg=gtk+-3.0',
        '--pkg=posix',
        libgranite_sources,
        config_vala,
        '--target-glib=' + glib_min_version,
        '--package-name=' + meson.project_name(),
        '--package-version=' + meson.project_version(),
        '--verbose',
        '--force',
        '--use-svg-images',
        '-o', join_paths(meson.current_build_dir(), valadoc_vala_dir),
    ],

    build_by_default: true,
    output: valadoc_vala_dir,
    depends: libgranite,
)

valadoc_c_dir = 'granite'
cdoc_target = custom_target(
    'cdocs',
    command: [
        valadoc,
        '--pkg=gee-0.8',
        '--pkg=glib-2.0',
        '--pkg=gio-2.0',
        '--pkg=gio-unix-2.0',
        '--pkg=gobject-2.0',
        '--pkg=gtk+-3.0',
        '--pkg=posix',
        libgranite_sources,
        config_vala,
        '--target-glib=' + glib_min_version,
        '--package-name=' + meson.project_name(),
        '--package-version=' + meson.project_version(),
        '--verbose',
        '--force',
        '--use-svg-images',
        '-o', join_paths(meson.current_build_dir(), valadoc_c_dir),
        '--doclet-arg=' + 'lib/granite.h',
        '--doclet=gtkdoc'
    ],

    build_by_default: true,
    output: valadoc_c_dir,
    depends: libgranite
)