add evas and ecore detection for benchmarking

SVN revision: 35969
This commit is contained in:
Vincent Torri 2008-09-12 21:08:16 +00:00
parent 1fc6d866c2
commit 345bddedca
3 changed files with 56 additions and 2 deletions

View File

@ -127,6 +127,7 @@ AM_CONDITIONAL(EINA_ENABLE_TESTS, test "x${enable_tests}" = "xyes")
# Glib library for comparison in the benchmark
have_glib="no"
if test "x${enable_bench}" = "xyes" ; then
PKG_CHECK_MODULES([GLIB],
[glib-2.0],
@ -137,6 +138,32 @@ fi
AM_CONDITIONAL(EINA_HAVE_GLIB, test "x${have_glib}" = "xyes")
# Evas library for comparison in the benchmark
have_evas="no"
if test "x${enable_bench}" = "xyes" ; then
PKG_CHECK_MODULES([EVAS],
[evas],
[have_evas="yes"],
[have_evas="no"]
)
fi
AM_CONDITIONAL(EINA_HAVE_EVAS, test "x${have_evas}" = "xyes")
# Ecore library for comparison in the benchmark
have_ecore="no"
if test "x${enable_bench}" = "xyes" ; then
PKG_CHECK_MODULES([ECORE],
[ecore],
[have_ecore="yes"],
[have_ecore="no"]
)
fi
AM_CONDITIONAL(EINA_HAVE_ECORE, test "x${have_ecore}" = "xyes")
# Check ememoa memory pool library
if test "x${enable_ememoa}" = "xyes" ; then
@ -280,6 +307,11 @@ echo " Documentation........: ${build_doc}"
echo " Tests................: ${enable_tests}"
echo " Coverage.............: ${enable_coverage}"
echo " Bench................: ${enable_bench}"
if test "x${enable_bench}" = "xyes" ; then
echo " Glib...............: ${have_glib}"
echo " Evas...............: ${have_evas}"
echo " Ecore..............: ${have_ecore}"
fi
echo
echo " Memory pool:"
echo " Ememoa.............: ${enable_ememoa}"

View File

@ -10,7 +10,9 @@ AM_CPPFLAGS = \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
@CHECK_CFLAGS@ \
@GLIB_CFLAGS@
@GLIB_CFLAGS@ \
@EVAS_CFLAGS@ \
@ECORE_CFLAGS@
if EINA_HAVE_GLIB
@ -18,6 +20,18 @@ AM_CPPFLAGS += -DEINA_BENCH_HAVE_GLIB
endif
if EINA_HAVE_EVAS
AM_CPPFLAGS += -DEINA_BENCH_HAVE_EVAS
endif
if EINA_HAVE_ECORE
AM_CPPFLAGS += -DEINA_BENCH_HAVE_ECORE
endif
if EINA_ENABLE_TESTS
check_PROGRAMS = eina_suite
@ -57,7 +71,7 @@ eina_bench_stringshare.c \
eina_bench_convert.c \
eina_bench_array.c
eina_bench_LDADD = @GLIB_LIBS@ $(top_builddir)/src/lib/libeina.la
eina_bench_LDADD = @ECORE_LIBS@ @EVAS_LIBS@ @GLIB_LIBS@ $(top_builddir)/src/lib/libeina.la
endif

View File

@ -29,6 +29,14 @@
#include <glib.h>
#endif
#ifdef EINA_BENCH_HAVE_EVAS
#include <Evas.h>
#endif
#ifdef EINA_BENCH_HAVE_ECORE
#include <Ecore.h>
#endif
#include "eina_bench.h"
#include "eina_array.h"
#include "eina_list.h"