2012-11-01 05:56:52 -07:00
|
|
|
|
|
|
|
### Library
|
|
|
|
|
2014-06-02 05:09:21 -07:00
|
|
|
BUILT_SOURCES += \
|
|
|
|
lib/eo/eo_abstract_class.eo.c \
|
|
|
|
lib/eo/eo_abstract_class.eo.h
|
|
|
|
|
2012-11-01 05:56:52 -07:00
|
|
|
lib_LTLIBRARIES += lib/eo/libeo.la
|
|
|
|
|
|
|
|
installed_eomainheadersdir = $(includedir)/eo-@VMAJ@
|
|
|
|
dist_installed_eomainheaders_DATA = lib/eo/Eo.h
|
|
|
|
|
2014-06-02 05:09:21 -07:00
|
|
|
nodist_installed_eomainheaders_DATA = \
|
|
|
|
lib/eo/eo_abstract_class.eo.h
|
|
|
|
|
2012-11-01 05:56:52 -07:00
|
|
|
lib_eo_libeo_la_SOURCES = \
|
|
|
|
lib/eo/eo.c \
|
2013-04-18 04:19:02 -07:00
|
|
|
lib/eo/eo_ptr_indirection.c \
|
2013-04-24 05:59:53 -07:00
|
|
|
lib/eo/eo_ptr_indirection.h \
|
2014-04-02 07:34:40 -07:00
|
|
|
lib/eo/eo_base_class.c \
|
|
|
|
lib/eo/eo_class_class.c \
|
2012-11-01 05:56:52 -07:00
|
|
|
lib/eo/eo_private.h
|
|
|
|
|
2013-04-24 07:43:33 -07:00
|
|
|
lib_eo_libeo_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
lib_eo_libeo_la_LIBADD = @EO_LIBS@
|
|
|
|
lib_eo_libeo_la_DEPENDENCIES = @EO_INTERNAL_LIBS@
|
2012-12-30 14:15:29 -08:00
|
|
|
lib_eo_libeo_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
|
2012-11-17 23:12:38 -08:00
|
|
|
|
2014-03-13 02:55:12 -07:00
|
|
|
eoeolianfilesdir = $(datadir)/eolian/include/eo-@VMAJ@
|
|
|
|
eoeolianfiles_DATA = \
|
2014-03-10 07:46:45 -07:00
|
|
|
lib/eo/eo_base.eo \
|
|
|
|
lib/eo/eo_abstract_class.eo
|
|
|
|
|
2014-03-13 02:55:12 -07:00
|
|
|
EXTRA_DIST += \
|
|
|
|
${eoeolianfiles_DATA}
|
|
|
|
|
2012-11-17 23:12:38 -08:00
|
|
|
### Unit tests
|
|
|
|
|
2013-02-18 05:16:06 -08:00
|
|
|
if EFL_ENABLE_TESTS
|
2012-11-17 23:12:38 -08:00
|
|
|
check_PROGRAMS += \
|
|
|
|
tests/eo/test_access \
|
|
|
|
tests/eo/test_composite_objects \
|
|
|
|
tests/eo/test_constructors \
|
|
|
|
tests/eo/test_function_overrides \
|
|
|
|
tests/eo/test_interface \
|
|
|
|
tests/eo/test_mixin \
|
2013-02-18 05:16:06 -08:00
|
|
|
tests/eo/test_signals \
|
2014-04-17 10:36:10 -07:00
|
|
|
tests/eo/test_children \
|
2013-02-18 05:16:06 -08:00
|
|
|
tests/eo/eo_suite
|
2012-11-17 23:12:38 -08:00
|
|
|
|
2014-04-17 10:36:10 -07:00
|
|
|
tests_eo_test_children_SOURCES = \
|
|
|
|
tests/eo/children/children_main.c \
|
|
|
|
tests/eo/children/children_simple.c \
|
|
|
|
tests/eo/children/children_simple.h
|
|
|
|
tests_eo_test_children_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
|
|
|
tests_eo_test_children_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_children_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
|
|
|
TESTS += tests/eo/test_children
|
|
|
|
|
2012-11-17 23:12:38 -08:00
|
|
|
tests_eo_test_access_SOURCES = \
|
|
|
|
tests/eo/access/access_inherit.c \
|
|
|
|
tests/eo/access/access_inherit.h \
|
|
|
|
tests/eo/access/access_main.c \
|
|
|
|
tests/eo/access/access_simple.c \
|
|
|
|
tests/eo/access/access_simple.h \
|
|
|
|
tests/eo/access/access_simple_protected.h
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_test_access_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_test_access_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_access_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/test_access
|
2012-11-17 23:12:38 -08:00
|
|
|
|
|
|
|
tests_eo_test_composite_objects_SOURCES = \
|
|
|
|
tests/eo/composite_objects/composite_objects_comp.c \
|
|
|
|
tests/eo/composite_objects/composite_objects_comp.h \
|
|
|
|
tests/eo/composite_objects/composite_objects_main.c \
|
|
|
|
tests/eo/composite_objects/composite_objects_simple.c \
|
|
|
|
tests/eo/composite_objects/composite_objects_simple.h
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_test_composite_objects_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_test_composite_objects_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_composite_objects_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/test_composite_objects
|
2012-11-17 23:12:38 -08:00
|
|
|
|
|
|
|
tests_eo_test_constructors_SOURCES = \
|
|
|
|
tests/eo/constructors/constructors_main.c \
|
|
|
|
tests/eo/constructors/constructors_mixin.c \
|
|
|
|
tests/eo/constructors/constructors_mixin.h \
|
|
|
|
tests/eo/constructors/constructors_simple.c \
|
|
|
|
tests/eo/constructors/constructors_simple.h \
|
|
|
|
tests/eo/constructors/constructors_simple2.c \
|
|
|
|
tests/eo/constructors/constructors_simple2.h \
|
|
|
|
tests/eo/constructors/constructors_simple3.c \
|
|
|
|
tests/eo/constructors/constructors_simple3.h \
|
|
|
|
tests/eo/constructors/constructors_simple4.c \
|
|
|
|
tests/eo/constructors/constructors_simple4.h \
|
|
|
|
tests/eo/constructors/constructors_simple5.c \
|
|
|
|
tests/eo/constructors/constructors_simple5.h \
|
|
|
|
tests/eo/constructors/constructors_simple6.c \
|
|
|
|
tests/eo/constructors/constructors_simple6.h \
|
|
|
|
tests/eo/constructors/constructors_simple7.c \
|
|
|
|
tests/eo/constructors/constructors_simple7.h
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_test_constructors_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_test_constructors_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_constructors_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/test_constructors
|
2012-11-17 23:12:38 -08:00
|
|
|
|
|
|
|
tests_eo_eo_suite_SOURCES = \
|
|
|
|
tests/eo/suite/eo_test_class_simple.c \
|
|
|
|
tests/eo/suite/eo_test_class_simple.h \
|
|
|
|
tests/eo/suite/eo_suite.c \
|
|
|
|
tests/eo/suite/eo_suite.h \
|
2014-01-08 05:10:39 -08:00
|
|
|
tests/eo/suite/eo_error_msgs.h \
|
|
|
|
tests/eo/suite/eo_error_msgs.c \
|
2012-11-17 23:12:38 -08:00
|
|
|
tests/eo/suite/eo_test_class_errors.c \
|
2014-01-08 05:48:36 -08:00
|
|
|
tests/eo/suite/eo_test_call_errors.c \
|
2012-11-17 23:12:38 -08:00
|
|
|
tests/eo/suite/eo_test_general.c \
|
2013-04-24 08:45:34 -07:00
|
|
|
tests/eo/suite/eo_test_value.c \
|
eo2: add tests for thread safe call stack
Summary:
2 threads run 'eo2_do(o, a(), b());'
- A goes first, creates an object, enters 'eo2_do(o, a(), b());'
in a() call, it blocks, releases B and waits for it.
- B when released, creates an object, enters 'eo2_do(o, a(), b());'
in a() call, it joins and releases A, then blocks.
- A returns from a(); and enters b() using current call stack frame,
which is the one pushed by B! then pop the frame and releases B.
- B does as above using the stack pushed by A!
2014-01-21 08:42:07 -08:00
|
|
|
tests/eo/suite/eo_test_threaded_calls.c \
|
2012-11-17 23:12:38 -08:00
|
|
|
tests/eo/suite/eo_test_init.c
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_eo_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
|
2013-03-12 05:46:06 -07:00
|
|
|
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/eo\" \
|
2012-11-17 23:12:38 -08:00
|
|
|
@CHECK_CFLAGS@ \
|
|
|
|
@EO_CFLAGS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/eo_suite
|
2012-11-17 23:12:38 -08:00
|
|
|
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_eo_suite_LDADD = @CHECK_LIBS@ @USE_EO_LIBS@
|
|
|
|
tests_eo_eo_suite_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2012-11-17 23:12:38 -08:00
|
|
|
|
|
|
|
tests_eo_test_function_overrides_SOURCES = \
|
|
|
|
tests/eo/function_overrides/function_overrides_inherit.c \
|
|
|
|
tests/eo/function_overrides/function_overrides_inherit.h \
|
|
|
|
tests/eo/function_overrides/function_overrides_inherit2.c \
|
|
|
|
tests/eo/function_overrides/function_overrides_inherit2.h \
|
|
|
|
tests/eo/function_overrides/function_overrides_inherit3.c \
|
|
|
|
tests/eo/function_overrides/function_overrides_inherit3.h \
|
|
|
|
tests/eo/function_overrides/function_overrides_main.c \
|
|
|
|
tests/eo/function_overrides/function_overrides_simple.c \
|
|
|
|
tests/eo/function_overrides/function_overrides_simple.h
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_test_function_overrides_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_test_function_overrides_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_function_overrides_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/test_function_overrides
|
2012-11-17 23:12:38 -08:00
|
|
|
|
|
|
|
tests_eo_test_interface_SOURCES = \
|
|
|
|
tests/eo/interface/interface_interface.c \
|
|
|
|
tests/eo/interface/interface_interface.h \
|
|
|
|
tests/eo/interface/interface_interface2.c \
|
|
|
|
tests/eo/interface/interface_interface2.h \
|
|
|
|
tests/eo/interface/interface_main.c \
|
|
|
|
tests/eo/interface/interface_simple.c \
|
|
|
|
tests/eo/interface/interface_simple.h
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_test_interface_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_test_interface_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_interface_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/test_interface
|
2012-11-17 23:12:38 -08:00
|
|
|
|
|
|
|
tests_eo_test_mixin_SOURCES = \
|
|
|
|
tests/eo/mixin/mixin_inherit.c \
|
|
|
|
tests/eo/mixin/mixin_inherit.h \
|
|
|
|
tests/eo/mixin/mixin_main.c \
|
|
|
|
tests/eo/mixin/mixin_mixin.c \
|
|
|
|
tests/eo/mixin/mixin_mixin.h \
|
|
|
|
tests/eo/mixin/mixin_mixin2.c \
|
|
|
|
tests/eo/mixin/mixin_mixin2.h \
|
|
|
|
tests/eo/mixin/mixin_mixin3.c \
|
|
|
|
tests/eo/mixin/mixin_mixin3.h \
|
|
|
|
tests/eo/mixin/mixin_mixin4.c \
|
|
|
|
tests/eo/mixin/mixin_mixin4.h \
|
|
|
|
tests/eo/mixin/mixin_simple.c \
|
|
|
|
tests/eo/mixin/mixin_simple.h
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_test_mixin_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_test_mixin_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_mixin_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/test_mixin
|
2012-11-17 23:12:38 -08:00
|
|
|
|
|
|
|
tests_eo_test_signals_SOURCES = \
|
|
|
|
tests/eo/signals/signals_main.c \
|
|
|
|
tests/eo/signals/signals_simple.c \
|
|
|
|
tests/eo/signals/signals_simple.h
|
2013-04-24 07:43:33 -07:00
|
|
|
tests_eo_test_signals_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eo_test_signals_LDADD = @USE_EO_LIBS@
|
|
|
|
tests_eo_test_signals_DEPENDENCIES = @USE_EO_INTERNAL_LIBS@
|
2013-01-18 08:13:34 -08:00
|
|
|
TESTS += tests/eo/test_signals
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2012-11-17 23:12:38 -08:00
|
|
|
|
2013-07-01 01:09:02 -07:00
|
|
|
EXTRA_DIST += tests/eo/eunit_tests.h lib/eo/eo_ptr_indirection.x
|