2.0 preview
This commit is contained in:
parent
d1ac3d9938
commit
fbad7fac17
13 changed files with 16997 additions and 1315 deletions
34
Makefile.am
34
Makefile.am
|
|
@ -1,25 +1,27 @@
|
|||
noinst_PROGRAMS = json json98 json98benchmark
|
||||
TESTS = ./json ./json98
|
||||
noinst_PROGRAMS = json json_unit
|
||||
TESTS = ./json ./json_unit
|
||||
|
||||
FLAGS = -Wall -Wextra -pedantic -Weffc++ -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch -Wundef -Wno-unused -Wnon-virtual-dtor -Wreorder
|
||||
|
||||
json_SOURCES = src/JSON.cc src/JSON.h test/JSON_test.cc
|
||||
json_CXXFLAGS = -std=c++11
|
||||
json_CXXFLAGS = $(FLAGS) -Weffc++ -std=c++11
|
||||
json_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
json98_SOURCES = src/JSON.cc src/JSON.h test/JSON_test.cc
|
||||
json98_CXXFLAGS = -std=c++98
|
||||
json98_CPPFLAGS = -I$(top_srcdir)/src
|
||||
json_unit_SOURCES = src/JSON.cc src/JSON.h test/catch.hpp test/JSON_unit.cc
|
||||
json_unit_CXXFLAGS = $(FLAGS) -std=c++11
|
||||
json_unit_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/test -Dprivate=public
|
||||
|
||||
json98benchmark_SOURCES = src/JSON.cc src/JSON.h benchmark/JSON_benchmark.cc
|
||||
json98benchmark_CXXFLAGS = -std=c++98 -O3
|
||||
json98benchmark_CPPFLAGS = -I$(top_srcdir)/src -DNDEBUG
|
||||
cppcheck:
|
||||
cppcheck --enable=all --inconclusive --std=c++11 src/JSON.*
|
||||
|
||||
svn-clean: maintainer-clean
|
||||
rm -fr configure INSTALL aclocal.m4 build-aux depcomp install-sh missing test-driver cover_html *.gcda *.gcno coverage*.info
|
||||
rm -fr configure INSTALL aclocal.m4 build-aux depcomp install-sh missing test-driver
|
||||
for DIR in $(DIST_SUBDIRS) .; do rm -f $$DIR/Makefile.in; done
|
||||
|
||||
cover:
|
||||
make clean
|
||||
make json98 CXXFLAGS+="--coverage -g -fprofile-arcs -ftest-coverage" CPPFLAGS+="-DNDEBUG"
|
||||
./json98
|
||||
lcov --capture --directory . --output-file coverage98.info
|
||||
genhtml coverage*.info --output-directory cover_html --show-details --title "$(PACKAGE_STRING)" --legend --demangle-cpp
|
||||
pretty:
|
||||
astyle --style=allman --indent=spaces=4 --indent-modifiers \
|
||||
--indent-switches --indent-preproc-block --indent-preproc-define \
|
||||
--indent-col1-comments --pad-oper --pad-header --align-pointer=type \
|
||||
--align-reference=type --add-brackets --convert-tabs --close-templates \
|
||||
--lineend=linux --preserve-date --suffix=none \
|
||||
$(SOURCES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue