| 1 |
private_headers = [ |
| 2 |
'config.h', |
| 3 |
'clutter.h', |
| 4 |
|
| 5 |
'clutter-actor-meta-private.h', |
| 6 |
'clutter-actor-private.h', |
| 7 |
'clutter-backend-private.h', |
| 8 |
'clutter-bezier.h', |
| 9 |
'clutter-cogl-compat.h', |
| 10 |
'clutter-color-static.h', |
| 11 |
'clutter-config.h', |
| 12 |
'clutter-constraint-private.h', |
| 13 |
'clutter-debug.h', |
| 14 |
'clutter-deprecated.h ', |
| 15 |
'clutter-device-manager-private.h', |
| 16 |
'clutter-easing.h', |
| 17 |
'clutter-enum-types.h ', |
| 18 |
'clutter-event-translator.h', |
| 19 |
'clutter-flatten-effect.h', |
| 20 |
'clutter-gesture-action-private.h', |
| 21 |
'clutter-id-pool.h', |
| 22 |
'clutter-keysyms.h', |
| 23 |
'clutter-keysyms-compat.h', |
| 24 |
'clutter-keysyms-table.h', |
| 25 |
'clutter-marshal.h', |
| 26 |
'clutter-master-clock-default.h', |
| 27 |
'clutter-master-clock.h', |
| 28 |
'clutter-model-private.h', |
| 29 |
'clutter-paint-node-private.h', |
| 30 |
'clutter-paint-volume-private.h', |
| 31 |
'clutter-private.h', |
| 32 |
'clutter-script-private.h', |
| 33 |
'clutter-settings-private.h', |
| 34 |
'clutter-stage-manager-private.h', |
| 35 |
'clutter-stage-private.h', |
| 36 |
'clutter-stage-window.h', |
| 37 |
'clutter-timeout-interval.h', |
| 38 |
|
| 39 |
# Cally |
| 40 |
'cally-actor-private.h', |
| 41 |
|
| 42 |
# No public symbols |
| 43 |
'tslib', |
| 44 |
'cogl', |
| 45 |
] |
| 46 |
|
| 47 |
doc_dirs = [ |
| 48 |
clutter_inc, |
| 49 |
] |
| 50 |
|
| 51 |
# Backend headers |
| 52 |
if enabled_backends.contains('cex100') |
| 53 |
private_headers += [ |
| 54 |
'clutter-backend-cex100.h', |
| 55 |
] |
| 56 |
else |
| 57 |
private_headers += 'cex100' |
| 58 |
endif |
| 59 |
|
| 60 |
if enabled_backends.contains('eglnative') |
| 61 |
private_headers += [ |
| 62 |
'clutter-backend-eglnative.h', |
| 63 |
'clutter-egl-headers.h', |
| 64 |
'clutter-stage-eglnative.h', |
| 65 |
] |
| 66 |
else |
| 67 |
private_headers += 'egl' |
| 68 |
endif |
| 69 |
|
| 70 |
if enabled_input_backends.contains('evdev') |
| 71 |
private_headers += [ |
| 72 |
'clutter-device-manager-evdev.h', |
| 73 |
'clutter-input-device-evdev.h', |
| 74 |
'clutter-xkb-utils.h', |
| 75 |
] |
| 76 |
else |
| 77 |
private_headers += 'evdev' |
| 78 |
endif |
| 79 |
|
| 80 |
if enabled_backends.contains('gdk') |
| 81 |
private_headers += [ |
| 82 |
'clutter-backend-gdk.h', |
| 83 |
'clutter-backend-gk-private.h', |
| 84 |
'clutter-device-manager-gdk.h', |
| 85 |
'clutter-event-gdk.h', |
| 86 |
'clutter-input-device-gdk.h', |
| 87 |
'clutter-master-clock-gdk.h', |
| 88 |
'clutter-settings-gdk.h', |
| 89 |
'clutter-stage-gdk.h', |
| 90 |
] |
| 91 |
else |
| 92 |
private_headers += 'gdk' |
| 93 |
endif |
| 94 |
|
| 95 |
if enabled_backends.contains('mir') |
| 96 |
private_headers += [ |
| 97 |
'clutter-backend-mir.h', |
| 98 |
'clutter-backend-mir-priv.h', |
| 99 |
'clutter-device-manager-mir.h', |
| 100 |
'clutter-event-mir.h', |
| 101 |
'clutter-input-device-mir.h', |
| 102 |
'clutter-stage-mir.h', |
| 103 |
] |
| 104 |
else |
| 105 |
private_headers += 'mir' |
| 106 |
endif |
| 107 |
|
| 108 |
if enabled_backends.contains('osx') |
| 109 |
private_headers += [ |
| 110 |
'clutter-backend-osx.h', |
| 111 |
'clutter-device-manager-osx.h', |
| 112 |
'clutter-event-loop-osx.h', |
| 113 |
'clutter-stage-osx.h', |
| 114 |
] |
| 115 |
else |
| 116 |
private_headers += 'osx' |
| 117 |
endif |
| 118 |
|
| 119 |
if enabled_backends.contains('wayland') |
| 120 |
private_headers += [ |
| 121 |
'clutter-backend-wayland.h', |
| 122 |
'clutter-backend-wayland-priv.h', |
| 123 |
'clutter-device-manager-wayland.h', |
| 124 |
'clutter-event-wayland.h', |
| 125 |
'clutter-input-device-wayland.h', |
| 126 |
'clutter-stage-wayland.h', |
| 127 |
] |
| 128 |
else |
| 129 |
private_headers += 'wayland' |
| 130 |
endif |
| 131 |
|
| 132 |
if enabled_backends.contains('win32') |
| 133 |
private_headers += [ |
| 134 |
'clutter-backend-win32.h', |
| 135 |
'clutter-device-manager-win32.h', |
| 136 |
'clutter-event-win32.h', |
| 137 |
'clutter-stage-win32.h', |
| 138 |
] |
| 139 |
else |
| 140 |
private_headers += 'win32' |
| 141 |
endif |
| 142 |
|
| 143 |
if enabled_backends.contains('x11') |
| 144 |
private_headers += [ |
| 145 |
'clutter-backend-x11.h', |
| 146 |
'clutter-device-manager-core-x11.h', |
| 147 |
'clutter-device-manager-xi2.h', |
| 148 |
'clutter-input-device-core-x11.h', |
| 149 |
'clutter-input-device-xi2.h', |
| 150 |
'clutter-keymap-x11.h', |
| 151 |
'clutter-settings-x11.h', |
| 152 |
'clutter-stage-x11.h', |
| 153 |
'xsettings', |
| 154 |
] |
| 155 |
else |
| 156 |
private_headers += [ 'x11', 'xsettings' ] |
| 157 |
endif |
| 158 |
|
| 159 |
images = [ |
| 160 |
'actor-box.png', |
| 161 |
'actor-example.png', |
| 162 |
'animator-key-frames.png', |
| 163 |
'bin-layout.png', |
| 164 |
'box-layout.png', |
| 165 |
'constraints-example.png', |
| 166 |
'easing-modes.png', |
| 167 |
'event-flow.png', |
| 168 |
'flow-layout.png', |
| 169 |
'path-alpha-func.png', |
| 170 |
'offscreen-redirect.png', |
| 171 |
'table-layout.png', |
| 172 |
] |
| 173 |
|
| 174 |
content_files = [ |
| 175 |
'glossary.xml', |
| 176 |
'clutter-overview.xml', |
| 177 |
'building-clutter.xml', |
| 178 |
'running-clutter.xml', |
| 179 |
'migrating-ClutterAnimation.xml', |
| 180 |
'migrating-ClutterBehaviour.xml', |
| 181 |
'migrating-ClutterEffect.xml', |
| 182 |
'migrating-ClutterPath.xml', |
| 183 |
] |
| 184 |
|
| 185 |
expand_content_files = [ |
| 186 |
'glossary.xml', |
| 187 |
'clutter-overview.xml', |
| 188 |
'building-clutter.xml', |
| 189 |
'running-clutter.xml', |
| 190 |
'migrating-ClutterAnimation.xml', |
| 191 |
'migrating-ClutterBehaviour.xml', |
| 192 |
'migrating-ClutterEffect.xml', |
| 193 |
'migrating-ClutterPath.xml', |
| 194 |
] |
| 195 |
|
| 196 |
docpath = join_paths(get_option('prefix'), get_option('datadir'), 'gtk-doc', 'html') |
| 197 |
|
| 198 |
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix') |
| 199 |
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') |
| 200 |
|
| 201 |
cairo_prefix = dependency('cairo').get_pkgconfig_variable('prefix') |
| 202 |
cairo_docpath = join_paths(cairo_prefix, 'share', 'gtk-doc', 'html', 'cairo') |
| 203 |
|
| 204 |
cogl_prefix = dependency('cogl-1.0').get_pkgconfig_variable('prefix') |
| 205 |
cogl_docpath = join_paths(cogl_prefix, 'share', 'gtk-doc', 'html', 'cogl') |
| 206 |
|
| 207 |
pango_prefix = dependency('pango').get_pkgconfig_variable('prefix') |
| 208 |
pango_docpath = join_paths(cogl_prefix, 'share', 'gtk-doc', 'html', 'pango') |
| 209 |
|
| 210 |
gdk_prefix = dependency('gdk-3.0').get_pkgconfig_variable('prefix') |
| 211 |
gdk_docpath = join_paths(cogl_prefix, 'share', 'gtk-doc', 'html', 'gdk3') |
| 212 |
|
| 213 |
atk_prefix = dependency('atk').get_pkgconfig_variable('prefix') |
| 214 |
atk_docpath = join_paths(cogl_prefix, 'share', 'gtk-doc', 'html', 'atk') |
| 215 |
|
| 216 |
subdir('xml') |
| 217 |
|
| 218 |
gnome.gtkdoc('clutter', |
| 219 |
main_xml: 'clutter-docs.xml', |
| 220 |
mode: 'xml', |
| 221 |
namespace: 'clutter', |
| 222 |
src_dir: doc_dirs, |
| 223 |
dependencies: libclutter_dep, |
| 224 |
gobject_typesfile: join_paths(meson.current_source_dir(), 'clutter.types'), |
| 225 |
scan_args: [ |
| 226 |
'--ignore-decorators=_CLUTTER_EXTERN', |
| 227 |
'--ignore-headers=' + ' '.join(private_headers), |
| 228 |
], |
| 229 |
fixxref_args: [ |
| 230 |
'--html-dir=@0@'.format(docpath), |
| 231 |
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')), |
| 232 |
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')), |
| 233 |
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')), |
| 234 |
'--extra-dir=@0@'.format(cairo_docpath), |
| 235 |
'--extra-dir=@0@'.format(cogl_docpath), |
| 236 |
'--extra-dir=@0@'.format(pango_docpath), |
| 237 |
'--extra-dir=@0@'.format(gdk_docpath), |
| 238 |
'--extra-dir=@0@'.format(atk_docpath), |
| 239 |
], |
| 240 |
content_files: content_files, |
| 241 |
expand_content_files: expand_content_files, |
| 242 |
html_assets: images, |
| 243 |
install: true, |
| 244 |
) |