forked from enlightenment/efl
- remove ecore_desktop comparison tests
SVN revision: 30767
This commit is contained in:
parent
2960827592
commit
36867e14a2
|
@ -24,27 +24,6 @@ CFLAGS=$ECORE_CFLAGS" "$CFLAGS
|
|||
|
||||
requirements="ecore ecore-file"
|
||||
|
||||
AC_ARG_ENABLE(ecore-desktop,
|
||||
[AC_HELP_STRING([--enable-ecore-desktop],[Enable Ecore_Desktop tests])],
|
||||
[enable_ecore_desktop=$enableval], [enable_ecore_desktop="auto"])
|
||||
|
||||
have_ecore_desktop=no
|
||||
|
||||
if test "x$enable_ecore_desktop" != "xno" ; then
|
||||
PKG_CHECK_MODULES(ECORE_DESKTOP, [ecore-desktop >= 0.9.9], [
|
||||
have_ecore_desktop=yes
|
||||
], [
|
||||
have_ecore_desktop=no
|
||||
])
|
||||
fi
|
||||
|
||||
if test "x$have_ecore_desktop" = "xyes" ; then
|
||||
AC_DEFINE(ENABLE_ECORE_DESKTOP, 1, [Enable Ecore_Desktop])
|
||||
elif test "x$enable_ecore_desktop" = "xyes" ; then
|
||||
AC_MSG_ERROR(No Ecore_Desktop found disabling comparison tests.)
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_ECORE_DESKTOP, test "x$have_ecore_desktop" = xyes)
|
||||
|
||||
AC_ARG_ENABLE(strict-spec,
|
||||
[AC_HELP_STRING([--enable-strict-spec],[Enable strict spec compliance])],
|
||||
[enable_strict_spec=$enableval], [enable_strict_spec="auto"])
|
||||
|
|
|
@ -3,11 +3,7 @@ MAINTAINERCLEANFILES = Makefile.in
|
|||
INCLUDES = \
|
||||
-I. -I$(top_srcdir)/src/lib @ECORE_CFLAGS@
|
||||
|
||||
if HAVE_ECORE_DESKTOP
|
||||
bin_PROGRAMS = efreet_alloc ecore_alloc compare_results efreet_menu_alloc
|
||||
else
|
||||
bin_PROGRAMS = efreet_alloc efreet_menu_alloc
|
||||
endif
|
||||
|
||||
efreet_menu_alloc_DEPENDENCIES = $(top_builddir)/src/lib/libefreet.la
|
||||
efreet_menu_alloc_SOURCES = efreet_menu_alloc.c comp.h
|
||||
|
@ -17,13 +13,3 @@ efreet_alloc_DEPENDENCIES = $(top_builddir)/src/lib/libefreet.la
|
|||
efreet_alloc_SOURCES = efreet_alloc.c comp.h
|
||||
efreet_alloc_LDADD = $(top_builddir)/src/lib/libefreet.la @ECORE_LIBS@
|
||||
|
||||
if HAVE_ECORE_DESKTOP
|
||||
ecore_alloc_DEPENDENCIES =
|
||||
ecore_alloc_SOURCES = ecore_alloc.c comp.h
|
||||
ecore_alloc_LDADD = @ECORE_LIBS@ @ECORE_DESKTOP_LIBS@
|
||||
|
||||
compare_results_DEPENDENCIES = $(top_builddir)/src/lib/libefreet.la
|
||||
compare_results_SOURCES = compare_results.c comp.h
|
||||
compare_results_LDADD = $(top_builddir)/src/lib/libefreet.la @ECORE_LIBS@ @ECORE_DESKTOP_LIBS@
|
||||
endif
|
||||
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
#include <Ecore.h>
|
||||
#include <Ecore_Desktop.h>
|
||||
#include <Efreet.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "comp.h"
|
||||
|
||||
int
|
||||
main(int argc, char ** argv)
|
||||
{
|
||||
int i;
|
||||
const char *ef, *ed;
|
||||
|
||||
ecore_init();
|
||||
ecore_desktop_init();
|
||||
efreet_init();
|
||||
|
||||
efreet_icon_extension_add(".svg");
|
||||
|
||||
for (i = 0; icons[i] != NULL; i++)
|
||||
{
|
||||
ef = efreet_icon_path_find(THEME, icons[i], SIZE);
|
||||
ed = ecore_desktop_icon_find(icons[i], SIZE, THEME);
|
||||
|
||||
if (!ef && !ed) continue;
|
||||
|
||||
if (!ef && ed)
|
||||
printf("%s matched ecore (%s) but not efreet\n", icons[i], ed);
|
||||
|
||||
else if (ef && !ed)
|
||||
printf("%s matched efreet (%s) but not ecore\n", icons[i], ef);
|
||||
|
||||
else if (strcmp(ef, ed))
|
||||
printf("%s didn't match ef(%s) vs ed(%s)\n", icons[i], ef, ed);
|
||||
}
|
||||
|
||||
efreet_shutdown();
|
||||
ecore_desktop_shutdown();
|
||||
ecore_shutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#include <Ecore.h>
|
||||
#include <Ecore_Desktop.h>
|
||||
#include <stdio.h>
|
||||
#include "comp.h"
|
||||
|
||||
int
|
||||
main(int argc, char ** argv)
|
||||
{
|
||||
int i = 0, k;
|
||||
const char *path;
|
||||
|
||||
ecore_init();
|
||||
ecore_desktop_init();
|
||||
|
||||
for (k = 0; k < LOOPS; k++)
|
||||
{
|
||||
for (i = 0; icons[i] != NULL; i++)
|
||||
{
|
||||
path = ecore_desktop_icon_find(icons[i], SIZE, THEME);
|
||||
// printf("%s: %s\n", icons[i], (path ? path : "NOT FOUND"));
|
||||
}
|
||||
}
|
||||
|
||||
ecore_desktop_shutdown();
|
||||
ecore_shutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue