-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: msclock <msclock@qq.com>
- Loading branch information
Showing
113 changed files
with
2,029 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
#[[ | ||
This file is used to configure code coverage for all targets in the project. | ||
|
||
It supports detecting and using the following coverage tools: | ||
- gcov (GNU gcov) | ||
- llvm-cov (LLVM's llvm-cov) | ||
- lcov (GNU lcov) | ||
- opencppcoverage (OpenCppCoverage) | ||
|
||
]] | ||
|
||
include_guard(GLOBAL) | ||
|
||
# cmake-format: off | ||
include(cmake-modules/test/Coverage) | ||
list(APPEND _excludes "${CMAKE_BINARY_DIR}" "${VCPKG_INSTALLED_DIR}") | ||
|
||
if(UNIX) | ||
list(APPEND _excludes "/usr" "/usr/local" "/opt" "/opt/local") | ||
endif() | ||
|
||
add_code_coverage_all_targets( | ||
EXCLUDE_DIRS | ||
"${VCPKG_INSTALLED_DIR}" | ||
"${CMAKE_BINARY_DIR}" | ||
"/usr" | ||
EXCLUDE_DIRS ${_excludes} | ||
INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/src") | ||
unset(_exclude_dirs) | ||
unset(_excludes) | ||
|
||
# cmake-format: on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SS-CPP Build Congfiguration | ||
|
||
## Triplets = {Architecture}-{Target-Compiling-OS/Toolchain}-{Distribution} | ||
|
||
- Architecture: x86, x64, arm, arm64, ppc64le, s390x, wasm32, etc. | ||
- Target-Compiling-OS/Toolchain: windows, linux, macos, freebsd, android, ios, mingw, etc. | ||
- Distribution: dynamic, static, release, etc. | ||
- Compiler(Optional): MSVC, GCC, Clang, MinGW | ||
|
||
More about triplets, see: <https://learn.microsoft.com/en-us/vcpkg/users/triplets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"version": 6, | ||
"configurePresets": [ | ||
{ | ||
"name": "llvm", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_C_COMPILER": "clang", | ||
"CMAKE_CXX_COMPILER": "clang++" | ||
} | ||
}, | ||
{ | ||
"name": "llvm-cl", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_C_COMPILER": "clang-cl", | ||
"CMAKE_CXX_COMPILER": "clang-cl" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"version": 6, | ||
"configurePresets": [ | ||
{ | ||
"name": "mingw", | ||
"hidden": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 6, | ||
"include": [ | ||
"../arch/x64.json" | ||
], | ||
"configurePresets": [ | ||
{ | ||
"name": "x64-mingw-dynamic", | ||
"hidden": true, | ||
"inherits": [ | ||
"x64" | ||
], | ||
"cacheVariables": { | ||
"VCPKG_TARGET_TRIPLET": "x64-mingw-dynamic", | ||
"VCPKG_HOST_TRIPLET": "x64-mingw-dynamic", | ||
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/vcpkg/scripts/toolchains/mingw.cmake" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.