mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-08-26 12:18:31 +02:00
Release 5.5.1 ( https://www.scintilla.org/scintilla551.zip ) Released 22 July 2024. SCI_CUTALLOWLINE added which is similar to SCI_COPYALLOWLINE but also deletes the copied text. Feature #1518. Can set font used for autocompletion lists with SCI_AUTOCSETSTYLE. Feature #1523. Increase maximum zoom set interactively to +60 points. Feature #1517. Fix flickering cursor after some mouse action sequences. Bug #2443. Release 5.3.3 ( https://www.scintilla.org/lexilla533.zip ) Released 22 July 2024. ASP: Control whether ASP is enabled for XML and HTML with lexer.xml.allow.asp and lexer.html.allow.asp. Issue #252. JavaScript: Recognize regular expressions at start or after '>' in JavaScript when lexer is cpp, hypertext, or xml. Issue #250, Bug #918. JavaScript: Recognize initial #! 'shebang' line as a comment in standalone files. Issue #253. Lua: Fix non-ASCII identifiers joined with '.' or ':'. Issue #242. Lua: Fix folding for multi-line SCE_LUA_LITERALSTRING and SCE_LUA_COMMENT when performed incrementally. Issue #247. PHP: Control whether PHP is enabled for XML and HTML with lexer.xml.allow.php and lexer.html.allow.php. Issue #252. Close #15466
79 lines
1.5 KiB
Makefile
79 lines
1.5 KiB
Makefile
# Build all the unit tests using GNU make and either g++ or clang
|
|
# Should be run using mingw32-make on Windows, not nmake
|
|
# On Windows g++ is used, on macOS clang, and on Linux G++ is used by default
|
|
# but clang can be used by defining CLANG when invoking make
|
|
# clang works only with libc++, not libstdc++
|
|
# Tested with clang 9 and g++ 9
|
|
|
|
CXXSTD=c++17
|
|
|
|
ifndef windir
|
|
ifeq ($(shell uname),Darwin)
|
|
# On macOS always use clang as g++ is old version
|
|
CLANG = 1
|
|
USELIBCPP = 1
|
|
endif
|
|
endif
|
|
|
|
CXXFLAGS += --std=$(CXXSTD)
|
|
|
|
ifdef CLANG
|
|
CXX = clang++
|
|
ifdef USELIBCPP
|
|
# macOS, use libc++ but don't have sanitizers
|
|
CXXFLAGS += --stdlib=libc++
|
|
else
|
|
# Linux, have sanitizers
|
|
SANITIZE = -fsanitize=address,undefined
|
|
CXXFLAGS += $(SANITIZE)
|
|
endif
|
|
else
|
|
CXX = g++
|
|
endif
|
|
|
|
ifdef windir
|
|
DEL = del /q
|
|
EXE = unitTest.exe
|
|
else
|
|
DEL = rm -f
|
|
EXE = unitTest
|
|
endif
|
|
|
|
vpath %.cxx ../../lexlib
|
|
|
|
INCLUDEDIRS = -I ../../include -I../../lexlib -I../../../scintilla/include
|
|
|
|
CPPFLAGS += $(INCLUDEDIRS)
|
|
CXXFLAGS += -Wall -Wextra
|
|
|
|
# Files in this directory containing tests
|
|
TESTSRC=$(wildcard test*.cxx)
|
|
TESTOBJ=$(TESTSRC:.cxx=.o)
|
|
|
|
# Files being tested from lexilla/lexlib directory
|
|
TESTEDOBJ=\
|
|
Accessor.o \
|
|
CharacterSet.o \
|
|
InList.o \
|
|
LexerBase.o \
|
|
LexerModule.o \
|
|
LexerSimple.o \
|
|
PropSetSimple.o \
|
|
WordList.o
|
|
|
|
TESTS=$(EXE)
|
|
|
|
all: $(TESTS)
|
|
|
|
test: $(TESTS)
|
|
./$(EXE)
|
|
|
|
clean:
|
|
$(DEL) $(TESTS) *.o *.obj *.exe
|
|
|
|
%.o: %.cxx
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
|
|
|
|
$(EXE): unitTest.o $(TESTOBJ) $(TESTEDOBJ)
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LINKFLAGS) $^ -o $@
|