Initial commit
This commit is contained in:
2
test/cxxtest/sample/winddk/Makefile
Normal file
2
test/cxxtest/sample/winddk/Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
# Standard DDK Makefile
|
||||
!include $(NTMAKEENV)\makefile.def
|
||||
15
test/cxxtest/sample/winddk/Makefile.inc
Normal file
15
test/cxxtest/sample/winddk/Makefile.inc
Normal file
@@ -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)
|
||||
13
test/cxxtest/sample/winddk/RunTests.tpl
Normal file
13
test/cxxtest/sample/winddk/RunTests.tpl
Normal file
@@ -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>
|
||||
45
test/cxxtest/sample/winddk/SOURCES
Normal file
45
test/cxxtest/sample/winddk/SOURCES
Normal file
@@ -0,0 +1,45 @@
|
||||
# -*- 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
|
||||
Reference in New Issue
Block a user