meson: enable and fix build of ddrag+gdi engines for evas

there are some specific defines and cflags needed for these builds
to succeed and provide the expected functionality
Depends on D8733

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8734
devs/lauromoura/pin-unpin
Mike Blumenkrantz 4 years ago committed by Marcel Hollerbach
parent c1b638dfa4
commit 4e67aae489
  1. 2
      header_checks/meson.build
  2. 7
      src/modules/evas/engines/meson.build
  3. 7
      src/modules/evas/engines/software_ddraw/meson.build
  4. 4
      src/modules/evas/engines/software_gdi/meson.build

@ -231,4 +231,6 @@ config_h.set('SIZEOF_LONG', cc.sizeof('long'))
if sys_windows == true
config_h.set('HAVE_DLSYM', '1')
config_h.set('HAVE_NOTIFY_WIN32', '1')
config_h.set10('HAVE_WINDOWS_H', true)
config_h.set10('HAVE_DDRAW_H', true)
endif

@ -6,6 +6,13 @@ engines = [
['wayland_shm', ['wl']],
]
if sys_windows == true
engines += [
['software_ddraw', []],
['software_gdi', []],
]
endif
if get_option('opengl') != 'none'
engines += [
['gl_generic', []],

@ -1,17 +1,16 @@
engine_src = files([
'Evas_Engine_Software_DDraw.h',
'evas_engine.c',
'evas_engine.h',
'evas_outbuf.c',
'evas_ddraw_buffer.c',
'evas_ddraw_main.c',
'evas_ddraw_main.cpp',
])
engine_deps = []
engine_deps = [cc.find_library('ddraw')]
if get_option('evas-modules') == 'shared'
shared_module(mod_full_name, engine_src,
include_directories : config_dir + [engine_include_dir],
cpp_args: ['-fno-rtti', '-fno-exceptions'],
dependencies : [eina, evas] + engine_deps,
install : true,
install_dir : mod_install_dir,

@ -1,13 +1,11 @@
engine_src = files([
'Evas_Engine_Software_Gdi.h',
'evas_engine.c',
'evas_engine.h',
'evas_outbuf.c',
'evas_gdi_buffer.c',
'evas_gdi_main.c',
])
engine_deps = []
engine_deps = [cc.find_library('gdi32')]
if get_option('evas-modules') == 'shared'
shared_module(mod_full_name, engine_src,

Loading…
Cancel
Save