summaryrefslogtreecommitdiff
path: root/tutorial/c/eo-inherit/src/meson.build
blob: fcb7c9c617c72961e7832c853cfa5f300c332e7d (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', 'example_square']
eo_csrc = []
eo_gen = []

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

  eo_gen += custom_target('eolian_gen_' + 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_inherit_main.c',
])

deps = [eina, efl]

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