summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-04-30 15:30:02 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-05-06 17:00:57 +0200
commit4e67aae489e36ba2cb07fb52b0485c5fc5e8bdeb (patch)
treec890112f5e20ff97ac4c2a2be6cf0c9802135dbd
parentc1b638dfa4bcd113a648e952e36d679960403d07 (diff)
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
-rw-r--r--header_checks/meson.build2
-rw-r--r--src/modules/evas/engines/meson.build7
-rw-r--r--src/modules/evas/engines/software_ddraw/meson.build7
-rw-r--r--src/modules/evas/engines/software_gdi/meson.build4
4 files changed, 13 insertions, 7 deletions
diff --git a/header_checks/meson.build b/header_checks/meson.build
index af5ef11149..2844e50f3c 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -231,4 +231,6 @@ config_h.set('SIZEOF_LONG', cc.sizeof('long'))
231if sys_windows == true 231if sys_windows == true
232 config_h.set('HAVE_DLSYM', '1') 232 config_h.set('HAVE_DLSYM', '1')
233 config_h.set('HAVE_NOTIFY_WIN32', '1') 233 config_h.set('HAVE_NOTIFY_WIN32', '1')
234 config_h.set10('HAVE_WINDOWS_H', true)
235 config_h.set10('HAVE_DDRAW_H', true)
234endif 236endif
diff --git a/src/modules/evas/engines/meson.build b/src/modules/evas/engines/meson.build
index bc1da80728..72fe9c567b 100644
--- a/src/modules/evas/engines/meson.build
+++ b/src/modules/evas/engines/meson.build
@@ -6,6 +6,13 @@ engines = [
6 ['wayland_shm', ['wl']], 6 ['wayland_shm', ['wl']],
7] 7]
8 8
9if sys_windows == true
10 engines += [
11 ['software_ddraw', []],
12 ['software_gdi', []],
13 ]
14endif
15
9if get_option('opengl') != 'none' 16if get_option('opengl') != 'none'
10 engines += [ 17 engines += [
11 ['gl_generic', []], 18 ['gl_generic', []],
diff --git a/src/modules/evas/engines/software_ddraw/meson.build b/src/modules/evas/engines/software_ddraw/meson.build
index 2f6f580e3f..404fe7c894 100644
--- a/src/modules/evas/engines/software_ddraw/meson.build
+++ b/src/modules/evas/engines/software_ddraw/meson.build
@@ -1,17 +1,16 @@
1engine_src = files([ 1engine_src = files([
2 'Evas_Engine_Software_DDraw.h',
3 'evas_engine.c', 2 'evas_engine.c',
4 'evas_engine.h',
5 'evas_outbuf.c', 3 'evas_outbuf.c',
6 'evas_ddraw_buffer.c', 4 'evas_ddraw_buffer.c',
7 'evas_ddraw_main.c', 5 'evas_ddraw_main.cpp',
8]) 6])
9 7
10engine_deps = [] 8engine_deps = [cc.find_library('ddraw')]
11 9
12if get_option('evas-modules') == 'shared' 10if get_option('evas-modules') == 'shared'
13 shared_module(mod_full_name, engine_src, 11 shared_module(mod_full_name, engine_src,
14 include_directories : config_dir + [engine_include_dir], 12 include_directories : config_dir + [engine_include_dir],
13 cpp_args: ['-fno-rtti', '-fno-exceptions'],
15 dependencies : [eina, evas] + engine_deps, 14 dependencies : [eina, evas] + engine_deps,
16 install : true, 15 install : true,
17 install_dir : mod_install_dir, 16 install_dir : mod_install_dir,
diff --git a/src/modules/evas/engines/software_gdi/meson.build b/src/modules/evas/engines/software_gdi/meson.build
index 63a1c2c232..e492e001e6 100644
--- a/src/modules/evas/engines/software_gdi/meson.build
+++ b/src/modules/evas/engines/software_gdi/meson.build
@@ -1,13 +1,11 @@
1engine_src = files([ 1engine_src = files([
2 'Evas_Engine_Software_Gdi.h',
3 'evas_engine.c', 2 'evas_engine.c',
4 'evas_engine.h',
5 'evas_outbuf.c', 3 'evas_outbuf.c',
6 'evas_gdi_buffer.c', 4 'evas_gdi_buffer.c',
7 'evas_gdi_main.c', 5 'evas_gdi_main.c',
8]) 6])
9 7
10engine_deps = [] 8engine_deps = [cc.find_library('gdi32')]
11 9
12if get_option('evas-modules') == 'shared' 10if get_option('evas-modules') == 'shared'
13 shared_module(mod_full_name, engine_src, 11 shared_module(mod_full_name, engine_src,