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

ecore_sdl_src = files([
  'ecore_sdl.c'
])

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

ecore_sdl_ext_deps += dependency('sdl2')

ecore_sdl_lib = library('ecore_sdl',
    ecore_sdl_src,
    dependencies: [ecore_sdl_deps, ecore_sdl_pub_deps, ecore_sdl_ext_deps],
    include_directories : config_dir + [include_directories(join_paths('..','..'))],
    install: true,
    c_args : package_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,
)