Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
f9b71afe
Unverified
Commit
f9b71afe
authored
Jul 23, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🚚
unify cmake build dir names
parent
8159091d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
38 deletions
+38
-38
Makefile
Makefile
+38
-38
No files found.
Makefile
View file @
f9b71afe
...
@@ -54,13 +54,13 @@ all:
...
@@ -54,13 +54,13 @@ all:
##########################################################################
##########################################################################
coverage
:
coverage
:
rm
-fr
build_
coverage
rm
-fr
cmake-build-
coverage
mkdir
build_
coverage
mkdir
cmake-build-
coverage
cd
build_
coverage
;
cmake ..
-GNinja
-DCMAKE_BUILD_TYPE
=
Debug
-DJSON_Coverage
=
ON
-DJSON_MultipleHeaders
=
ON
cd
cmake-build-
coverage
;
cmake ..
-GNinja
-DCMAKE_BUILD_TYPE
=
Debug
-DJSON_Coverage
=
ON
-DJSON_MultipleHeaders
=
ON
cd
build_
coverage
;
ninja
cd
cmake-build-
coverage
;
ninja
cd
build_
coverage
;
ctest
-j10
cd
cmake-build-
coverage
;
ctest
-j10
cd
build_
coverage
;
ninja lcov_html
cd
cmake-build-
coverage
;
ninja lcov_html
open
build_
coverage/test/html/index.html
open
cmake-build-
coverage/test/html/index.html
##########################################################################
##########################################################################
# documentation tests
# documentation tests
...
@@ -88,7 +88,7 @@ doctest:
...
@@ -88,7 +88,7 @@ doctest:
# -Wno-switch-enum -Wno-covered-switch-default: pedantic/contradicting warnings about switches
# -Wno-switch-enum -Wno-covered-switch-default: pedantic/contradicting warnings about switches
# -Wno-weak-vtables: exception class is defined inline, but has virtual method
# -Wno-weak-vtables: exception class is defined inline, but has virtual method
pedantic_clang
:
pedantic_clang
:
rm
-fr
build_
pedantic
rm
-fr
cmake-build-
pedantic
CXXFLAGS
=
"
\
CXXFLAGS
=
"
\
-std=c++11 -Wno-c++98-compat -Wno-c++98-compat-pedantic
\
-std=c++11 -Wno-c++98-compat -Wno-c++98-compat-pedantic
\
-Werror
\
-Werror
\
...
@@ -103,12 +103,12 @@ pedantic_clang:
...
@@ -103,12 +103,12 @@ pedantic_clang:
-Wno-padded
\
-Wno-padded
\
-Wno-range-loop-analysis
\
-Wno-range-loop-analysis
\
-Wno-switch-enum -Wno-covered-switch-default
\
-Wno-switch-enum -Wno-covered-switch-default
\
-Wno-weak-vtables"
cmake
-S
.
-B
build_
pedantic
-GNinja
-DCMAKE_BUILD_TYPE
=
Debug
-DJSON_MultipleHeaders
=
ON
-DJSON_BuildTests
=
On
-Wno-weak-vtables"
cmake
-S
.
-B
cmake-build-
pedantic
-GNinja
-DCMAKE_BUILD_TYPE
=
Debug
-DJSON_MultipleHeaders
=
ON
-DJSON_BuildTests
=
On
cmake
--build
build_
pedantic
cmake
--build
cmake-build-
pedantic
# calling GCC with most warnings
# calling GCC with most warnings
pedantic_gcc
:
pedantic_gcc
:
rm
-fr
build_
pedantic
rm
-fr
cmake-build-
pedantic
CXXFLAGS
=
"
\
CXXFLAGS
=
"
\
-std=c++11
\
-std=c++11
\
-pedantic
\
-pedantic
\
...
@@ -366,19 +366,19 @@ pedantic_gcc:
...
@@ -366,19 +366,19 @@ pedantic_gcc:
-Wwrite-strings
\
-Wwrite-strings
\
-Wzero-as-null-pointer-constant
\
-Wzero-as-null-pointer-constant
\
-Wzero-length-bounds
\
-Wzero-length-bounds
\
"
cmake
-S
.
-B
build_
pedantic
-GNinja
-DCMAKE_BUILD_TYPE
=
Debug
-DJSON_MultipleHeaders
=
ON
-DJSON_BuildTests
=
On
"
cmake
-S
.
-B
cmake-build-
pedantic
-GNinja
-DCMAKE_BUILD_TYPE
=
Debug
-DJSON_MultipleHeaders
=
ON
-DJSON_BuildTests
=
On
cmake
--build
build_
pedantic
cmake
--build
cmake-build-
pedantic
##########################################################################
##########################################################################
# benchmarks
# benchmarks
##########################################################################
##########################################################################
run_benchmarks
:
run_benchmarks
:
rm
-fr
build_
benchmarks
rm
-fr
cmake-build-
benchmarks
mkdir
build_
benchmarks
mkdir
cmake-build-
benchmarks
cd
build_
benchmarks
;
cmake ../benchmarks
-GNinja
-DCMAKE_BUILD_TYPE
=
Release
-DJSON_BuildTests
=
On
cd
cmake-build-
benchmarks
;
cmake ../benchmarks
-GNinja
-DCMAKE_BUILD_TYPE
=
Release
-DJSON_BuildTests
=
On
cd
build_
benchmarks
;
ninja
cd
cmake-build-
benchmarks
;
ninja
cd
build_
benchmarks
;
./json_benchmarks
cd
cmake-build-
benchmarks
;
./json_benchmarks
##########################################################################
##########################################################################
# fuzzing
# fuzzing
...
@@ -451,14 +451,14 @@ cppcheck:
...
@@ -451,14 +451,14 @@ cppcheck:
# call Clang Static Analyzer <https://clang-analyzer.llvm.org>
# call Clang Static Analyzer <https://clang-analyzer.llvm.org>
clang_analyze
:
clang_analyze
:
rm
-fr
c
lang_analyze_build
rm
-fr
c
make-build-clang-analyze
mkdir
c
lang_analyze_build
mkdir
c
make-build-clang-analyze
cd
c
lang_analyze_build
;
CCC_CXX
=
$(COMPILER_DIR)
/clang++
CXX
=
$(COMPILER_DIR)
/clang++
$(COMPILER_DIR)
/scan-build cmake ..
-GNinja
-DJSON_BuildTests
=
On
cd
c
make-build-clang-analyze
;
CCC_CXX
=
$(COMPILER_DIR)
/clang++
CXX
=
$(COMPILER_DIR)
/clang++
$(COMPILER_DIR)
/scan-build cmake ..
-GNinja
-DJSON_BuildTests
=
On
cd
c
lang_analyze_build
;
\
cd
c
make-build-clang-analyze
;
\
$(COMPILER_DIR)
/scan-build
\
$(COMPILER_DIR)
/scan-build
\
-enable-checker
alpha.core.BoolAssignment,alpha.core.CallAndMessageUnInitRefArg,alpha.core.CastSize,alpha.core.CastToStruct,alpha.core.Conversion,alpha.core.DynamicTypeChecker,alpha.core.FixedAddr,alpha.core.PointerArithm,alpha.core.PointerSub,alpha.core.SizeofPtr,alpha.core.StackAddressAsyncEscape,alpha.core.TestAfterDivZero,alpha.deadcode.UnreachableCode,core.builtin.BuiltinFunctions,core.builtin.NoReturnFunctions,core.CallAndMessage,core.DivideZero,core.DynamicTypePropagation,core.NonnilStringConstants,core.NonNullParamChecker,core.NullDereference,core.StackAddressEscape,core.UndefinedBinaryOperatorResult,core.uninitialized.ArraySubscript,core.uninitialized.Assign,core.uninitialized.Branch,core.uninitialized.CapturedBlockVariable,core.uninitialized.UndefReturn,core.VLASize,cplusplus.InnerPointer,cplusplus.Move,cplusplus.NewDelete,cplusplus.NewDeleteLeaks,cplusplus.SelfAssignment,deadcode.DeadStores,nullability.NullableDereferenced,nullability.NullablePassedToNonnull,nullability.NullableReturnedFromNonnull,nullability.NullPassedToNonnull,nullability.NullReturnedFromNonnull
\
-enable-checker
alpha.core.BoolAssignment,alpha.core.CallAndMessageUnInitRefArg,alpha.core.CastSize,alpha.core.CastToStruct,alpha.core.Conversion,alpha.core.DynamicTypeChecker,alpha.core.FixedAddr,alpha.core.PointerArithm,alpha.core.PointerSub,alpha.core.SizeofPtr,alpha.core.StackAddressAsyncEscape,alpha.core.TestAfterDivZero,alpha.deadcode.UnreachableCode,core.builtin.BuiltinFunctions,core.builtin.NoReturnFunctions,core.CallAndMessage,core.DivideZero,core.DynamicTypePropagation,core.NonnilStringConstants,core.NonNullParamChecker,core.NullDereference,core.StackAddressEscape,core.UndefinedBinaryOperatorResult,core.uninitialized.ArraySubscript,core.uninitialized.Assign,core.uninitialized.Branch,core.uninitialized.CapturedBlockVariable,core.uninitialized.UndefReturn,core.VLASize,cplusplus.InnerPointer,cplusplus.Move,cplusplus.NewDelete,cplusplus.NewDeleteLeaks,cplusplus.SelfAssignment,deadcode.DeadStores,nullability.NullableDereferenced,nullability.NullablePassedToNonnull,nullability.NullableReturnedFromNonnull,nullability.NullPassedToNonnull,nullability.NullReturnedFromNonnull
\
--use-c
++
=
$(COMPILER_DIR)
/clang++
-analyze-headers
-o
report ninja
--use-c
++
=
$(COMPILER_DIR)
/clang++
-analyze-headers
-o
report ninja
open c
lang_analyze_build
/report/
*
/index.html
open c
make-build-clang-analyze
/report/
*
/index.html
# call cpplint <https://github.com/cpplint/cpplint>
# call cpplint <https://github.com/cpplint/cpplint>
# Note: some errors expected due to false positives
# Note: some errors expected due to false positives
...
@@ -473,18 +473,18 @@ clang_tidy:
...
@@ -473,18 +473,18 @@ clang_tidy:
# call PVS-Studio Analyzer <https://www.viva64.com/en/pvs-studio/>
# call PVS-Studio Analyzer <https://www.viva64.com/en/pvs-studio/>
pvs_studio
:
pvs_studio
:
rm
-fr
pvs_studio_build
rm
-fr
cmake-build-pvs-studio
mkdir
pvs_studio_build
mkdir
cmake-build-pvs-studio
cd
pvs_studio_build
;
cmake ..
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
On
-DJSON_MultipleHeaders
=
ON
cd
cmake-build-pvs-studio
;
cmake ..
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
On
-DJSON_MultipleHeaders
=
ON
cd
pvs_studio_build
;
pvs-studio-analyzer analyze
-j
10
cd
cmake-build-pvs-studio
;
pvs-studio-analyzer analyze
-j
10
cd
pvs_studio_build
;
plog-converter
-a
'GA:1,2;64:1;CS'
-t
fullhtml PVS-Studio.log
-o
pvs
cd
cmake-build-pvs-studio
;
plog-converter
-a
'GA:1,2;64:1;CS'
-t
fullhtml PVS-Studio.log
-o
pvs
open
pvs_studio_build
/pvs/index.html
open
cmake-build-pvs-studio
/pvs/index.html
# call Infer <https://fbinfer.com> static analyzer
# call Infer <https://fbinfer.com> static analyzer
infer
:
infer
:
rm
-fr
infer_build
rm
-fr
cmake-build-infer
mkdir
infer_build
mkdir
cmake-build-infer
cd
infer_build
;
infer compile
--
cmake ..
-DJSON_MultipleHeaders
=
ON
;
infer run
--
make
-j
4
cd
cmake-build-infer
;
infer compile
--
cmake ..
-DJSON_MultipleHeaders
=
ON
;
infer run
--
make
-j
4
# call OCLint <http://oclint.org> static analyzer
# call OCLint <http://oclint.org> static analyzer
oclint
:
oclint
:
...
@@ -493,11 +493,11 @@ oclint:
...
@@ -493,11 +493,11 @@ oclint:
# execute the test suite with Clang sanitizers (address and undefined behavior)
# execute the test suite with Clang sanitizers (address and undefined behavior)
clang_sanitize
:
clang_sanitize
:
rm
-fr
c
lang_sanitize_build
rm
-fr
c
make-build-clang-sanitize
mkdir
c
lang_sanitize_build
mkdir
c
make-build-clang-sanitize
cd
c
lang_sanitize_build
;
CXX
=
$(COMPILER_DIR)
/clang++ cmake ..
-DJSON_Sanitizer
=
On
-DJSON_MultipleHeaders
=
ON
-DJSON_BuildTests
=
On
-GNinja
cd
c
make-build-clang-sanitize
;
CXX
=
$(COMPILER_DIR)
/clang++ cmake ..
-DJSON_Sanitizer
=
On
-DJSON_MultipleHeaders
=
ON
-DJSON_BuildTests
=
On
-GNinja
cd
c
lang_sanitize_build
;
ninja
cd
c
make-build-clang-sanitize
;
ninja
cd
c
lang_sanitize_build
;
ctest
-j10
cd
c
make-build-clang-sanitize
;
ctest
-j10
##########################################################################
##########################################################################
...
@@ -625,7 +625,7 @@ clean:
...
@@ -625,7 +625,7 @@ clean:
rm
-fr
json_unit json_benchmarks fuzz fuzz-testing
*
.dSYM
test
/
*
.dSYM oclint_report.html
rm
-fr
json_unit json_benchmarks fuzz fuzz-testing
*
.dSYM
test
/
*
.dSYM oclint_report.html
rm
-fr
benchmarks/files/numbers/
*
.json
rm
-fr
benchmarks/files/numbers/
*
.json
rm
-fr
cmake-3.1.0-Darwin64.tar.gz cmake-3.1.0-Darwin64
rm
-fr
cmake-3.1.0-Darwin64.tar.gz cmake-3.1.0-Darwin64
rm
-fr
build_coverage build_benchmarks fuzz-testing clang_analyze_build pvs_studio_build infer_build clang_sanitize_build
cmake_build
rm
-fr
cmake-build-coverage cmake-build-benchmarks fuzz-testing cmake-build-clang-analyze cmake-build-pvs-studio cmake-build-infer cmake-build-clang-sanitize
cmake_build
$(MAKE)
clean
-Cdoc
$(MAKE)
clean
-Cdoc
##########################################################################
##########################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment