summaryrefslogtreecommitdiff
path: root/src/static_libs/draw/meson.build
blob: 54c72160d2ca5f9864b9440cd5e0fa5c62a83ebe (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
33
34
35
36

draw_src = [
  'draw_main.c',
  'draw_main_neon.c',
  'draw_main.c',
  'draw_convert.c',
  'draw_alpha_main.c'
]

draw_opt_lib = [ ]

if cpu_sse3 == true
  draw_opt = static_library('draw_opt',
    sources: [ 'draw_main_sse2.c' ],
    include_directories: config_dir + [include_directories(join_paths('..', '..', 'lib'))],
    c_args: draw_opt_c_args,
    dependencies : [eina, efl]
  )
  draw_opt_lib += [ draw_opt ]
else
  draw_src += [ 'draw_main_sse2.c' ]
endif

draw_lib = static_library('draw',
    draw_src,
    dependencies : [eina, efl],
    include_directories : config_dir + [include_directories(join_paths('..', '..', 'lib'))],
    install: false,
    link_with: draw_opt_lib,
)

draw = declare_dependency(
  include_directories: [include_directories('.'), include_directories(join_paths('..', '..', 'lib'))],
  link_with: draw_lib,
  dependencies: [eina],
)