aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/filters/meson.build
blob: a98d039e7245b576047989916433cc32e0c2dec7 (plain) (blame)
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
subdir('lua')

evas_src += files([
  'evas_filter.c',
  'evas_filter_parser.c',
  'evas_filter_private.h',
  'evas_filter_utils.c',
])

luaold_interpreters = [
  ['lua', '>=5.1.0'],
  ['lua51', '>=5.1.0'],
  ['lua-5.1', '>=5.1.0'],
  ['lua5.1', '>=5.1.0'],
  ['lua52', '>=5.2.0'],
  ['lua-5.2', '>=5.2.0'],
  ['lua5.2', '>=5.2.0'],
]

if get_option('lua-interpreter') == 'lua'
  foreach l : luaold_interpreters
    lua = dependency(l[0], version: l[1], required:false)
    if lua.found() == true
      break
    endif
  endforeach
else
  lua = dependency(get_option('lua-interpreter'), required:false)
endif

if sys_osx == true
# lua on macro is broken, this means we need to generate our own dependency with our arguments, a library later still needs to link to lua for the pagesize argument thingy
  lua = declare_dependency(
    include_directories: include_directories(lua.get_pkgconfig_variable('includedir')),
    link_args: ['-L'+lua.get_pkgconfig_variable('libdir'), '-l'+lua.get_pkgconfig_variable('libname')]
  )
endif

evas_deps += lua