summaryrefslogtreecommitdiff
path: root/tutorial/c/eo-classes/src/meson.build
blob: d4121a8bc17c5a806dcb211c67f8992643892fd5 (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
eolian_gen = find_program('eolian_gen')

eo_src = ['example_rectangle']
eo_csrc = []
eo_gen = []

foreach eo : eo_src
  eo_file = eo + '.eo'
  eo_csrc += eo + '.c'

  eo_gen += custom_target('eolian_gen_eo_classes' + eo_file,
    input : eo_file,
    output : [eo_file + '.h'],
    command : [eolian_gen, '-I', meson.current_source_dir(),
                           '-gchi',
                           '-o', 'i:' + join_paths(meson.current_source_dir(), eo + '.c'),
                           '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
                           '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'), '@INPUT@'])
endforeach

src = files([
  'eo_classes_main.c',
])

deps = [eina, efl]

executable('efl_example_eo_classes', src, eo_csrc, eo_gen,
  dependencies : deps,
  include_directories : inc,
  install : true
)