summaryrefslogtreecommitdiff
path: root/src/bin/eolian/meson.build
blob: 0e2152e5529c50448be9a314a8142b706eb8b203 (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_src = [
  'main.c',
  'main.h',
  'types.c',
  'types.h',
  'headers.c',
  'headers.h',
  'sources.c',
  'sources.h',
  'docs.c',
  'docs.h'
]

eolian_gen_bin = executable('eolian_gen',
        eolian_gen_src,
        dependencies: eolian,
        install: true,
        c_args : package_c_args,
)

eolian_gen_path = eolian_gen_bin.full_path()


if meson.is_cross_build()
  _eolian_gen_bin = find_program('eolian_gen', native : true)
  eolian_gen_path = _eolian_gen_bin.path()
else
  _eolian_gen_bin = eolian_gen_bin
  eolian_gen_path = _eolian_gen_bin.full_path()
endif

eolian_gen = [_eolian_gen_bin, '-S']