2015-06-07 21:19:26 +00:00
|
|
|
# Build all the unit tests with Microsoft Visual C++ using nmake
|
2021-02-21 04:53:09 +00:00
|
|
|
# Tested with Visual C++ 2019
|
2015-06-07 21:19:26 +00:00
|
|
|
|
|
|
|
DEL = del /q
|
|
|
|
EXE = unitTest.exe
|
|
|
|
|
2022-01-04 23:07:50 +00:00
|
|
|
INCLUDEDIRS = /I../../include /I../../src
|
2015-06-07 21:19:26 +00:00
|
|
|
|
2022-08-27 07:35:52 +00:00
|
|
|
CXXFLAGS = /MP /EHsc /std:c++17 $(OPTIMIZATION) /nologo /D_HAS_AUTO_PTR_ETC=1 /wd 4805 $(INCLUDEDIRS)
|
2015-06-07 21:19:26 +00:00
|
|
|
|
|
|
|
# Files in this directory containing tests
|
|
|
|
TESTSRC=test*.cxx
|
|
|
|
# Files being tested from scintilla/src directory
|
|
|
|
TESTEDSRC=\
|
2022-01-04 23:07:50 +00:00
|
|
|
../../src/CaseConvert.cxx \
|
|
|
|
../../src/CaseFolder.cxx \
|
2015-06-07 21:19:26 +00:00
|
|
|
../../src/CellBuffer.cxx \
|
2022-08-27 07:35:52 +00:00
|
|
|
../../src/ChangeHistory.cxx \
|
2022-01-04 23:07:50 +00:00
|
|
|
../../src/CharacterCategoryMap.cxx \
|
2015-06-07 21:19:26 +00:00
|
|
|
../../src/CharClassify.cxx \
|
|
|
|
../../src/ContractionState.cxx \
|
|
|
|
../../src/Decoration.cxx \
|
2022-01-04 23:07:50 +00:00
|
|
|
../../src/Document.cxx \
|
|
|
|
../../src/Geometry.cxx \
|
2021-02-21 04:53:09 +00:00
|
|
|
../../src/PerLine.cxx \
|
2022-01-04 23:07:50 +00:00
|
|
|
../../src/RESearch.cxx \
|
2019-05-04 18:14:48 +00:00
|
|
|
../../src/RunStyles.cxx \
|
2019-07-21 13:26:02 +00:00
|
|
|
../../src/UniConversion.cxx \
|
|
|
|
../../src/UniqueString.cxx
|
2015-06-07 21:19:26 +00:00
|
|
|
|
|
|
|
TESTS=$(EXE)
|
|
|
|
|
|
|
|
all: $(TESTS)
|
|
|
|
|
|
|
|
test: $(TESTS)
|
|
|
|
$(EXE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(DEL) $(TESTS) *.o *.obj *.exe
|
|
|
|
|
|
|
|
$(EXE): $(TESTSRC) $(TESTEDSRC) $(@B).obj
|
|
|
|
$(CXX) $(CXXFLAGS) /Fe$@ $**
|