Fix build with static modules, thanks Gentoo ;-)

I don't know if this is useful to backport to stable branch, if you
think so please do it as I don't even have that checkout... svn is
annoying :-P



SVN revision: 58012
This commit is contained in:
Gustavo Sverzut Barbieri 2011-03-23 02:45:19 +00:00
parent 3470b9f817
commit 9f0b807db4
4 changed files with 34 additions and 5 deletions

View File

@ -192,3 +192,8 @@
* Proxy: Bypass the clip on smart clipped objects. This is probably * Proxy: Bypass the clip on smart clipped objects. This is probably
what you want if you are using proxies, as it means clips don't cause what you want if you are using proxies, as it means clips don't cause
the object to be invisible by the proxy. the object to be invisible by the proxy.
2011-03-22 Gustavo Sverzut Barbieri (k-s)
* Fix build of GL and static modules.
* Fix ico loader static build.

View File

@ -633,13 +633,17 @@ EVAS_CHECK_ENGINE([software-16-wince], [${want_evas_engine_software_16_wince}],
# common gl # common gl
have_evas_engine_gl_common="no" have_evas_engine_gl_common="no"
have_static_evas_engine_gl_common="no"
if test "x$have_evas_engine_gl_x11" = "xyes" \ if test "x$have_evas_engine_gl_x11" = "xyes" \
|| test "x$have_evas_engine_gl_x11" = "xstatic" \
|| test "x$have_evas_engine_gl_glew" = "xyes" \ || test "x$have_evas_engine_gl_glew" = "xyes" \
|| test "x$have_evas_engine_gl_sdl" = "xyes"; then
have_evas_engine_gl_common="yes"
fi
if test "x$have_evas_engine_gl_x11" = "xstatic" \
|| test "x$have_evas_engine_gl_glew" = "xstatic" \ || test "x$have_evas_engine_gl_glew" = "xstatic" \
|| test "x$have_evas_engine_gl_sdl" = "xyes" \
|| test "x$have_evas_engine_gl_sdl" = "xstatic"; then || test "x$have_evas_engine_gl_sdl" = "xstatic"; then
have_evas_engine_gl_common="yes" have_evas_engine_gl_common="yes"
have_static_evas_engine_gl_common="yes"
fi fi
if test "x$have_evas_engine_gl_common" = "xyes"; then if test "x$have_evas_engine_gl_common" = "xyes"; then
@ -651,6 +655,11 @@ AC_SUBST([evas_engine_gl_common_libs])
AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, [test "x$have_evas_engine_gl_common" = "xyes"]) AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, [test "x$have_evas_engine_gl_common" = "xyes"])
AM_CONDITIONAL(EVAS_STATIC_BUILD_GL_COMMON, test "x${have_static_evas_engine_gl_common}" = "xyes")
if test "x${have_static_evas_engine_gl_common}" = "xyes"; then
AC_DEFINE(EVAS_STATIC_BUILD_GL_COMMON, [1], [Build GL generic engine as part of libevas])
fi
# gl_sdl # gl_sdl
if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then
AC_CHECK_DECL(SDL_GL_CONTEXT_MAJOR_VERSION, AC_CHECK_DECL(SDL_GL_CONTEXT_MAJOR_VERSION,
@ -687,6 +696,11 @@ AC_ARG_ENABLE([static-software-generic],
AC_MSG_CHECKING([Whether to build software generic engine as part of libevas]) AC_MSG_CHECKING([Whether to build software generic engine as part of libevas])
AC_MSG_RESULT([${have_static_software_generic}]) AC_MSG_RESULT([${have_static_software_generic}])
if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then
AC_MSG_WARN([Forcing --enable-static-software-generic as engines must be compiled statically])
have_static_software_generic="yes"
fi
AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, test "x${have_static_software_generic}" = "xyes") AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, test "x${have_static_software_generic}" = "xyes")
if test "x${have_static_software_generic}" = "xyes"; then if test "x${have_static_software_generic}" = "xyes"; then
AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, [1], [Build software generic engine as part of libevas]) AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, [1], [Build software generic engine as part of libevas])

View File

@ -133,6 +133,11 @@ SUBDIRS += ../modules/loaders/gif
EVAS_STATIC_MODULE += ../modules/loaders/gif/libevas_loader_gif.la EVAS_STATIC_MODULE += ../modules/loaders/gif/libevas_loader_gif.la
EVAS_STATIC_LIBADD += @evas_image_loader_gif_libs@ EVAS_STATIC_LIBADD += @evas_image_loader_gif_libs@
endif endif
if EVAS_STATIC_BUILD_ICO
SUBDIRS += ../modules/loaders/ico
EVAS_STATIC_MODULE += ../modules/loaders/ico/libevas_loader_ico.la
EVAS_STATIC_LIBADD += @evas_image_loader_ico_libs@
endif
if EVAS_STATIC_BUILD_JPEG if EVAS_STATIC_BUILD_JPEG
SUBDIRS += ../modules/loaders/jpeg SUBDIRS += ../modules/loaders/jpeg
EVAS_STATIC_MODULE += ../modules/loaders/jpeg/libevas_loader_jpeg.la EVAS_STATIC_MODULE += ../modules/loaders/jpeg/libevas_loader_jpeg.la

View File

@ -17,15 +17,20 @@ endif
if !EVAS_STATIC_BUILD_FB if !EVAS_STATIC_BUILD_FB
SUBDIRS += fb SUBDIRS += fb
endif endif
if !EVAS_STATIC_BUILD_GL_COMMON
SUBDIRS += gl_common
endif
if !EVAS_STATIC_BUILD_GL_GLEW if !EVAS_STATIC_BUILD_GL_GLEW
SUBDIRS += gl_common gl_glew SUBDIRS += gl_glew
endif endif
if !EVAS_STATIC_BUILD_GL_X11 if !EVAS_STATIC_BUILD_GL_X11
SUBDIRS += gl_common gl_x11 SUBDIRS += gl_x11
endif endif
if !EVAS_STATIC_BUILD_GL_SDL if !EVAS_STATIC_BUILD_GL_SDL
SUBDIRS += gl_common gl_sdl SUBDIRS += gl_sdl
endif endif
if !EVAS_STATIC_BUILD_QUARTZ if !EVAS_STATIC_BUILD_QUARTZ
SUBDIRS += quartz SUBDIRS += quartz
endif endif