add_global_arguments(dev_cflags, language: 'c')
add_global_arguments(dev_cflags, language: 'cpp')
-
foreach lang : ['c', 'objc', 'cpp']
add_global_arguments('-DHAVE_CONFIG_H=1', language: lang)
add_global_arguments('-D_GNU_SOURCE=1', language: lang)
#join_paths('shader','evas_gl_shaders.x'),
])
+engine_src_gl_thread = files([
+ 'evas_gl_thread.h',
+ 'evas_gl_thread.c',
+ 'evas_gl_thread_egl.h',
+ 'evas_gl_thread_egl.c',
+ 'evas_gl_thread_glx.h',
+ 'evas_gl_thread_glx.c',
+ 'evas_gl_thread_gl.h',
+ 'evas_gl_thread_gl.c',
+])
+
+engine_src += engine_src_gl_thread
+
engine_deps = [gl_deps]
if get_option('evas-modules') == 'shared' and not evas_force_static.contains(engine)
'-gchd', '@INPUT@'])
endforeach
-engine_deps = [gl_common]
+engine_deps = [gl_deps, gl_common]
engine_include_dir = include_directories(join_paths('..','software_generic'))
dependencies : [eina, evas_pre] + engine_deps + [software_generic],
install : true,
install_dir : mod_install_dir,
+ c_args: ['-DEVAS_GL_RENDER_THREAD_COMPILE_FOR_GL_GENERIC',],
name_suffix : sys_mod_extension
)
module_files += join_paths(mod_install_dir, 'lib'+mod_full_name + '.' + sys_mod_extension)
'Evas_Engine_GL_Tbm.h'
]
-engine_deps = [gl_deps, libtbm]
+engine_deps = [gl_deps, gl_common, libtbm]
engine_include_dir = include_directories(join_paths('..','software_generic'))
message('WKWK2 gl_tbm build')
if get_option('evas-modules') == 'shared' and not evas_force_static.contains(engine)
'evas_x_main.c',
])
+engine_src += engine_src_gl_thread
+
engine_deps = [ecore_x_deps, gl_deps]
if get_option('evas-modules') == 'shared' and not evas_force_static.contains(engine)
'evas_engine.h',
'evas_wl_main.c'
])
+engine_src += engine_src_gl_thread
-engine_deps = [ecore_wl2, dependency('wayland-egl'), gl_deps]
+engine_deps = [ecore_wl2, dependency('wayland-egl'), dependency('wayland-client'), dependency('wayland-egl-tizen'), gl_deps, gl_common]
engine_include_dir = include_directories(join_paths('..','wayland_common'))
endif
#there are a few modules that should NEVER be build as a module but rather be build as static lib and linked in later
-evas_force_static = ['software_generic', 'gl_common', 'buffer']
+evas_force_static = ['software_generic', 'gl_common']
evas_static_list = []
+#<--TIZEN_ONLY
+evas_force_static += [
+ 'buffer',
+ 'gl_generic',
+]
+#-->
+
#fixed dependencies by efl
png = dependency('libpng')
tiff = dependency('libtiff-4')
subdir(join_paths('engines', engine))
if get_option('evas-modules') == 'static' or evas_force_static.contains(engine)
+
+ if engine == 'gl_common'
+ tmp = static_library(mod_full_name, engine_src,
+ include_directories : config_dir + [engine_include_dir],
+ dependencies : [eina, evas_pre] + engine_deps,
+ c_args: ['-DEVAS_GL_RENDER_THREAD_COMPILE_FOR_GL_GENERIC',]
+ )
+ else
tmp = static_library(mod_full_name, engine_src,
include_directories : config_dir + [engine_include_dir],
dependencies : [eina, evas_pre] + engine_deps,
)
+ endif
+
if engine == 'software_generic'
software_generic = declare_dependency(