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
76
77
78
79
80
81
82
83
84
|
examples_dir = join_paths(clutter_datadir, clutter_api_name, 'cookbook', 'examples')
all_examples = [
['actors-composite-main', ['cb-button.c'], ['cb-button.h']],
['animations-complex'],
['animations-looping-animator'],
['animations-looping-implicit'],
['animations-looping-state'],
['animations-moving-animator'],
['animations-moving-implicit'],
['animations-moving-state'],
['animations-path'],
['animations-path-circle'],
['animations-reuse'],
['animations-rotating'],
['animations-scaling'],
['animations-scaling-zoom'],
['effects-basic', ['cb-border-effect.c', 'cb-background-effect.c'], ['cb-border-effect.h', 'cb-background-effect.h']],
['effects-built-in'],
['effects-custom-deform', ['cb-page-fold-effect.c'], ['cb-page-fold-effect.h']],
['events-buttons'],
['events-buttons-click'],
['events-buttons-lasso'],
['events-mouse-scroll'],
['events-pointer-motion'],
['events-pointer-motion-crossing'],
['events-pointer-motion-stacked'],
['events-pointer-motion-scribbler'],
['layouts-bind-constraint-allocation'],
['layouts-bind-constraint-overlay'],
['layouts-bind-constraint-stage'],
['layouts-box'],
['layouts-box-menu'],
['layouts-box-property-effects'],
['layouts-stacking'],
['layouts-stacking-diff-sized-actors'],
['script-ui'],
['script-signals'],
['script-states'],
['text-shadow'],
['textures-crossfade'],
['textures-crossfade-cogl'],
['textures-crossfade-slideshow'],
['textures-reflection'],
['textures-split-go'],
['textures-sub-texture'],
]
example_data = []
foreach e: all_examples
example_src = [ e[0] + '.c' ] + e.get(1, [])
example_bin = executable(e[0],
example_src,
dependencies: [libclutter_dep, mathlib_dep],
c_args: [
'-DG_DISABLE_SINGLE_INCLUDES',
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DCLUTTER_DISABLE_DEPRECATION_WARNINGS',
],
link_args: ['-export-dynamic'],
)
example_data += files(example_src, e.get(2, []))
endforeach
ui_data = [
'animations-complex.json',
'animations-complex-overlapping.json',
'animations-reuse-animation.json',
'animations-reuse-ui.json',
'script-signals.json',
'script-states.json',
'script-ui.json',
]
img_data = [
'redhand.png',
'smiley.png',
]
install_data(example_data + ui_data + img_data,
install_dir: examples_dir,
)
|