aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/engines/gl_sdl
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:29:19 +1000
committerDavid Walter Seikel2013-01-13 17:29:19 +1000
commit07274513e984f0b5544586c74508ccd16e7dcafa (patch)
treeb32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/evas/src/modules/engines/gl_sdl
parentAdded Irrlicht 1.8, but without all the Windows binaries. (diff)
downloadSledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip
SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz
SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2
SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_sdl')
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h24
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/Makefile.am46
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/Makefile.in800
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/evas_engine.c1081
-rw-r--r--libraries/evas/src/modules/engines/gl_sdl/evas_engine.h73
5 files changed, 0 insertions, 2024 deletions
diff --git a/libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h b/libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h
deleted file mode 100644
index 3804aa0..0000000
--- a/libraries/evas/src/modules/engines/gl_sdl/Evas_Engine_GL_SDL.h
+++ /dev/null
@@ -1,24 +0,0 @@
1#ifndef _EVAS_ENGINE_GL_SDL_H
2#define _EVAS_ENGINE_GL_SDL_H
3
4#include <SDL/SDL.h>
5
6typedef struct _Evas_Engine_Info_GL_SDL Evas_Engine_Info_GL_SDL;
7
8struct _Evas_Engine_Info_GL_SDL
9{
10 /* PRIVATE - don't mess with this baby or evas will poke its tongue out */
11 /* at you and make nasty noises */
12 Evas_Engine_Info magic;
13
14 /* engine specific data & parameters it needs to set up */
15 struct {
16 int rotation;
17 int fullscreen : 1;
18 int noframe : 1;
19 } flags;
20
21};
22#endif
23
24
diff --git a/libraries/evas/src/modules/engines/gl_sdl/Makefile.am b/libraries/evas/src/modules/engines/gl_sdl/Makefile.am
deleted file mode 100644
index abdeaf0..0000000
--- a/libraries/evas/src/modules/engines/gl_sdl/Makefile.am
+++ /dev/null
@@ -1,46 +0,0 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I. \
6-I$(top_srcdir)/src/lib \
7-I$(top_srcdir)/src/lib/include \
8-I$(top_srcdir)/src/modules/engines/gl_common \
9@FREETYPE_CFLAGS@ \
10@PIXMAN_CFLAGS@ \
11@EINA_CFLAGS@ \
12@GL_EET_CFLAGS@ \
13@evas_engine_gl_sdl_cflags@
14
15if BUILD_ENGINE_GL_SDL
16
17GL_SDL_SOURCES = \
18evas_engine.c
19
20GL_SDL_LIBADD = @evas_engine_gl_sdl_libs@ $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la
21
22
23includes_HEADERS = Evas_Engine_GL_SDL.h
24includesdir = $(includedir)/evas-@VMAJ@
25
26if !EVAS_STATIC_BUILD_GL_SDL
27
28pkgdir = $(libdir)/evas/modules/engines/gl_sdl/$(MODULE_ARCH)
29pkg_LTLIBRARIES = module.la
30
31module_la_SOURCES = $(GL_SDL_SOURCES)
32module_la_LIBADD = @EINA_LIBS@ $(GL_SDL_LIBADD) $(top_builddir)/src/lib/libevas.la @dlopen_libs@
33module_la_LDFLAGS = -module -avoid-version
34module_la_LIBTOOLFLAGS = --tag=disable-static
35
36else
37
38noinst_LTLIBRARIES = libevas_engine_gl_sdl.la
39
40libevas_engine_gl_sdl_la_SOURCES = $(GL_SDL_SOURCES)
41libevas_engine_gl_sdl_la_LIBADD = $(GL_SDL_LIBADD)
42
43endif
44endif
45
46EXTRA_DIST = evas_engine.h
diff --git a/libraries/evas/src/modules/engines/gl_sdl/Makefile.in b/libraries/evas/src/modules/engines/gl_sdl/Makefile.in
deleted file mode 100644
index 4bc9d59..0000000
--- a/libraries/evas/src/modules/engines/gl_sdl/Makefile.in
+++ /dev/null
@@ -1,800 +0,0 @@
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18
19VPATH = @srcdir@
20pkgdatadir = $(datadir)/@PACKAGE@
21pkgincludedir = $(includedir)/@PACKAGE@
22pkglibdir = $(libdir)/@PACKAGE@
23pkglibexecdir = $(libexecdir)/@PACKAGE@
24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25install_sh_DATA = $(install_sh) -c -m 644
26install_sh_PROGRAM = $(install_sh) -c
27install_sh_SCRIPT = $(install_sh) -c
28INSTALL_HEADER = $(INSTALL_DATA)
29transform = $(program_transform_name)
30NORMAL_INSTALL = :
31PRE_INSTALL = :
32POST_INSTALL = :
33NORMAL_UNINSTALL = :
34PRE_UNINSTALL = :
35POST_UNINSTALL = :
36build_triplet = @build@
37host_triplet = @host@
38subdir = src/modules/engines/gl_sdl
39DIST_COMMON = $(am__includes_HEADERS_DIST) $(srcdir)/Makefile.am \
40 $(srcdir)/Makefile.in
41ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \
43 $(top_srcdir)/m4/efl_coverage.m4 \
44 $(top_srcdir)/m4/efl_doxygen.m4 \
45 $(top_srcdir)/m4/efl_fnmatch.m4 \
46 $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \
47 $(top_srcdir)/m4/evas_check_engine.m4 \
48 $(top_srcdir)/m4/evas_check_loader.m4 \
49 $(top_srcdir)/m4/evas_converter.m4 \
50 $(top_srcdir)/m4/evas_dither.m4 \
51 $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \
52 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
53 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
54 $(top_srcdir)/configure.ac
55am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
56 $(ACLOCAL_M4)
57mkinstalldirs = $(install_sh) -d
58CONFIG_HEADER = $(top_builddir)/config.h
59CONFIG_CLEAN_FILES =
60CONFIG_CLEAN_VPATH_FILES =
61am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
62am__vpath_adj = case $$p in \
63 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
64 *) f=$$p;; \
65 esac;
66am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
67am__install_max = 40
68am__nobase_strip_setup = \
69 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
70am__nobase_strip = \
71 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
72am__nobase_list = $(am__nobase_strip_setup); \
73 for p in $$list; do echo "$$p $$p"; done | \
74 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
75 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
76 if (++n[$$2] == $(am__install_max)) \
77 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
78 END { for (dir in files) print dir, files[dir] }'
79am__base_list = \
80 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
81 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
82am__installdirs = "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"
83LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
84@BUILD_ENGINE_GL_SDL_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la
85@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
86am__libevas_engine_gl_sdl_la_SOURCES_DIST = evas_engine.c
87@BUILD_ENGINE_GL_SDL_TRUE@am__objects_1 = evas_engine.lo
88@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@am_libevas_engine_gl_sdl_la_OBJECTS = $(am__objects_1)
89libevas_engine_gl_sdl_la_OBJECTS = \
90 $(am_libevas_engine_gl_sdl_la_OBJECTS)
91AM_V_lt = $(am__v_lt_$(V))
92am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
93am__v_lt_0 = --silent
94@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@am_libevas_engine_gl_sdl_la_rpath =
95@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
96@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@ $(top_builddir)/src/lib/libevas.la
97am__module_la_SOURCES_DIST = evas_engine.c
98@BUILD_ENGINE_GL_SDL_TRUE@am__objects_2 = module_la-evas_engine.lo
99@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@am_module_la_OBJECTS = $(am__objects_2)
100module_la_OBJECTS = $(am_module_la_OBJECTS)
101module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
102 $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
103 $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@
104@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@am_module_la_rpath = -rpath \
105@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@ $(pkgdir)
106DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
107depcomp = $(SHELL) $(top_srcdir)/depcomp
108am__depfiles_maybe = depfiles
109am__mv = mv -f
110COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
111 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
112LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
113 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
114 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
115 $(AM_CFLAGS) $(CFLAGS)
116AM_V_CC = $(am__v_CC_$(V))
117am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
118am__v_CC_0 = @echo " CC " $@;
119AM_V_at = $(am__v_at_$(V))
120am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
121am__v_at_0 = @
122CCLD = $(CC)
123LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
124 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
125 $(AM_LDFLAGS) $(LDFLAGS) -o $@
126AM_V_CCLD = $(am__v_CCLD_$(V))
127am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
128am__v_CCLD_0 = @echo " CCLD " $@;
129AM_V_GEN = $(am__v_GEN_$(V))
130am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
131am__v_GEN_0 = @echo " GEN " $@;
132SOURCES = $(libevas_engine_gl_sdl_la_SOURCES) $(module_la_SOURCES)
133DIST_SOURCES = $(am__libevas_engine_gl_sdl_la_SOURCES_DIST) \
134 $(am__module_la_SOURCES_DIST)
135am__includes_HEADERS_DIST = Evas_Engine_GL_SDL.h
136HEADERS = $(includes_HEADERS)
137ETAGS = etags
138CTAGS = ctags
139DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
140ACLOCAL = @ACLOCAL@
141ALLOCA = @ALLOCA@
142AMTAR = @AMTAR@
143AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
144AR = @AR@
145AS = @AS@
146AUTOCONF = @AUTOCONF@
147AUTOHEADER = @AUTOHEADER@
148AUTOMAKE = @AUTOMAKE@
149AWK = @AWK@
150CC = @CC@
151CCDEPMODE = @CCDEPMODE@
152CFLAGS = @CFLAGS@
153CHECK_CFLAGS = @CHECK_CFLAGS@
154CHECK_LIBS = @CHECK_LIBS@
155CPP = @CPP@
156CPPFLAGS = @CPPFLAGS@
157CXX = @CXX@
158CXXCPP = @CXXCPP@
159CXXDEPMODE = @CXXDEPMODE@
160CXXFLAGS = @CXXFLAGS@
161CYGPATH_W = @CYGPATH_W@
162DEFS = @DEFS@
163DEPDIR = @DEPDIR@
164DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
165DIRECTFB_LIBS = @DIRECTFB_LIBS@
166DLLTOOL = @DLLTOOL@
167DSYMUTIL = @DSYMUTIL@
168DUMPBIN = @DUMPBIN@
169ECHO_C = @ECHO_C@
170ECHO_N = @ECHO_N@
171ECHO_T = @ECHO_T@
172ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
173ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
174EDB_CFLAGS = @EDB_CFLAGS@
175EDB_LIBS = @EDB_LIBS@
176EDJE_CFLAGS = @EDJE_CFLAGS@
177EDJE_LIBS = @EDJE_LIBS@
178EET_CFLAGS = @EET_CFLAGS@
179EET_LIBS = @EET_LIBS@
180EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
181EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
182EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
183EGREP = @EGREP@
184EINA_CFLAGS = @EINA_CFLAGS@
185EINA_LIBS = @EINA_LIBS@
186EVAS_CFLAGS = @EVAS_CFLAGS@
187EVAS_LIBS = @EVAS_LIBS@
188EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
189EVIL_CFLAGS = @EVIL_CFLAGS@
190EVIL_LIBS = @EVIL_LIBS@
191EXEEXT = @EXEEXT@
192EXOTIC_CFLAGS = @EXOTIC_CFLAGS@
193EXOTIC_LIBS = @EXOTIC_LIBS@
194FGREP = @FGREP@
195FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
196FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
197FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
198FREETYPE_LIBS = @FREETYPE_LIBS@
199FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
200FRIBIDI_LIBS = @FRIBIDI_LIBS@
201GL_EET_CFLAGS = @GL_EET_CFLAGS@
202GL_EET_LIBS = @GL_EET_LIBS@
203GREP = @GREP@
204HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
205HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
206INSTALL = @INSTALL@
207INSTALL_DATA = @INSTALL_DATA@
208INSTALL_PROGRAM = @INSTALL_PROGRAM@
209INSTALL_SCRIPT = @INSTALL_SCRIPT@
210INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
211LD = @LD@
212LDFLAGS = @LDFLAGS@
213LIBOBJS = @LIBOBJS@
214LIBS = @LIBS@
215LIBTOOL = @LIBTOOL@
216LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
217LINEBREAK_LIBS = @LINEBREAK_LIBS@
218LIPO = @LIPO@
219LN_S = @LN_S@
220LTLIBOBJS = @LTLIBOBJS@
221MAKEINFO = @MAKEINFO@
222MKDIR_P = @MKDIR_P@
223MODULE_ARCH = @MODULE_ARCH@
224NM = @NM@
225NMEDIT = @NMEDIT@
226OBJC = @OBJC@
227OBJCDEPMODE = @OBJCDEPMODE@
228OBJCFLAGS = @OBJCFLAGS@
229OBJDUMP = @OBJDUMP@
230OBJEXT = @OBJEXT@
231OTOOL = @OTOOL@
232OTOOL64 = @OTOOL64@
233PACKAGE = @PACKAGE@
234PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
235PACKAGE_NAME = @PACKAGE_NAME@
236PACKAGE_STRING = @PACKAGE_STRING@
237PACKAGE_TARNAME = @PACKAGE_TARNAME@
238PACKAGE_URL = @PACKAGE_URL@
239PACKAGE_VERSION = @PACKAGE_VERSION@
240PATH_SEPARATOR = @PATH_SEPARATOR@
241PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
242PIXMAN_LIBS = @PIXMAN_LIBS@
243PKG_CONFIG = @PKG_CONFIG@
244PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
245PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
246PNG_CFLAGS = @PNG_CFLAGS@
247PNG_LIBS = @PNG_LIBS@
248RANLIB = @RANLIB@
249SDL_CFLAGS = @SDL_CFLAGS@
250SDL_LIBS = @SDL_LIBS@
251SED = @SED@
252SET_MAKE = @SET_MAKE@
253SHELL = @SHELL@
254SHM_OPEN_LINK = @SHM_OPEN_LINK@
255STRIP = @STRIP@
256SVG_CFLAGS = @SVG_CFLAGS@
257SVG_LIBS = @SVG_LIBS@
258VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
259VALGRIND_LIBS = @VALGRIND_LIBS@
260VERSION = @VERSION@
261VMAJ = @VMAJ@
262WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@
263WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@
264XCB_CFLAGS = @XCB_CFLAGS@
265XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
266XCB_GL_LIBS = @XCB_GL_LIBS@
267XCB_LIBS = @XCB_LIBS@
268XEXT_CFLAGS = @XEXT_CFLAGS@
269XEXT_LIBS = @XEXT_LIBS@
270XMKMF = @XMKMF@
271X_CFLAGS = @X_CFLAGS@
272X_EXTRA_LIBS = @X_EXTRA_LIBS@
273X_LIBS = @X_LIBS@
274X_PRE_LIBS = @X_PRE_LIBS@
275abs_builddir = @abs_builddir@
276abs_srcdir = @abs_srcdir@
277abs_top_builddir = @abs_top_builddir@
278abs_top_srcdir = @abs_top_srcdir@
279ac_ct_CC = @ac_ct_CC@
280ac_ct_CXX = @ac_ct_CXX@
281ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
282ac_ct_OBJC = @ac_ct_OBJC@
283altivec_cflags = @altivec_cflags@
284am__include = @am__include@
285am__leading_dot = @am__leading_dot@
286am__quote = @am__quote@
287am__tar = @am__tar@
288am__untar = @am__untar@
289bindir = @bindir@
290build = @build@
291build_alias = @build_alias@
292build_cpu = @build_cpu@
293build_os = @build_os@
294build_vendor = @build_vendor@
295builddir = @builddir@
296datadir = @datadir@
297datarootdir = @datarootdir@
298dlopen_libs = @dlopen_libs@
299docdir = @docdir@
300dvidir = @dvidir@
301edje_cc = @edje_cc@
302efl_doxygen = @efl_doxygen@
303efl_have_doxygen = @efl_have_doxygen@
304evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
305evas_engine_buffer_libs = @evas_engine_buffer_libs@
306evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
307evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
308evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
309evas_engine_directfb_libs = @evas_engine_directfb_libs@
310evas_engine_fb_cflags = @evas_engine_fb_cflags@
311evas_engine_fb_libs = @evas_engine_fb_libs@
312evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
313evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
314evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
315evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
316evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
317evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
318evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
319evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
320evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
321evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
322evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
323evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
324evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
325evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
326evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
327evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
328evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
329evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
330evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
331evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
332evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
333evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
334evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
335evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
336evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
337evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
338evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
339evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
340evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
341evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@
342evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@
343evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@
344evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@
345evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
346evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
347evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
348evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
349evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
350evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
351evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
352evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
353evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
354evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
355evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
356evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
357evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
358evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
359evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
360evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
361evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
362evas_image_loader_png_libs = @evas_image_loader_png_libs@
363evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
364evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
365evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
366evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
367evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
368evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
369evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
370evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
371evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
372evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
373evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
374evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
375exec_prefix = @exec_prefix@
376have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
377have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
378have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
379have_evas_engine_software_x11 = @have_evas_engine_software_x11@
380have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
381have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
382have_lcov = @have_lcov@
383host = @host@
384host_alias = @host_alias@
385host_cpu = @host_cpu@
386host_os = @host_os@
387host_vendor = @host_vendor@
388htmldir = @htmldir@
389includedir = @includedir@
390infodir = @infodir@
391install_sh = @install_sh@
392libdir = @libdir@
393libexecdir = @libexecdir@
394localedir = @localedir@
395localstatedir = @localstatedir@
396lt_ECHO = @lt_ECHO@
397lt_enable_auto_import = @lt_enable_auto_import@
398mandir = @mandir@
399mkdir_p = @mkdir_p@
400oldincludedir = @oldincludedir@
401pdfdir = @pdfdir@
402pkgconfig_requires_private = @pkgconfig_requires_private@
403prefix = @prefix@
404program_transform_name = @program_transform_name@
405psdir = @psdir@
406pthread_cflags = @pthread_cflags@
407pthread_libs = @pthread_libs@
408release_info = @release_info@
409requirement_evas = @requirement_evas@
410sbindir = @sbindir@
411sharedstatedir = @sharedstatedir@
412srcdir = @srcdir@
413sysconfdir = @sysconfdir@
414target_alias = @target_alias@
415top_build_prefix = @top_build_prefix@
416top_builddir = @top_builddir@
417top_srcdir = @top_srcdir@
418version_info = @version_info@
419MAINTAINERCLEANFILES = Makefile.in
420AM_CPPFLAGS = \
421-I. \
422-I$(top_srcdir)/src/lib \
423-I$(top_srcdir)/src/lib/include \
424-I$(top_srcdir)/src/modules/engines/gl_common \
425@FREETYPE_CFLAGS@ \
426@PIXMAN_CFLAGS@ \
427@EINA_CFLAGS@ \
428@GL_EET_CFLAGS@ \
429@evas_engine_gl_sdl_cflags@
430
431@BUILD_ENGINE_GL_SDL_TRUE@GL_SDL_SOURCES = \
432@BUILD_ENGINE_GL_SDL_TRUE@evas_engine.c
433
434@BUILD_ENGINE_GL_SDL_TRUE@GL_SDL_LIBADD = @evas_engine_gl_sdl_libs@ $(top_builddir)/src/modules/engines/gl_common/libevas_engine_gl_common.la
435@BUILD_ENGINE_GL_SDL_TRUE@includes_HEADERS = Evas_Engine_GL_SDL.h
436@BUILD_ENGINE_GL_SDL_TRUE@includesdir = $(includedir)/evas-@VMAJ@
437@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@pkgdir = $(libdir)/evas/modules/engines/gl_sdl/$(MODULE_ARCH)
438@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@pkg_LTLIBRARIES = module.la
439@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_SOURCES = $(GL_SDL_SOURCES)
440@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LIBADD = @EINA_LIBS@ $(GL_SDL_LIBADD) $(top_builddir)/src/lib/libevas.la @dlopen_libs@
441@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LDFLAGS = -module -avoid-version
442@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static
443@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@noinst_LTLIBRARIES = libevas_engine_gl_sdl.la
444@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_SOURCES = $(GL_SDL_SOURCES)
445@BUILD_ENGINE_GL_SDL_TRUE@@EVAS_STATIC_BUILD_GL_SDL_TRUE@libevas_engine_gl_sdl_la_LIBADD = $(GL_SDL_LIBADD)
446EXTRA_DIST = evas_engine.h
447all: all-am
448
449.SUFFIXES:
450.SUFFIXES: .c .lo .o .obj
451$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/engines/gl_sdl/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --gnu src/modules/engines/gl_sdl/Makefile
463.PRECIOUS: Makefile
464Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
471 esac;
472
473$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476$(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478$(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480$(am__aclocal_m4_deps):
481
482clean-noinstLTLIBRARIES:
483 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
484 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
485 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
486 test "$$dir" != "$$p" || dir=.; \
487 echo "rm -f \"$${dir}/so_locations\""; \
488 rm -f "$${dir}/so_locations"; \
489 done
490install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
491 @$(NORMAL_INSTALL)
492 test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
493 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
494 list2=; for p in $$list; do \
495 if test -f $$p; then \
496 list2="$$list2 $$p"; \
497 else :; fi; \
498 done; \
499 test -z "$$list2" || { \
500 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
501 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
502 }
503
504uninstall-pkgLTLIBRARIES:
505 @$(NORMAL_UNINSTALL)
506 @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
507 for p in $$list; do \
508 $(am__strip_dir) \
509 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \
510 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \
511 done
512
513clean-pkgLTLIBRARIES:
514 -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES)
515 @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \
516 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
517 test "$$dir" != "$$p" || dir=.; \
518 echo "rm -f \"$${dir}/so_locations\""; \
519 rm -f "$${dir}/so_locations"; \
520 done
521libevas_engine_gl_sdl.la: $(libevas_engine_gl_sdl_la_OBJECTS) $(libevas_engine_gl_sdl_la_DEPENDENCIES)
522 $(AM_V_CCLD)$(LINK) $(am_libevas_engine_gl_sdl_la_rpath) $(libevas_engine_gl_sdl_la_OBJECTS) $(libevas_engine_gl_sdl_la_LIBADD) $(LIBS)
523module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
524 $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
525
526mostlyclean-compile:
527 -rm -f *.$(OBJEXT)
528
529distclean-compile:
530 -rm -f *.tab.c
531
532@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_engine.Plo@am__quote@
533@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_engine.Plo@am__quote@
534
535.c.o:
536@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
537@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
538@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
539@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
540@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
541@am__fastdepCC_FALSE@ $(COMPILE) -c $<
542
543.c.obj:
544@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
545@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
546@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
547@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
548@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
549@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
550
551.c.lo:
552@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
553@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
554@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
555@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
556@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
557@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
558
559module_la-evas_engine.lo: evas_engine.c
560@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_engine.lo -MD -MP -MF $(DEPDIR)/module_la-evas_engine.Tpo -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c
561@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_engine.Tpo $(DEPDIR)/module_la-evas_engine.Plo
562@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
563@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_engine.c' object='module_la-evas_engine.lo' libtool=yes @AMDEPBACKSLASH@
564@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
565@am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c
566
567mostlyclean-libtool:
568 -rm -f *.lo
569
570clean-libtool:
571 -rm -rf .libs _libs
572install-includesHEADERS: $(includes_HEADERS)
573 @$(NORMAL_INSTALL)
574 test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)"
575 @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \
576 for p in $$list; do \
577 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
578 echo "$$d$$p"; \
579 done | $(am__base_list) | \
580 while read files; do \
581 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \
582 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \
583 done
584
585uninstall-includesHEADERS:
586 @$(NORMAL_UNINSTALL)
587 @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \
588 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
589 test -n "$$files" || exit 0; \
590 echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \
591 cd "$(DESTDIR)$(includesdir)" && rm -f $$files
592
593ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
594 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
595 unique=`for i in $$list; do \
596 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
597 done | \
598 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
599 END { if (nonempty) { for (i in files) print i; }; }'`; \
600 mkid -fID $$unique
601tags: TAGS
602
603TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
604 $(TAGS_FILES) $(LISP)
605 set x; \
606 here=`pwd`; \
607 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
608 unique=`for i in $$list; do \
609 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
610 done | \
611 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
612 END { if (nonempty) { for (i in files) print i; }; }'`; \
613 shift; \
614 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
615 test -n "$$unique" || unique=$$empty_fix; \
616 if test $$# -gt 0; then \
617 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
618 "$$@" $$unique; \
619 else \
620 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
621 $$unique; \
622 fi; \
623 fi
624ctags: CTAGS
625CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
626 $(TAGS_FILES) $(LISP)
627 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
628 unique=`for i in $$list; do \
629 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
630 done | \
631 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
632 END { if (nonempty) { for (i in files) print i; }; }'`; \
633 test -z "$(CTAGS_ARGS)$$unique" \
634 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
635 $$unique
636
637GTAGS:
638 here=`$(am__cd) $(top_builddir) && pwd` \
639 && $(am__cd) $(top_srcdir) \
640 && gtags -i $(GTAGS_ARGS) "$$here"
641
642distclean-tags:
643 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
644
645distdir: $(DISTFILES)
646 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
647 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
648 list='$(DISTFILES)'; \
649 dist_files=`for file in $$list; do echo $$file; done | \
650 sed -e "s|^$$srcdirstrip/||;t" \
651 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
652 case $$dist_files in \
653 */*) $(MKDIR_P) `echo "$$dist_files" | \
654 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
655 sort -u` ;; \
656 esac; \
657 for file in $$dist_files; do \
658 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
659 if test -d $$d/$$file; then \
660 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
661 if test -d "$(distdir)/$$file"; then \
662 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
663 fi; \
664 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
665 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
666 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
667 fi; \
668 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
669 else \
670 test -f "$(distdir)/$$file" \
671 || cp -p $$d/$$file "$(distdir)/$$file" \
672 || exit 1; \
673 fi; \
674 done
675check-am: all-am
676check: check-am
677all-am: Makefile $(LTLIBRARIES) $(HEADERS)
678installdirs:
679 for dir in "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"; do \
680 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
681 done
682install: install-am
683install-exec: install-exec-am
684install-data: install-data-am
685uninstall: uninstall-am
686
687install-am: all-am
688 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
689
690installcheck: installcheck-am
691install-strip:
692 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
693 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
694 `test -z '$(STRIP)' || \
695 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
696mostlyclean-generic:
697
698clean-generic:
699
700distclean-generic:
701 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
702 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
703
704maintainer-clean-generic:
705 @echo "This command is intended for maintainers to use"
706 @echo "it deletes files that may require special tools to rebuild."
707 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
708clean: clean-am
709
710clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
711 clean-pkgLTLIBRARIES mostlyclean-am
712
713distclean: distclean-am
714 -rm -rf ./$(DEPDIR)
715 -rm -f Makefile
716distclean-am: clean-am distclean-compile distclean-generic \
717 distclean-tags
718
719dvi: dvi-am
720
721dvi-am:
722
723html: html-am
724
725html-am:
726
727info: info-am
728
729info-am:
730
731install-data-am: install-includesHEADERS install-pkgLTLIBRARIES
732
733install-dvi: install-dvi-am
734
735install-dvi-am:
736
737install-exec-am:
738
739install-html: install-html-am
740
741install-html-am:
742
743install-info: install-info-am
744
745install-info-am:
746
747install-man:
748
749install-pdf: install-pdf-am
750
751install-pdf-am:
752
753install-ps: install-ps-am
754
755install-ps-am:
756
757installcheck-am:
758
759maintainer-clean: maintainer-clean-am
760 -rm -rf ./$(DEPDIR)
761 -rm -f Makefile
762maintainer-clean-am: distclean-am maintainer-clean-generic
763
764mostlyclean: mostlyclean-am
765
766mostlyclean-am: mostlyclean-compile mostlyclean-generic \
767 mostlyclean-libtool
768
769pdf: pdf-am
770
771pdf-am:
772
773ps: ps-am
774
775ps-am:
776
777uninstall-am: uninstall-includesHEADERS uninstall-pkgLTLIBRARIES
778
779.MAKE: install-am install-strip
780
781.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
782 clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \
783 ctags distclean distclean-compile distclean-generic \
784 distclean-libtool distclean-tags distdir dvi dvi-am html \
785 html-am info info-am install install-am install-data \
786 install-data-am install-dvi install-dvi-am install-exec \
787 install-exec-am install-html install-html-am \
788 install-includesHEADERS install-info install-info-am \
789 install-man install-pdf install-pdf-am install-pkgLTLIBRARIES \
790 install-ps install-ps-am install-strip installcheck \
791 installcheck-am installdirs maintainer-clean \
792 maintainer-clean-generic mostlyclean mostlyclean-compile \
793 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
794 tags uninstall uninstall-am uninstall-includesHEADERS \
795 uninstall-pkgLTLIBRARIES
796
797
798# Tell versions [3.59,3.63) of GNU make to not export all variables.
799# Otherwise a system limit (for SysV at least) may be exceeded.
800.NOEXPORT:
diff --git a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.c b/libraries/evas/src/modules/engines/gl_sdl/evas_engine.c
deleted file mode 100644
index 46588d9..0000000
--- a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.c
+++ /dev/null
@@ -1,1081 +0,0 @@
1#include "evas_common.h" /* Also includes international specific stuff */
2#include "evas_engine.h"
3
4static void* _sdl_output_setup (int w, int h, int fullscreen, int noframe);
5
6int _evas_engine_GL_SDL_log_dom = -1;
7/* function tables - filled in later (func and parent func) */
8static Evas_Func func, pfunc;
9
10static void *
11eng_info(Evas *e)
12{
13 Evas_Engine_Info_GL_SDL *info;
14
15 info = calloc(1, sizeof(Evas_Engine_Info_GL_SDL));
16 if (!info) return NULL;
17 info->magic.magic = rand();
18 return info;
19}
20
21static void
22eng_info_free(Evas *e __UNUSED__, void *info)
23{
24 Evas_Engine_Info_GL_SDL *in;
25 in = (Evas_Engine_Info_GL_SDL *)info;
26 free(in);
27}
28
29static int
30eng_setup(Evas *e, void *in)
31{
32 Render_Engine *re;
33 Evas_Engine_Info_GL_SDL *info;
34
35 info = (Evas_Engine_Info_GL_SDL *)in;
36
37 SDL_Init(SDL_INIT_NOPARACHUTE);
38
39 if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
40 {
41 ERR("SDL_Init failed with %s", SDL_GetError());
42 SDL_Quit();
43 return 0;
44 }
45
46 re = _sdl_output_setup(e->output.w, e->output.h,
47 info->flags.fullscreen,
48 info->flags.noframe);
49 re->info = info;
50 e->engine.data.output = re;
51 if (!e->engine.data.output)
52 return 0;
53
54 e->engine.func = &func;
55 e->engine.data.context = e->engine.func->context_new(e->engine.data.output);
56
57 return 1;
58}
59
60static void
61eng_output_free(void *data)
62{
63 Render_Engine *re;
64
65 re = (Render_Engine *)data;
66 evas_gl_common_context_free(re->gl_context);
67 free(re);
68
69 evas_common_font_shutdown();
70 evas_common_image_shutdown();
71
72 SDL_QuitSubSystem(SDL_INIT_VIDEO);
73}
74
75static void
76eng_output_resize(void *data, int w, int h)
77{
78 Render_Engine *re;
79 SDL_Surface *surface;
80
81 re = (Render_Engine *)data;
82 re->w = w;
83 re->h = h;
84
85 if(SDL_GetVideoSurface()->flags & SDL_RESIZABLE)
86 {
87 surface = SDL_SetVideoMode(w, h, 32, EVAS_SDL_GL_FLAG
88 | (re->info->flags.fullscreen ? SDL_FULLSCREEN : 0)
89 | (re->info->flags.noframe ? SDL_NOFRAME : 0));
90 if (!surface)
91 {
92 ERR("Unable to change the resolution to : %ix%i", w, h);
93 SDL_Quit();
94 exit(-1);
95 }
96 }
97
98 evas_gl_common_context_resize(re->gl_context, w, h, re->gl_context->rot);
99}
100
101static void
102eng_output_tile_size_set(void *data, int w __UNUSED__, int h __UNUSED__)
103{
104// Render_Engine *re;
105//
106// re = (Render_Engine *)data;
107}
108
109static void
110eng_output_redraws_rect_add(void *data, int x, int y, int w, int h)
111{
112 Render_Engine *re;
113
114 re = (Render_Engine *)data;
115 evas_gl_common_context_resize(re->gl_context, re->w, re->h, re->gl_context->rot);
116 /* smple bounding box */
117 if (!re->draw.redraw)
118 {
119#if 0
120 re->draw.x1 = x;
121 re->draw.y1 = y;
122 re->draw.x2 = x + w - 1;
123 re->draw.y2 = y + h - 1;
124#else
125 re->draw.x1 = 0;
126 re->draw.y1 = 0;
127 re->draw.x2 = re->w - 1;
128 re->draw.y2 = re->h - 1;
129#endif
130 }
131 else
132 {
133 if (x < re->draw.x1) re->draw.x1 = x;
134 if (y < re->draw.y1) re->draw.y1 = y;
135 if ((x + w - 1) > re->draw.x2) re->draw.x2 = x + w - 1;
136 if ((y + h - 1) > re->draw.y2) re->draw.y2 = y + h - 1;
137 }
138 re->draw.redraw = 1;
139}
140
141static void
142eng_output_redraws_rect_del(void *data, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
143{
144// Render_Engine *re;
145//
146// re = (Render_Engine *)data;
147}
148
149static void
150eng_output_redraws_clear(void *data)
151{
152 Render_Engine *re;
153
154 re = (Render_Engine *)data;
155 re->draw.redraw = 0;
156// INF("GL: finish update cycle!");
157}
158
159/* at least the nvidia drivers are so abysmal that copying from the backbuffer
160 * to the front using glCopyPixels() that you literally can WATCH it draw the
161 * pixels slowly across the screen with a window update taking multiple
162 * seconds - so workaround by doing a full buffer render as frankly GL isn't
163 * up to doing anything that isn't done by quake (etc.)
164 */
165#define SLOW_GL_COPY_RECT 1
166/* vsync games - not for now though */
167//#define VSYNC_TO_SCREEN 1
168
169static void *
170eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, int *cx, int *cy, int *cw, int *ch)
171{
172 Render_Engine *re;
173
174 re = (Render_Engine *)data;
175 evas_gl_common_context_flush(re->gl_context);
176 evas_gl_common_context_newframe(re->gl_context);
177 /* get the upate rect surface - return engine data as dummy */
178 if (!re->draw.redraw)
179 {
180// printf("GL: NO updates!\n");
181 return NULL;
182 }
183// printf("GL: update....!\n");
184#ifdef SLOW_GL_COPY_RECT
185 /* if any update - just return the whole canvas - works with swap
186 * buffers then */
187 if (x) *x = 0;
188 if (y) *y = 0;
189 if (w) *w = re->w;
190 if (h) *h = re->h;
191 if (cx) *cx = 0;
192 if (cy) *cy = 0;
193 if (cw) *cw = re->w;
194 if (ch) *ch = re->h;
195#else
196 /* 1 update - INCREDIBLY SLOW if combined with swap_rect in flush. a gl
197 * problem where there just is no hardware path for somethnig that
198 * obviously SHOULD be there */
199 /* only 1 update to minimise gl context games and rendering multiple update
200 * regions as evas does with other engines
201 */
202 if (x) *x = re->draw.x1;
203 if (y) *y = re->draw.y1;
204 if (w) *w = re->draw.x2 - re->draw.x1 + 1;
205 if (h) *h = re->draw.y2 - re->draw.y1 + 1;
206 if (cx) *cx = re->draw.x1;
207 if (cy) *cy = re->draw.y1;
208 if (cw) *cw = re->draw.x2 - re->draw.x1 + 1;
209 if (ch) *ch = re->draw.y2 - re->draw.y1 + 1;
210#endif
211// clear buffer. only needed for dest alpha
212// glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
213// glClear(GL_COLOR_BUFFER_BIT);
214//x// printf("frame -> new\n");
215 return re->gl_context->def_surface;
216}
217
218static void
219eng_output_redraws_next_update_push(void *data, void *surface __UNUSED__, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
220{
221 Render_Engine *re;
222
223 re = (Render_Engine *)data;
224 /* put back update surface.. in this case just unflag redraw */
225 re->draw.redraw = 0;
226 re->draw.drew = 1;
227 evas_gl_common_context_flush(re->gl_context);
228//x// printf("frame -> push\n");
229}
230
231static void
232eng_output_flush(void *data)
233{
234 Render_Engine *re;
235
236 re = (Render_Engine *)data;
237 if (!re->draw.drew) return;
238//x// printf("frame -> flush\n");
239 re->draw.drew = 0;
240
241#if 0
242#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
243// glFlush();
244 eglSwapBuffers(re->egl_disp, re->egl_surface[0]);
245#else
246 glXSwapBuffers(re->win->disp, re->win);
247#endif
248#else
249 SDL_GL_SwapBuffers();
250#endif
251}
252
253static void
254eng_output_idle_flush(void *data)
255{
256 Render_Engine *re;
257
258 re = (Render_Engine *)data;
259}
260
261static void
262eng_output_dump(void *data)
263{
264 Render_Engine *re;
265
266 re = (Render_Engine *)data;
267 evas_common_image_image_all_unload();
268 evas_common_font_font_all_unload();
269 evas_gl_common_image_all_unload(re->gl_context);
270}
271
272static void
273eng_context_cutout_add(void *data, void *context, int x, int y, int w, int h)
274{
275// Render_Engine *re;
276//
277// re = (Render_Engine *)data;
278// re->gl_context->dc = context;
279 evas_common_draw_context_add_cutout(context, x, y, w, h);
280}
281
282static void
283eng_context_cutout_clear(void *data, void *context)
284{
285// Render_Engine *re;
286//
287// re = (Render_Engine *)data;
288// re->gl_context->dc = context;
289 evas_common_draw_context_clear_cutouts(context);
290}
291
292static void
293eng_rectangle_draw(void *data, void *context, void *surface, int x, int y, int w, int h)
294{
295 Render_Engine *re;
296
297 re = (Render_Engine *)data;
298 evas_gl_common_context_target_surface_set(re->gl_context, surface);
299 re->gl_context->dc = context;
300 evas_gl_common_rect_draw(re->gl_context, x, y, w, h);
301}
302
303static void
304eng_line_draw(void *data, void *context, void *surface, int x1, int y1, int x2, int y2)
305{
306 Render_Engine *re;
307
308 re = (Render_Engine *)data;
309 evas_gl_common_context_target_surface_set(re->gl_context, surface);
310 re->gl_context->dc = context;
311 evas_gl_common_line_draw(re->gl_context, x1, y1, x2, y2);
312}
313
314static void *
315eng_polygon_point_add(void *data, void *context __UNUSED__, void *polygon, int x, int y)
316{
317 Render_Engine *re;
318
319 re = (Render_Engine *)data;
320 return evas_gl_common_poly_point_add(polygon, x, y);
321}
322
323static void *
324eng_polygon_points_clear(void *data, void *context __UNUSED__, void *polygon)
325{
326 Render_Engine *re;
327
328 re = (Render_Engine *)data;
329 return evas_gl_common_poly_points_clear(polygon);
330}
331
332static void
333eng_polygon_draw(void *data, void *context, void *surface, void *polygon, int x, int y)
334{
335 Render_Engine *re;
336
337 re = (Render_Engine *)data;
338 evas_gl_common_context_target_surface_set(re->gl_context, surface);
339 re->gl_context->dc = context;
340 evas_gl_common_poly_draw(re->gl_context, polygon, x, y);
341}
342
343static int
344eng_image_alpha_get(void *data, void *image)
345{
346// Render_Engine *re;
347 Evas_GL_Image *im;
348
349// re = (Render_Engine *)data;
350 if (!image) return 1;
351 im = image;
352 return im->alpha;
353}
354
355static int
356eng_image_colorspace_get(void *data, void *image)
357{
358// Render_Engine *re;
359 Evas_GL_Image *im;
360
361// re = (Render_Engine *)data;
362 if (!image) return EVAS_COLORSPACE_ARGB8888;
363 im = image;
364 return im->cs.space;
365}
366
367static void *
368eng_image_alpha_set(void *data, void *image, int has_alpha)
369{
370 Render_Engine *re;
371 Evas_GL_Image *im;
372
373 re = (Render_Engine *)data;
374 if (!image) return NULL;
375 im = image;
376 if (im->native.data)
377 {
378 im->alpha = has_alpha;
379 return image;
380 }
381 /* FIXME: can move to gl_common */
382 if (im->cs.space != EVAS_COLORSPACE_ARGB8888) return im;
383 if ((has_alpha) && (im->im->cache_entry.flags.alpha)) return image;
384 else if ((!has_alpha) && (!im->im->cache_entry.flags.alpha)) return image;
385 if (im->references > 1)
386 {
387 Evas_GL_Image *im_new;
388
389 im_new = evas_gl_common_image_new_from_copied_data(im->gc, im->im->cache_entry.w, im->im->cache_entry.h, im->im->image.data,
390 eng_image_alpha_get(data, image),
391 eng_image_colorspace_get(data, image));
392 if (!im_new) return im;
393 evas_gl_common_image_free(im);
394 im = im_new;
395 }
396 else
397 evas_gl_common_image_dirty(im, 0, 0, 0, 0);
398 im->im->cache_entry.flags.alpha = has_alpha ? 1 : 0;
399 return image;
400}
401
402static void *
403eng_image_border_set(void *data, void *image, int l __UNUSED__, int r __UNUSED__, int t __UNUSED__, int b __UNUSED__)
404{
405// Render_Engine *re;
406//
407// re = (Render_Engine *)data;
408 return image;
409}
410
411static void
412eng_image_border_get(void *data, void *image __UNUSED__, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__)
413{
414// Render_Engine *re;
415//
416// re = (Render_Engine *)data;
417}
418
419static char *
420eng_image_comment_get(void *data, void *image, char *key __UNUSED__)
421{
422// Render_Engine *re;
423 Evas_GL_Image *im;
424
425// re = (Render_Engine *)data;
426 if (!image) return NULL;
427 im = image;
428 if (!im->im) return NULL;
429 return im->im->info.comment;
430}
431
432static char *
433eng_image_format_get(void *data, void *image)
434{
435// Render_Engine *re;
436 Evas_GL_Image *im;
437
438// re = (Render_Engine *)data;
439 im = image;
440 return NULL;
441}
442
443static void
444eng_image_colorspace_set(void *data, void *image, int cspace)
445{
446 Render_Engine *re;
447 Evas_GL_Image *im;
448
449 re = (Render_Engine *)data;
450 if (!image) return;
451 im = image;
452 if (im->native.data) return;
453 /* FIXME: can move to gl_common */
454 if (im->cs.space == cspace) return;
455 evas_cache_image_colorspace(&im->im->cache_entry, cspace);
456 switch (cspace)
457 {
458 case EVAS_COLORSPACE_ARGB8888:
459 if (im->cs.data)
460 {
461 if (!im->cs.no_free) free(im->cs.data);
462 im->cs.data = NULL;
463 im->cs.no_free = 0;
464 }
465 break;
466 case EVAS_COLORSPACE_YCBCR422P601_PL:
467 case EVAS_COLORSPACE_YCBCR422P709_PL:
468 case EVAS_COLORSPACE_YCBCR422601_PL:
469 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
470 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
471 if (im->tex) evas_gl_common_texture_free(im->tex);
472 im->tex = NULL;
473 if (im->cs.data)
474 {
475 if (!im->cs.no_free) free(im->cs.data);
476 }
477 im->cs.data = calloc(1, im->im->cache_entry.h * sizeof(unsigned char *) * 2);
478 im->cs.no_free = 0;
479 break;
480 default:
481 abort();
482 break;
483 }
484 im->cs.space = cspace;
485}
486
487/////////////////////////////////////////////////////////////////////////
488//
489//
490typedef struct _Native Native;
491
492struct _Native
493{
494 Evas_Native_Surface ns;
495
496#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
497 EGLSurface egl_surface;
498#endif
499};
500
501static void
502_native_bind_cb(void *data, void *image)
503{
504}
505
506static void
507_native_unbind_cb(void *data, void *image)
508{
509}
510
511static void
512_native_free_cb(void *data, void *image)
513{
514}
515
516static void *
517eng_image_native_set(void *data, void *image, void *native)
518{
519 return NULL;
520}
521
522static void *
523eng_image_native_get(void *data, void *image)
524{
525 return NULL;
526}
527
528//
529//
530/////////////////////////////////////////////////////////////////////////
531
532static void *
533eng_image_load(void *data, const char *file, const char *key, int *error, Evas_Image_Load_Opts *lo)
534{
535 Render_Engine *re;
536
537 re = (Render_Engine *)data;
538 *error = EVAS_LOAD_ERROR_NONE;
539 return evas_gl_common_image_load(re->gl_context, file, key, lo, error);
540}
541
542static void *
543eng_image_new_from_data(void *data, int w, int h, DATA32 *image_data, int alpha, int cspace)
544{
545 Render_Engine *re;
546
547 re = (Render_Engine *)data;
548 return evas_gl_common_image_new_from_data(re->gl_context, w, h, image_data, alpha, cspace);
549}
550
551static void *
552eng_image_new_from_copied_data(void *data, int w, int h, DATA32 *image_data, int alpha, int cspace)
553{
554 Render_Engine *re;
555
556 re = (Render_Engine *)data;
557 return evas_gl_common_image_new_from_copied_data(re->gl_context, w, h, image_data, alpha, cspace);
558}
559
560static void
561eng_image_free(void *data, void *image)
562{
563 Render_Engine *re;
564
565 re = (Render_Engine *)data;
566 if (!image) return;
567 evas_gl_common_image_free(image);
568}
569
570static void
571eng_image_size_get(void *data, void *image, int *w, int *h)
572{
573// Render_Engine *re;
574//
575// re = (Render_Engine *)data;
576 if (!image)
577 {
578 *w = 0;
579 *h = 0;
580 return;
581 }
582 if (w) *w = ((Evas_GL_Image *)image)->w;
583 if (h) *h = ((Evas_GL_Image *)image)->h;
584}
585
586static void *
587eng_image_size_set(void *data, void *image, int w, int h)
588{
589 Render_Engine *re;
590 Evas_GL_Image *im = image;
591 Evas_GL_Image *im_old;
592
593 re = (Render_Engine *)data;
594 if (!im) return NULL;
595 if (im->native.data)
596 {
597 im->w = w;
598 im->h = h;
599 return image;
600 }
601 im_old = image;
602
603 switch (eng_image_colorspace_get(data, image))
604 {
605 case EVAS_COLORSPACE_YCBCR422P601_PL:
606 case EVAS_COLORSPACE_YCBCR422P709_PL:
607 case EVAS_COLORSPACE_YCBCR422601_PL:
608 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
609 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
610 w &= ~0x1;
611 break;
612 }
613
614 if ((im_old) && (im_old->im->cache_entry.w == w) && (im_old->im->cache_entry.h == h))
615 return image;
616 if (im_old)
617 {
618 im = evas_gl_common_image_new(re->gl_context, w, h,
619 eng_image_alpha_get(data, image),
620 eng_image_colorspace_get(data, image));
621/*
622 evas_common_load_image_data_from_file(im_old->im);
623 if (im_old->im->image->data)
624 {
625 evas_common_blit_rectangle(im_old->im, im->im, 0, 0, w, h, 0, 0);
626 evas_common_cpu_end_opt();
627 }
628 */
629 evas_gl_common_image_free(im_old);
630 }
631 else
632 im = evas_gl_common_image_new(re->gl_context, w, h, 1, EVAS_COLORSPACE_ARGB8888);
633 return im;
634}
635
636static void *
637eng_image_dirty_region(void *data, void *image, int x, int y, int w, int h)
638{
639 Render_Engine *re;
640 Evas_GL_Image *im = image;
641
642 re = (Render_Engine *)data;
643 if (!image) return NULL;
644 if (im->native.data) return image;
645 evas_gl_common_image_dirty(image, x, y, w, h);
646 return image;
647}
648
649static void *
650eng_image_data_get(void *data, void *image, int to_write, DATA32 **image_data, int *err)
651{
652 Render_Engine *re;
653 Evas_GL_Image *im;
654 int error;
655
656 re = (Render_Engine *)data;
657 if (!image)
658 {
659 *image_data = NULL;
660 if (err) *err = EVAS_LOAD_ERROR_GENERIC;
661 return NULL;
662 }
663 im = image;
664 if (im->native.data)
665 {
666 *image_data = NULL;
667 if (err) *err = EVAS_LOAD_ERROR_NONE;
668 return im;
669 }
670 error = evas_cache_image_load_data(&im->im->cache_entry);
671 switch (im->cs.space)
672 {
673 case EVAS_COLORSPACE_ARGB8888:
674 if (to_write)
675 {
676 if (im->references > 1)
677 {
678 Evas_GL_Image *im_new;
679
680 im_new = evas_gl_common_image_new_from_copied_data(im->gc, im->im->cache_entry.w, im->im->cache_entry.h, im->im->image.data,
681 eng_image_alpha_get(data, image),
682 eng_image_colorspace_get(data, image));
683 if (!im_new)
684 {
685 *image_data = NULL;
686 if (err) *err = error;
687 return im;
688 }
689 evas_gl_common_image_free(im);
690 im = im_new;
691 }
692 else
693 evas_gl_common_image_dirty(im, 0, 0, 0, 0);
694 }
695 *image_data = im->im->image.data;
696 break;
697 case EVAS_COLORSPACE_YCBCR422P601_PL:
698 case EVAS_COLORSPACE_YCBCR422P709_PL:
699 case EVAS_COLORSPACE_YCBCR422601_PL:
700 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
701 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
702 *image_data = im->cs.data;
703 break;
704 default:
705 abort();
706 break;
707 }
708 if (err) *err = error;
709 return im;
710}
711
712static void *
713eng_image_data_put(void *data, void *image, DATA32 *image_data)
714{
715 Render_Engine *re;
716 Evas_GL_Image *im, *im2;
717
718 re = (Render_Engine *)data;
719 if (!image) return NULL;
720 im = image;
721 if (im->native.data) return image;
722 switch (im->cs.space)
723 {
724 case EVAS_COLORSPACE_ARGB8888:
725 if (image_data != im->im->image.data)
726 {
727 int w, h;
728
729 w = im->im->cache_entry.w;
730 h = im->im->cache_entry.h;
731 im2 = eng_image_new_from_data(data, w, h, image_data,
732 eng_image_alpha_get(data, image),
733 eng_image_colorspace_get(data, image));
734 if (!im2) return im;
735 evas_gl_common_image_free(im);
736 im = im2;
737 }
738 break;
739 case EVAS_COLORSPACE_YCBCR422P601_PL:
740 case EVAS_COLORSPACE_YCBCR422P709_PL:
741 case EVAS_COLORSPACE_YCBCR422601_PL:
742 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
743 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
744 if (image_data != im->cs.data)
745 {
746 if (im->cs.data)
747 {
748 if (!im->cs.no_free) free(im->cs.data);
749 }
750 im->cs.data = image_data;
751 }
752 break;
753 default:
754 abort();
755 break;
756 }
757 /* hmmm - but if we wrote... why bother? */
758 evas_gl_common_image_dirty(im, 0, 0, 0, 0);
759 return im;
760}
761
762static void
763eng_image_data_preload_request(void *data __UNUSED__, void *image, const void *target)
764{
765 Evas_GL_Image *gim = image;
766 RGBA_Image *im;
767
768 if (!gim) return;
769 if (gim->native.data) return;
770 im = (RGBA_Image *)gim->im;
771 if (!im) return;
772 evas_cache_image_preload_data(&im->cache_entry, target);
773}
774
775static void
776eng_image_data_preload_cancel(void *data __UNUSED__, void *image, const void *target)
777{
778 Evas_GL_Image *gim = image;
779 RGBA_Image *im;
780
781 if (!gim) return;
782 if (gim->native.data) return;
783 im = (RGBA_Image *)gim->im;
784 if (!im) return;
785 evas_cache_image_preload_cancel(&im->cache_entry, target);
786}
787
788static void
789eng_image_draw(void *data, void *context, void *surface, void *image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int smooth)
790{
791 Render_Engine *re;
792
793 re = (Render_Engine *)data;
794 if (!image) return;
795 evas_gl_common_context_target_surface_set(re->gl_context, surface);
796 re->gl_context->dc = context;
797 evas_gl_common_image_draw(re->gl_context, image,
798 src_x, src_y, src_w, src_h,
799 dst_x, dst_y, dst_w, dst_h,
800 smooth);
801}
802
803static void
804eng_image_scale_hint_set(void *data __UNUSED__, void *image, int hint)
805{
806}
807
808static void
809eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
810{
811 Render_Engine *re;
812
813 re = (Render_Engine *)data;
814 evas_gl_common_context_target_surface_set(re->gl_context, surface);
815 re->gl_context->dc = context;
816 evas_gl_common_image_map_draw(re->gl_context, image, npoints, p, smooth, level);
817}
818
819static void *
820eng_image_map_surface_new(void *data __UNUSED__, int w, int h, int alpha)
821{
822 Render_Engine *re;
823
824 re = (Render_Engine *)data;
825 return evas_gl_common_image_surface_new(re->gl_context, w, h, alpha);
826}
827
828static void
829eng_image_map_surface_free(void *data __UNUSED__, void *surface)
830{
831 evas_gl_common_image_free(surface);
832}
833
834static int
835eng_image_scale_hint_get(void *data __UNUSED__, void *image)
836{
837 return EVAS_IMAGE_SCALE_HINT_NONE;
838}
839
840static void
841eng_font_draw(void *data, void *context, void *surface, Evas_Font_Set *font, int x, int y, int w __UNUSED__, int h __UNUSED__, int ow __UNUSED__, int oh __UNUSED__, const Evas_Text_Props *intl_props)
842{
843 Render_Engine *re;
844
845 re = (Render_Engine *)data;
846 evas_gl_common_context_target_surface_set(re->gl_context, surface);
847 re->gl_context->dc = context;
848 {
849 // FIXME: put im into context so we can free it
850 static RGBA_Image *im = NULL;
851
852 if (!im)
853 im = (RGBA_Image *)evas_cache_image_empty(evas_common_image_cache_get());
854 im->cache_entry.w = re->w;
855 im->cache_entry.h = re->h;
856 evas_common_draw_context_font_ext_set(context,
857 re->gl_context,
858 evas_gl_font_texture_new,
859 evas_gl_font_texture_free,
860 evas_gl_font_texture_draw);
861 evas_common_font_draw(im, context, (RGBA_Font *) font, x, y,
862 intl_props);
863 evas_common_draw_context_font_ext_set(context,
864 NULL,
865 NULL,
866 NULL,
867 NULL);
868 }
869}
870
871static Eina_Bool
872eng_canvas_alpha_get(void *data __UNUSED__, void *info __UNUSED__)
873{
874 // FIXME: support ARGB gl targets!!!
875 return EINA_FALSE;
876}
877
878static int
879eng_image_load_error_get(void *data __UNUSED__, void *image)
880{
881 Evas_GL_Image *im;
882
883 if (!image) return EVAS_LOAD_ERROR_NONE;
884 im = image;
885 return im->im->cache_entry.load_error;
886}
887
888
889static int
890module_open(Evas_Module *em)
891{
892 if (!em) return 0;
893 if (!evas_gl_common_module_open()) return 0;
894 /* get whatever engine module we inherit from */
895 if (!_evas_module_engine_inherit(&pfunc, "software_generic")) return 0;
896 if (_evas_engine_GL_SDL_log_dom < 0)
897 _evas_engine_GL_SDL_log_dom = eina_log_domain_register
898 ("evas-gl_sdl", EVAS_DEFAULT_LOG_COLOR);
899 if (_evas_engine_GL_SDL_log_dom < 0)
900 {
901 EINA_LOG_ERR("Can not create a module log domain.");
902 return 0;
903 }
904 /* store it for later use */
905 func = pfunc;
906 /* now to override methods */
907 #define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_)
908 ORD(info);
909 ORD(info_free);
910 ORD(setup);
911 ORD(canvas_alpha_get);
912 ORD(output_free);
913 ORD(output_resize);
914 ORD(output_tile_size_set);
915 ORD(output_redraws_rect_add);
916 ORD(output_redraws_rect_del);
917 ORD(output_redraws_clear);
918 ORD(output_redraws_next_update_get);
919 ORD(output_redraws_next_update_push);
920 ORD(context_cutout_add);
921 ORD(context_cutout_clear);
922 ORD(output_flush);
923 ORD(output_idle_flush);
924 ORD(output_dump);
925 ORD(rectangle_draw);
926 ORD(line_draw);
927 ORD(polygon_point_add);
928 ORD(polygon_points_clear);
929 ORD(polygon_draw);
930
931 ORD(image_load);
932 ORD(image_new_from_data);
933 ORD(image_new_from_copied_data);
934 ORD(image_free);
935 ORD(image_size_get);
936 ORD(image_size_set);
937 ORD(image_dirty_region);
938 ORD(image_data_get);
939 ORD(image_data_put);
940 ORD(image_data_preload_request);
941 ORD(image_data_preload_cancel);
942 ORD(image_alpha_set);
943 ORD(image_alpha_get);
944 ORD(image_border_set);
945 ORD(image_border_get);
946 ORD(image_draw);
947 ORD(image_comment_get);
948 ORD(image_format_get);
949 ORD(image_colorspace_set);
950 ORD(image_colorspace_get);
951 ORD(image_native_set);
952 ORD(image_native_get);
953#if 0 // filtering disabled
954// ORD(image_draw_filtered);
955// ORD(image_filtered_get);
956// ORD(image_filtered_save);
957// ORD(image_filtered_free);
958#endif
959 ORD(font_draw);
960
961 ORD(image_scale_hint_set);
962 ORD(image_scale_hint_get);
963
964 ORD(image_map_draw);
965 ORD(image_map_surface_new);
966 ORD(image_map_surface_free);
967
968// ORD(image_content_hint_set);
969// ORD(image_content_hint_get);
970
971// ORD(image_cache_flush);
972// ORD(image_cache_set);
973// ORD(image_cache_get);
974
975// ORD(gl_surface_create);
976// ORD(gl_surface_destroy);
977// ORD(gl_context_create);
978// ORD(gl_context_destroy);
979// ORD(gl_make_current);
980// ORD(gl_proc_address_get);
981// ORD(gl_native_surface_get);
982
983// ORD(gl_api_get);
984
985 ORD(image_load_error_get);
986
987 /* now advertise out own api */
988 em->functions = (void *)(&func);
989 return 1;
990}
991
992static void
993module_close(Evas_Module *em)
994{
995 eina_log_domain_unregister(_evas_engine_GL_SDL_log_dom);
996 evas_gl_common_module_close();
997}
998
999static Evas_Module_Api evas_modapi =
1000{
1001 EVAS_MODULE_API_VERSION,
1002 "gl_sdl",
1003 "none",
1004 {
1005 module_open,
1006 module_close
1007 }
1008};
1009
1010EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, gl_sdl);
1011
1012#ifndef EVAS_STATIC_BUILD_GL_SDL
1013EVAS_EINA_MODULE_DEFINE(engine, gl_sdl);
1014#endif
1015
1016static void*
1017_sdl_output_setup (int w, int h, int fullscreen, int noframe)
1018{
1019 Render_Engine *re = calloc(1, sizeof(Render_Engine));
1020 SDL_Surface *surface;
1021 int context_attrs[3];
1022 int config_attrs[20];
1023 int major_version, minor_version;
1024 int num_config;
1025
1026 /* if we haven't initialized - init (automatic abort if already done) */
1027 evas_common_cpu_init();
1028 evas_common_blend_init();
1029 evas_common_image_init();
1030 evas_common_convert_init();
1031 evas_common_scale_init();
1032 evas_common_rectangle_init();
1033 evas_common_polygon_init();
1034 evas_common_line_init();
1035 evas_common_font_init();
1036 evas_common_draw_init();
1037 evas_common_tilebuf_init();
1038
1039 if (w <= 0) w = 640;
1040 if (h <= 0) h = 480;
1041
1042 /* GL Initialization */
1043#ifdef HAVE_SDL_GL_CONTEXT_VERSION
1044 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
1045 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
1046#endif
1047 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
1048 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
1049 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
1050 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
1051 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
1052 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0);
1053
1054 surface = SDL_SetVideoMode(w, h, 32, EVAS_SDL_GL_FLAG
1055 | (fullscreen ? SDL_FULLSCREEN : 0)
1056 | (noframe ? SDL_NOFRAME : 0));
1057
1058 if (!surface)
1059 {
1060 CRIT("SDL_SetVideoMode [ %i x %i x 32 ] failed. %s", w, h, SDL_GetError());
1061 SDL_Quit();
1062 exit(-1);
1063 }
1064
1065 INF("Screen Depth: %d, Vendor: '%s', Renderer: '%s', Version: '%s'", SDL_GetVideoSurface()->format->BitsPerPixel, glGetString(GL_VENDOR), glGetString(GL_RENDERER), glGetString(GL_VERSION));
1066
1067 re->gl_context = evas_gl_common_context_new();
1068 if (!re->gl_context)
1069 {
1070 free(re);
1071 return NULL;
1072 }
1073 evas_gl_common_context_use(re->gl_context);
1074 evas_gl_common_context_resize(re->gl_context, w, h, re->gl_context->rot);
1075
1076 /* End GL Initialization */
1077 re->w = w;
1078 re->h = h;
1079 return re;
1080}
1081
diff --git a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.h b/libraries/evas/src/modules/engines/gl_sdl/evas_engine.h
deleted file mode 100644
index 7d46720..0000000
--- a/libraries/evas/src/modules/engines/gl_sdl/evas_engine.h
+++ /dev/null
@@ -1,73 +0,0 @@
1#ifndef EVAS_ENGINE_H
2#define EVAS_ENGINE_H
3
4#define _EVAS_ENGINE_SDL_H
5
6#include "config.h"
7#include <SDL/SDL.h>
8#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
9# include <EGL/egl.h>
10# include <SDL/SDL_opengles.h>
11# ifdef HAVE_SDL_FLAG_OPENGLES
12# define EVAS_SDL_GL_FLAG SDL_OPENGLES
13# else
14# define EVAS_SDL_GL_FLAG SDL_OPENGL /* This probably won't work? */
15# endif
16#else
17# include <SDL/SDL_opengl.h>
18# define EVAS_SDL_GL_FLAG SDL_OPENGL
19#endif
20#include "evas_common.h"
21#include "evas_private.h"
22#include "evas_gl_common.h"
23#include "Evas.h"
24#include "Evas_Engine_GL_SDL.h"
25
26extern int _evas_engine_GL_SDL_log_dom ;
27#ifdef ERR
28# undef ERR
29#endif
30#define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
31
32#ifdef DBG
33# undef DBG
34#endif
35#define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
36
37#ifdef INF
38# undef INF
39#endif
40#define INF(...) EINA_LOG_DOM_INFO(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
41
42#ifdef WRN
43# undef WRN
44#endif
45#define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
46
47#ifdef CRIT
48# undef CRIT
49#endif
50#define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_GL_SDL_log_dom, __VA_ARGS__)
51
52typedef struct _Render_Engine Render_Engine;
53struct _Render_Engine
54{
55 Evas_Engine_Info_GL_SDL *info;
56 int w, h;
57
58 Evas_Engine_GL_Context *gl_context;
59 struct {
60 int redraw : 1;
61 int drew : 1;
62 int x1, y1, x2, y2;
63 } draw;
64#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
65 EGLContext egl_context[1];
66 EGLSurface egl_surface[1];
67 EGLConfig egl_config;
68 EGLDisplay egl_disp;
69#endif
70
71};
72
73#endif