diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /cxxtest/sample/winddk | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'cxxtest/sample/winddk')
| -rw-r--r-- | cxxtest/sample/winddk/Makefile | 2 | ||||
| -rw-r--r-- | cxxtest/sample/winddk/Makefile.inc | 15 | ||||
| -rw-r--r-- | cxxtest/sample/winddk/RunTests.tpl | 13 | ||||
| -rw-r--r-- | cxxtest/sample/winddk/SOURCES | 46 |
4 files changed, 76 insertions, 0 deletions
diff --git a/cxxtest/sample/winddk/Makefile b/cxxtest/sample/winddk/Makefile new file mode 100644 index 000000000..8bf25333e --- /dev/null +++ b/cxxtest/sample/winddk/Makefile @@ -0,0 +1,2 @@ +# Standard DDK Makefile +!include $(NTMAKEENV)\makefile.def diff --git a/cxxtest/sample/winddk/Makefile.inc b/cxxtest/sample/winddk/Makefile.inc new file mode 100644 index 000000000..edc6f8c8c --- /dev/null +++ b/cxxtest/sample/winddk/Makefile.inc @@ -0,0 +1,15 @@ +# -*- Makefile -*- + +# +# Tell the DDK how to generate RunTests.cpp from RunTests.tpl and the tests +# + +PERL=perl +PYTHON=python +CXXTESTGEN=$(PERL) $(CXXTESTDIR)/cxxtestgen.pl +#CXXTESTGEN=$(PYTHON) $(CXXTESTDIR)/cxxtestgen.py + +TEST_SUITES=$(SUITESDIR)/*.h + +RunTests.cpp: RunTests.tpl $(TEST_SUITES) + $(CXXTESTGEN) -o $@ --template=RunTests.tpl $(TEST_SUITES) diff --git a/cxxtest/sample/winddk/RunTests.tpl b/cxxtest/sample/winddk/RunTests.tpl new file mode 100644 index 000000000..917f14b4d --- /dev/null +++ b/cxxtest/sample/winddk/RunTests.tpl @@ -0,0 +1,13 @@ +// -*- C++ -*- + +// +// The DDK doesn't handle <iostream> too well +// +#include <cxxtest/StdioPrinter.h> + +int __cdecl main() +{ + return CxxTest::StdioPrinter().run(); +} + +<CxxTest world> diff --git a/cxxtest/sample/winddk/SOURCES b/cxxtest/sample/winddk/SOURCES new file mode 100644 index 000000000..dae014888 --- /dev/null +++ b/cxxtest/sample/winddk/SOURCES @@ -0,0 +1,46 @@ +# -*- Makefile -*- + +# +# Build this sample with the Windows DDK (XP or later) +# +SUITESDIR=.. +CXXTESTDIR=../.. + +# +# Build a user-mode application +# +TARGETNAME=RunTests +TARGETPATH=. +TARGETTYPE=PROGRAM + +# +# Make it a console-mode app +# +UMTYPE=console + +# +# Add CxxTest and tests directory to include path +# +INCLUDES=$(SUITESDIR);$(CXXTESTDIR) + +# +# Enable exception handling and standard library +# +USE_NATIVE_EH=1 +LINKER_FLAGS=$(LINKER_FLAGS) -IGNORE:4099 +386_WARNING_LEVEL=-W3 -WX -wd4290 + +TARGETLIBS=\ + $(CRT_LIB_PATH)\libcp.lib \ + $(CRT_LIB_PATH)\libc.lib + +# +# Only one source file -- the generated test runner +# +SOURCES=RunTests.cpp + +# +# This line tells the build utility to process Makefile.inc +# +NTTARGETFILE0=RunTests.cpp + |
