summaryrefslogtreecommitdiff
path: root/examples/meson.build
blob: 256168945fbc499b1de527b72d9d6c77ee3ba100 (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
examples = [
  'actor-model',
  'basic-actor',
  'box-layout',
  'canvas',
  'constraints',
  'drag-action',
  'drop-action',
  'easing-modes',
  'flow-layout',
  'grid-layout',
  'layout-manager',
  'pan-action',
  'rounded-rectangle',
  'scroll-actor',
  'threads',
]

examples_deps = [
  libclutter_dep,
]

enable_pixbuf_tests = get_option('pixbuf_tests')
if enable_pixbuf_tests
  examples += [
    'bin-layout',
    'image-content',
  ]

  examples_deps += [
    dependency('gdk-pixbuf-2.0'),
  ]
endif

examples_cargs = []

if cc.get_argument_syntax() == 'msvc'
  examples_cargs += '-D_USE_MATH_DEFINES'
endif

foreach e: examples
  executable(
    e,
    e + '.c',
    dependencies: examples_deps,
    c_args: examples_cargs,
  )
endforeach