source: src/Patterns/unittests/Makefile.am@ d76c105

Last change on this file since d76c105 was d76c105, checked in by Frederik Heber <heber@…>, 15 years ago

Added Prototype Factory pattern.

  • the Prototype Factory basically stores Clone instead of Creator patterns in its lookup tables to produce.
  • Clone has not protected cstor/dstor but is friend with CloneTest and PrototypeFactoryStub to grant them access.
  • also these prototypes may be manipulated by befriended classes.
  • added unit test and stub.
  • Library version is now 3:0:0, API version is 1.0.5.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4INCLUDES = -I$(top_srcdir)/src/Patterns -I$(top_srcdir)/src/Helpers
5
6AM_LDFLAGS = $(CPPUNIT_LIBS) -ldl
7AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
8AM_CPPFLAGS = ${BOOST_CPPFLAGS}
9
10TESTS = \
11 CacheableUnitTest \
12 CloneUnitTest \
13 CreatorUnitTest \
14 FactoryUnitTest \
15 ObserverUnitTest \
16 PrototypeFactoryUnitTest \
17 RegistryUnitTest \
18 SingletonUnitTest
19
20
21check_PROGRAMS = $(TESTS)
22noinst_PROGRAMS = $(TESTS)
23
24BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
25TESTLIBS = \
26 ../../libCodePatterns-debug.la \
27 $(BOOST_LIB)
28
29CacheableUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
30 CacheableUnitTest.cpp \
31 CacheableUnitTest.hpp \
32 ../Cachable.hpp \
33 ../Observer.hpp \
34 ../ObserverIterator.hpp
35CacheableUnitTest_LDADD = $(TESTLIBS)
36
37CloneUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
38 CloneUnitTest.cpp \
39 CloneUnitTest.hpp \
40 ../Clone.hpp \
41 stubs/CommonStub.cpp \
42 stubs/CommonStub.hpp \
43 stubs/CloneStub.cpp \
44 stubs/CloneStub.hpp
45CloneUnitTest_LDADD = $(TESTLIBS)
46
47CreatorUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
48 CreatorUnitTest.cpp \
49 CreatorUnitTest.hpp \
50 ../Creator.hpp \
51 stubs/CommonStub.cpp \
52 stubs/CommonStub.hpp \
53 stubs/CreatorStub.hpp
54CreatorUnitTest_LDADD = $(TESTLIBS)
55
56FactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
57 FactoryUnitTest.cpp \
58 FactoryUnitTest.hpp \
59 stubs/CommonStub.cpp \
60 stubs/CommonStub.hpp \
61 stubs/CreatorStub.hpp \
62 stubs/FactoryStub.hpp \
63 stubs/FactoryStub.cpp \
64 ../Factory.hpp \
65 ../FactoryTypeList.hpp \
66 ../Factory_impl.hpp
67FactoryUnitTest_LDADD = $(TESTLIBS)
68
69ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
70 ObserverUnitTest.cpp \
71 ObserverUnitTest.hpp \
72 ../Observer.hpp \
73 ../ObserverIterator.hpp
74ObserverUnitTest_LDADD = $(TESTLIBS)
75
76PrototypeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
77 PrototypeFactoryUnitTest.cpp \
78 PrototypeFactoryUnitTest.hpp \
79 stubs/CloneStub.cpp \
80 stubs/CloneStub.hpp \
81 stubs/CommonStub.cpp \
82 stubs/CommonStub.hpp \
83 stubs/PrototypeFactoryStub.hpp \
84 stubs/PrototypeFactoryStub.cpp \
85 ../PrototypeFactory.hpp \
86 ../FactoryTypeList.hpp \
87 ../PrototypeFactory_impl.hpp
88PrototypeFactoryUnitTest_LDADD = $(TESTLIBS)
89
90RegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
91 RegistryUnitTest.cpp \
92 RegistryUnitTest.hpp
93#RegistryUnitTest_LDADD = $(TESTLIBS)
94
95SingletonUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
96 SingletonUnitTest.cpp \
97 SingletonUnitTest.hpp
98SingletonUnitTest_LDADD = $(TESTLIBS)
99
100#AUTOMAKE_OPTIONS = parallel-tests
Note: See TracBrowser for help on using the repository browser.