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
68
69
70
71
72
73
74
75
|
if get_option('gtk_doc')
subdir('xml')
private_headers = [
'config.h',
'gtkprogresstrackerprivate.h',
'gtk-window-private.h',
'hdy-animation-private.h',
'hdy-carousel-box-private.h',
'hdy-css-private.h',
'hdy-enums.h',
'hdy-enums-private.h',
'hdy-main-private.h',
'hdy-nothing-private.h',
'hdy-keypad-button-private.h',
'hdy-preferences-group-private.h',
'hdy-preferences-page-private.h',
'hdy-shadow-helper-private.h',
'hdy-stackable-box-private.h',
'hdy-swipe-tracker-private.h',
'hdy-types.h',
'hdy-view-switcher-button-private.h',
'hdy-window-handle-controller-private.h',
'hdy-window-mixin-private.h',
]
images = [
'images/avatar.png',
'images/header-bar.png',
'images/keypad.png',
'images/list.png',
'images/preferences-window.png',
'images/search.png',
'images/view-switcher.png',
'images/view-switcher-bar.png',
]
content_files = [
'build-howto.xml',
'hdy-migrating-0-0-to-1.xml',
'visual-index.xml',
]
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = glib_prefix / 'share' / 'gtk-doc' / 'html'
docpath = get_option('datadir') / 'gtk-doc' / 'html'
gnome.gtkdoc('libhandy',
main_xml: 'handy-docs.xml',
src_dir: [
meson.source_root() / 'src',
meson.build_root() / 'src',
],
dependencies: libhandy_dep,
gobject_typesfile: 'libhandy.types',
scan_args: [
'--rebuild-types',
'--ignore-headers=' + ' '.join(private_headers),
],
fixxref_args: [
'--html-dir=@0@'.format(docpath),
'--extra-dir=@0@'.format(glib_docpath / 'glib'),
'--extra-dir=@0@'.format(glib_docpath / 'gobject'),
'--extra-dir=@0@'.format(glib_docpath / 'gio'),
'--extra-dir=@0@'.format(glib_docpath / 'gi'),
'--extra-dir=@0@'.format(glib_docpath / 'gtk3'),
'--extra-dir=@0@'.format(glib_docpath / 'gdk-pixbuf'),
],
install_dir: 'libhandy-' + apiversion,
content_files: content_files,
html_assets: images,
install: true)
endif
|