|
Last change
on this file since 746ff1 was 746ff1, checked in by Frederik Heber <heber@…>, 15 years ago |
|
Added Creator and Factory pattern.
- unittests added.
- new subfolder stubs that contains stubs for Creator and Factory.
- the only preprocessor stuff is in Factory_impl.hpp.
- FactoryTypeList.hpp is necessary as long as no variadic template argument
lists are possible.
- library version is 2:0:0, API version is 1.0.2.
|
-
Property mode
set to
100644
|
|
File size:
1.9 KB
|
| Line | |
|---|
| 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
|---|
| 2 | # Also indentation by a single tab
|
|---|
| 3 |
|
|---|
| 4 | INCLUDES = -I$(top_srcdir)/src/Patterns -I$(top_srcdir)/src/Helpers
|
|---|
| 5 |
|
|---|
| 6 | AM_LDFLAGS = $(CPPUNIT_LIBS) -ldl
|
|---|
| 7 | AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
|---|
| 8 | AM_CPPFLAGS = ${BOOST_CPPFLAGS}
|
|---|
| 9 |
|
|---|
| 10 | TESTS = \
|
|---|
| 11 | CacheableUnitTest \
|
|---|
| 12 | CreatorUnitTest \
|
|---|
| 13 | FactoryUnitTest \
|
|---|
| 14 | ObserverUnitTest \
|
|---|
| 15 | RegistryUnitTest \
|
|---|
| 16 | SingletonUnitTest
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 | check_PROGRAMS = $(TESTS)
|
|---|
| 20 | noinst_PROGRAMS = $(TESTS)
|
|---|
| 21 |
|
|---|
| 22 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
|
|---|
| 23 | TESTLIBS = \
|
|---|
| 24 | ../../libCodePatterns-debug.la \
|
|---|
| 25 | $(BOOST_LIB)
|
|---|
| 26 |
|
|---|
| 27 | CacheableUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 28 | CacheableUnitTest.cpp \
|
|---|
| 29 | CacheableUnitTest.hpp \
|
|---|
| 30 | ../Cachable.hpp \
|
|---|
| 31 | ../Observer.hpp \
|
|---|
| 32 | ../ObserverIterator.hpp
|
|---|
| 33 | CacheableUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 34 |
|
|---|
| 35 | CreatorUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 36 | CreatorUnitTest.cpp \
|
|---|
| 37 | CreatorUnitTest.hpp \
|
|---|
| 38 | ../Creator.hpp \
|
|---|
| 39 | stubs/CreatorStub.hpp \
|
|---|
| 40 | stubs/CreatorStub.cpp
|
|---|
| 41 | CreatorUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 42 |
|
|---|
| 43 | FactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 44 | FactoryUnitTest.cpp \
|
|---|
| 45 | FactoryUnitTest.hpp \
|
|---|
| 46 | stubs/CreatorStub.hpp \
|
|---|
| 47 | stubs/CreatorStub.cpp \
|
|---|
| 48 | stubs/FactoryStub.hpp \
|
|---|
| 49 | stubs/FactoryStub.cpp \
|
|---|
| 50 | ../Factory.hpp \
|
|---|
| 51 | ../FactoryTypeList.hpp \
|
|---|
| 52 | ../Factory_impl.hpp
|
|---|
| 53 | FactoryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 54 |
|
|---|
| 55 | ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 56 | ObserverUnitTest.cpp \
|
|---|
| 57 | ObserverUnitTest.hpp \
|
|---|
| 58 | ../Observer.hpp \
|
|---|
| 59 | ../ObserverIterator.hpp
|
|---|
| 60 | ObserverUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 61 |
|
|---|
| 62 | RegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 63 | RegistryUnitTest.cpp \
|
|---|
| 64 | RegistryUnitTest.hpp
|
|---|
| 65 | #RegistryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 66 |
|
|---|
| 67 | SingletonUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 68 | SingletonUnitTest.cpp \
|
|---|
| 69 | SingletonUnitTest.hpp
|
|---|
| 70 | SingletonUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 71 |
|
|---|
| 72 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.