[Mockpp-commits] mockpp/mockpp Makefile.am,1.100,1.101
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-12-18 19:13:17
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23206/mockpp Modified Files: Makefile.am Log Message: generation of config files Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Makefile.am,v retrieving revision 1.100 retrieving revision 1.101 diff -u -d -r1.100 -r1.101 --- Makefile.am 18 Dec 2005 16:56:23 -0000 1.100 +++ Makefile.am 18 Dec 2005 19:13:08 -0000 1.101 @@ -5,10 +5,8 @@ production framework \ . config docs tests po examples - lib_LTLIBRARIES = libmockpp.la -# -release $(LT_RELEASE) libmockpp_la_LDFLAGS = -no-undefined \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) @@ -59,10 +57,7 @@ templates : visitable-template.h chainable-template.h -visitable-template.h: $(srcdir)/visitable-template.raw $(pkginclude_HEADERS) - echo ################################################# - echo ## WARNING: $(srcdir)/$@ is regenerated - echo ################################################# +chainable-template.h visitable-template.h: $(srcdir)/visitable-template.raw $(pkginclude_HEADERS) -cpp -I. -I.. -I $(top_srcdir) $< >$@.tmp filelen=`wc -l $@.tmp | awk '{ print $$1 }'`; \ splitpos=`grep -n SPLIT_START visitable-template.h.tmp | sed s/:/\ /g | awk '{ print $$1 }'`; \ @@ -70,25 +65,9 @@ rm $@.tmp -indent -nut $(srcdir)/$@ -chainable-template.h: $(srcdir)/chainable-template.raw $(pkginclude_HEADERS) - echo ################################################# - echo ## WARNING: $(srcdir)/$@ is regenerated - echo ################################################# - -cpp -I. -I.. -I $(top_srcdir) $< >$@.tmp - filelen=`wc -l $@.tmp | awk '{ print $$1 }'`; \ - splitpos=`grep -n SPLIT_START chainable-template.h.tmp | sed s/:/\ /g | awk '{ print $$1 }'`; \ - tail -n `expr $$filelen - $$splitpos` $@.tmp >$(srcdir)/$@ - rm $@.tmp - -indent -nut $(srcdir)/$@ - -chainer: $(srcdir)/tests/ChainableMockObject_5_test.cpp - -cpp -DHAVE_CPPUNIT -I. -I.. -I $(top_srcdir) $< | sed "s,^#,//# ,g" >chainer.cpp - -indent -nut chainer.cpp - g++ chainer.cpp - mockpp_config.h : ../config.h echo "/* Edit this file with care. It is automatically generated from config.h. */" >$@ - TODAY=`date +%y%m%d`; echo "/* Generated: $(TODAY) */" >$@ + TODAY=`date +%Y-%m-%d` ; echo "/* Generated: $$TODAY */" >>$@ grep "#define[ ]\+VERSION[ ]\+" ../config.h | sed "s/#define[ ]\+VERSION[ ]\+\(.*\)/#define MOCKPP_VERSION \\1/g">>$@ grep "#define[ ]\+PACKAGE[ ]\+" ../config.h | sed "s/#define[ ]\+PACKAGE[ ]\+\(.*\)/#define MOCKPP_PACKAGE \\1/g">>$@ grep "MOCKPP_UNICODE " ../config.h >>$@ @@ -97,6 +76,9 @@ grep HAVE_VALUES ../config.h >>$@ grep MOCKPP_USE_MINI_STL ../config.h >>$@ grep CXXTEST_USE_MINI_STL ../config.h >>$@ + grep MOCKPP_NO_RTTI ../config.h >>$@ + grep MOCKPP_NO_EXCEPTIONS ../config.h >>$@ + -test $@ -ef $(srcdir) || cp $@ $(srcdir) mockpp_config-bcb5.h: perl -i.bak -pe "s/(.*mockpp_production)_(\d*)(\.lib|\.dll)/\1_$(LT_CURRENT)\3/g" $(top_srcdir)/bcb5/*.bpr $(top_srcdir)/bcb5/*.bpf $(top_srcdir)/bcb5/*.bpg @@ -124,42 +106,7 @@ echo "/* Define to use partial specialisation instead of meta programming. */" >>$@ echo "#define MOCKPP_COUNTED_WEAKNESS" >>$@ echo "" >>$@ - echo "/* Define to turn debugging globally on. */" >>$@ - echo "#undef DEBUG" >>$@ - echo "" >>$@ - echo "/* Version number of package */" >>$@ - echo "#define MOCKPP_VERSION \"$(VERSION)\"" >>$@ - echo "" >>$@ - echo "/* Name of package */" >>$@ - echo "#define MOCKPP_PACKAGE \"$(PACKAGE)\"" >>$@ - echo "" >>$@ - echo "/* Define if you have CppUnit installed. */" >>$@ - echo "#define HAVE_CPPUNIT" >>$@ - echo "" >>$@ - echo "/* Define to 1 if you have the <limits> header file. */" >>$@ - echo "#define HAVE_LIMITS" >>$@ - echo "" >>$@ - echo "/* Define to 1 if you have the <cppunit/Message.h> header file. */">>$@ - echo "#define HAVE_CPPUNIT_MESSAGE_H 1" >>$@ - echo "" >>$@ - echo "/* Define to compile for unicode environment. */" >>$@ - echo "#undef MOCKPP_UNICODE" >>$@ - echo "" >>$@ - echo "/* Define if you have the cwchar header. */" >>$@ - echo "#define HAVE_CWCHAR" >>$@ - echo "" >>$@ - echo "/* Define if you have the std::wstring type. */" >>$@ - echo "#defi$(top_srcdir)/bcbX/*.cbx ne HAVE_WSTRING" >>$@ - echo "" >>$@ - echo "/* Define if you have the wcscmp function. */" >>$@ - echo "#define HAVE_WCSCMP" >>$@ - echo "" >>$@ - echo "/* Define if you have the std::wcscmp function. */" >>$@ - echo "#define HAVE_STD_WCSCMP" >>$@ - echo "" >>$@ - echo "/* Define to supress compiler warnings about unused variables. */" >>$@ - echo "#define MOCKPP_UNUSED(x) x;" >>$@ - echo "" >>$@ + $(SHELL) $(srcdir)/config/gen-config-common.sh $@ $(VERSION) $(PACKAGE) -test $@ -ef $(srcdir) || cp $@ $(srcdir) mockpp_config-msvc_71.h: @@ -167,42 +114,7 @@ echo "// derived from automatically generated config.h. See Makefile.am." >>$@ TODAY=`date +%Y-%m-%d` ; echo "/* Generated: $$TODAY */" >>$@ echo "" >>$@ - echo "/* Define to turn debugging globally on. */" >>$@ - echo "#undef DEBUG" >>$@ - echo "" >>$@ - echo "/* Version number of package */" >>$@ - echo "#define MOCKPP_VERSION \"$(VERSION)\"" >>$@ - echo "" >>$@ - echo "/* Name of package */" >>$@ - echo "#define MOCKPP_PACKAGE \"$(PACKAGE)\"" >>$@ - echo "" >>$@ - echo "/* Define if you have CppUnit installed. */" >>$@ - echo "#define HAVE_CPPUNIT" >>$@ - echo "" >>$@ - echo "/* Define to 1 if you have the <limits> header file. */" >>$@ - echo "#define HAVE_LIMITS 1" >>$@ - echo "" >>$@ - echo "/* Define to 1 if you have the <cppunit/Message.h> header file. */" >>$@ - echo "#define HAVE_CPPUNIT_MESSAGE_H 1" >>$@ - echo "" >>$@ - echo "/* Define to compile for unicode environment. */" >>$@ - echo "#undef MOCKPP_UNICODE" >>$@ - echo "" >>$@ - echo "/* Define if you have the cwchar header. */" >>$@ - echo "#define HAVE_CWCHAR" >>$@ - echo "" >>$@ - echo "/* Define if you have the std::wstring type. */" >>$@ - echo "#define HAVE_WSTRING" >>$@ - echo "" >>$@ - echo "/* Define if you have the wcscmp function. */" >>$@ - echo "#define HAVE_WCSCMP" >>$@ - echo "" >>$@ - echo "/* Define if you have the std::wcscmp function. */" >>$@ - echo "#define HAVE_STD_WCSCMP" >>$@ - echo "" >>$@ - echo "/* Define to supress compiler warnings about unused variables. */" >>$@ - echo "#define MOCKPP_UNUSED(x) x;" >>$@ - echo "" >>$@ + $(SHELL) $(srcdir)/config/gen-config-common.sh $@ $(VERSION) $(PACKAGE) -test $@ -ef $(srcdir) || cp $@ $(srcdir) i18n_files = $(srcdir)/*.cpp $(srcdir)/*.h \ |