summaryrefslogtreecommitdiff
path: root/src/lib/ecore_sdl/meson.build
blob: 9aa9bbdbd569c4a9c58c9b914f3a1535c23646fb (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
ecore_sdl_deps = [eina, ecore, ecore_input]
ecore_sdl_pub_deps = []

ecore_sdl_src = [
  'ecore_sdl.c'
]

ecore_sdl_header_src = [
  'Ecore_Sdl.h',
  'Ecore_Sdl_Keys.h'
]

ecore_sdl_deps += dependency('sdl2')

ecore_sdl_c_args = package_c_args + [ '-DEFL_BUILD' ]

ecore_sdl_lib = library('ecore_sdl',
    ecore_sdl_src,
    dependencies: [m] + ecore_sdl_deps + ecore_sdl_pub_deps,
    include_directories : config_dir + [include_directories(join_paths('..','..'))],
    install: true,
    c_args : ecore_sdl_c_args,
)

ecore_sdl = declare_dependency(
  include_directories: [include_directories('.')],
  link_with: ecore_sdl_lib,
  dependencies: ecore_sdl_pub_deps,
)

install_headers(ecore_sdl_header_src,
  install_dir : dir_package_include,
)