summaryrefslogtreecommitdiff
path: root/src/Makefile_Eina.am
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-18 07:12:38 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-18 07:12:38 +0000
commit4ae8b8cf8617ffcc2f82576ca586cff91f5fdda3 (patch)
tree2e7323a4f7f7ae08addcfed16795cc96ef5d39bd /src/Makefile_Eina.am
parent766a0c790d31795a2eaa51f9e7981b13eeb378a7 (diff)
merge: do not use recursive make for unit tests
SVN revision: 79413
Diffstat (limited to 'src/Makefile_Eina.am')
-rw-r--r--src/Makefile_Eina.am99
1 files changed, 98 insertions, 1 deletions
diff --git a/src/Makefile_Eina.am b/src/Makefile_Eina.am
index 1d5d9e5..2e58f0f 100644
--- a/src/Makefile_Eina.am
+++ b/src/Makefile_Eina.am
@@ -213,6 +213,7 @@ lib_eina_libeina_la_CPPFLAGS = \
213-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ 213-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
214-DEFL_EINA_BUILD \ 214-DEFL_EINA_BUILD \
215@EFL_CFLAGS@ \ 215@EFL_CFLAGS@ \
216@EFL_COV_CFLAGS@ \
216@EFL_PTHREAD_CFLAGS@ \ 217@EFL_PTHREAD_CFLAGS@ \
217@EINA_CFLAGS@ \ 218@EINA_CFLAGS@ \
218@VALGRIND_CFLAGS@ 219@VALGRIND_CFLAGS@
@@ -223,7 +224,7 @@ lib_eina_libeina_la_CPPFLAGS += \
223-I$(top_builddir)/src/lib/evil 224-I$(top_builddir)/src/lib/evil
224endif 225endif
225 226
226lib_eina_libeina_la_LIBADD = @EINA_LIBS@ 227lib_eina_libeina_la_LIBADD = @EINA_LIBS@ @EFL_COV_LIBS@
227 228
228if HAVE_WINDOWS 229if HAVE_WINDOWS
229lib_eina_libeina_la_LIBADD += \ 230lib_eina_libeina_la_LIBADD += \
@@ -239,6 +240,102 @@ lib_eina_libeina_la_LDFLAGS = -no-undefined -version-info @version_info@ @releas
239 240
240bin_SCRIPTS = scripts/eina/eina-bench-cmp 241bin_SCRIPTS = scripts/eina/eina-bench-cmp
241 242
243### Unit tests
244
245if EFL_ENABLE_TESTS
246
247check_PROGRAMS += tests/eina/eina_suite tests/eina/cxx_compile_test
248
249tests_eina_eina_suite_SOURCES = \
250tests/eina/eina_suite.c \
251tests/eina/eina_suite.h \
252tests/eina/eina_test_fp.c \
253tests/eina/eina_test_stringshare.c \
254tests/eina/eina_test_ustringshare.c \
255tests/eina/eina_test_ustr.c \
256tests/eina/eina_test_binshare.c \
257tests/eina/eina_test_binbuf.c \
258tests/eina/eina_test_inarray.c \
259tests/eina/eina_test_array.c \
260tests/eina/eina_test_clist.c \
261tests/eina/eina_test_error.c \
262tests/eina/eina_test_sched.c \
263tests/eina/eina_test_log.c \
264tests/eina/eina_test_magic.c \
265tests/eina/eina_test_inlist.c \
266tests/eina/eina_test_main.c \
267tests/eina/eina_test_counter.c \
268tests/eina/eina_test_lalloc.c \
269tests/eina/eina_test_hash.c \
270tests/eina/eina_test_iterator.c \
271tests/eina/eina_test_accessor.c \
272tests/eina/eina_test_module.c \
273tests/eina/eina_test_convert.c \
274tests/eina/eina_test_rbtree.c \
275tests/eina/eina_test_file.c \
276tests/eina/eina_test_benchmark.c \
277tests/eina/eina_test_mempool.c \
278tests/eina/eina_test_rectangle.c \
279tests/eina/eina_test_list.c \
280tests/eina/eina_test_matrixsparse.c \
281tests/eina/eina_test_tiler.c \
282tests/eina/eina_test_strbuf.c \
283tests/eina/eina_test_str.c \
284tests/eina/eina_test_quadtree.c \
285tests/eina/eina_test_simple_xml_parser.c \
286tests/eina/eina_test_value.c
287# tests/eina/eina_test_model.c
288
289tests_eina_eina_suite_CPPFLAGS = \
290-I$(top_srcdir)/src/lib/eina \
291-I$(top_builddir)/src/lib/eina \
292-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)/tests/eina\" \
293@CHECK_CFLAGS@ \
294@EINA_CFLAGS@
295
296tests_eina_eina_suite_LDADD = \
297lib/eina/libeina.la \
298@CHECK_LIBS@ \
299@EINA_LIBS@ \
300-lm
301
302tests_eina_cxx_compile_test_SOURCES = tests/eina/cxx_compile_test.cxx
303
304tests_eina_cxx_compile_test_CPPFLAGS = \
305-I$(top_srcdir)/src/lib/eina \
306-I$(top_builddir)/src/lib/eina \
307@CHECK_CFLAGS@ \
308@EINA_CFLAGS@
309
310tests_eina_cxx_compile_test_LDADD = \
311lib/eina/libeina.la \
312@EINA_LIBS@
313
314EXTRA_LTLIBRARIES = tests/eina/module_dummy.la
315
316check-local: tests/eina/module_dummy.la
317
318tests_eina_module_dummy_la_SOURCES = tests/eina/eina_test_module_dummy.c
319
320tests_eina_module_dummy_la_CPPFLAGS = \
321-I$(top_srcdir)/src/lib/eina \
322-I$(top_builddir)/src/lib/eina \
323-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)/tests/eina\" \
324@CHECK_CFLAGS@ \
325@EINA_CFLAGS@ \
326-DEFL_EINA_BUILD
327
328tests_eina_module_dummy_la_LIBADD = \
329lib/eina/libeina.la \
330@EINA_LIBS@ \
331-lm
332
333tests_eina_module_dummy_la_LDFLAGS = -no-undefined -module -avoid-version
334
335tests_eina_module_dummy_la_LIBTOOLFLAGS = --tag=disable-static
336
337endif
338
242EXTRA_DIST += \ 339EXTRA_DIST += \
243lib/eina/eina_config.h.in \ 340lib/eina/eina_config.h.in \
244lib/eina/eina_strbuf_template_c.x \ 341lib/eina/eina_strbuf_template_c.x \