mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Make Bazel work with CATCH_CONFIG_SHARED_LIBRARY
This commit is contained in:
parent
4bb7e02a9c
commit
243cf71608
5
.bazelrc
5
.bazelrc
@ -1,5 +1,10 @@
|
|||||||
|
build --enable_platform_specific_config
|
||||||
|
|
||||||
build:gcc9 --cxxopt=-std=c++2a
|
build:gcc9 --cxxopt=-std=c++2a
|
||||||
build:gcc11 --cxxopt=-std=c++2a
|
build:gcc11 --cxxopt=-std=c++2a
|
||||||
build:clang13 --cxxopt=-std=c++17
|
build:clang13 --cxxopt=-std=c++17
|
||||||
build:vs2019 --cxxopt=/std:c++17
|
build:vs2019 --cxxopt=/std:c++17
|
||||||
build:vs2022 --cxxopt=/std:c++17
|
build:vs2022 --cxxopt=/std:c++17
|
||||||
|
|
||||||
|
build:windows --config=vs2022
|
||||||
|
build:linux --config=gcc11
|
||||||
|
@ -4,9 +4,10 @@ expand_template(
|
|||||||
name = "catch_user_config",
|
name = "catch_user_config",
|
||||||
out = "catch2/catch_user_config.hpp",
|
out = "catch2/catch_user_config.hpp",
|
||||||
substitutions = {
|
substitutions = {
|
||||||
|
"@CATCH_CONFIG_CONSOLE_WIDTH@": "80",
|
||||||
|
"@CATCH_CONFIG_DEFAULT_REPORTER@": "console",
|
||||||
"#cmakedefine CATCH_CONFIG_ANDROID_LOGWRITE": "",
|
"#cmakedefine CATCH_CONFIG_ANDROID_LOGWRITE": "",
|
||||||
"#cmakedefine CATCH_CONFIG_BAZEL_SUPPORT": "#define CATCH_CONFIG_BAZEL_SUPPORT",
|
"#cmakedefine CATCH_CONFIG_BAZEL_SUPPORT": "#define CATCH_CONFIG_BAZEL_SUPPORT",
|
||||||
"#cmakedefine CATCH_CONFIG_NO_COLOUR_WIN32": "",
|
|
||||||
"#cmakedefine CATCH_CONFIG_COLOUR_WIN32": "",
|
"#cmakedefine CATCH_CONFIG_COLOUR_WIN32": "",
|
||||||
"#cmakedefine CATCH_CONFIG_COUNTER": "",
|
"#cmakedefine CATCH_CONFIG_COUNTER": "",
|
||||||
"#cmakedefine CATCH_CONFIG_CPP11_TO_STRING": "",
|
"#cmakedefine CATCH_CONFIG_CPP11_TO_STRING": "",
|
||||||
@ -28,6 +29,8 @@ expand_template(
|
|||||||
"#cmakedefine CATCH_CONFIG_FALLBACK_STRINGIFIER @CATCH_CONFIG_FALLBACK_STRINGIFIER@": "",
|
"#cmakedefine CATCH_CONFIG_FALLBACK_STRINGIFIER @CATCH_CONFIG_FALLBACK_STRINGIFIER@": "",
|
||||||
"#cmakedefine CATCH_CONFIG_FAST_COMPILE": "",
|
"#cmakedefine CATCH_CONFIG_FAST_COMPILE": "",
|
||||||
"#cmakedefine CATCH_CONFIG_GLOBAL_NEXTAFTER": "",
|
"#cmakedefine CATCH_CONFIG_GLOBAL_NEXTAFTER": "",
|
||||||
|
"#cmakedefine CATCH_CONFIG_NO_ANDROID_LOGWRITE": "",
|
||||||
|
"#cmakedefine CATCH_CONFIG_NO_COLOUR_WIN32": "",
|
||||||
"#cmakedefine CATCH_CONFIG_NO_COUNTER": "",
|
"#cmakedefine CATCH_CONFIG_NO_COUNTER": "",
|
||||||
"#cmakedefine CATCH_CONFIG_NO_CPP11_TO_STRING": "",
|
"#cmakedefine CATCH_CONFIG_NO_CPP11_TO_STRING": "",
|
||||||
"#cmakedefine CATCH_CONFIG_NO_CPP17_BYTE": "",
|
"#cmakedefine CATCH_CONFIG_NO_CPP17_BYTE": "",
|
||||||
@ -43,13 +46,11 @@ expand_template(
|
|||||||
"#cmakedefine CATCH_CONFIG_NOSTDOUT": "",
|
"#cmakedefine CATCH_CONFIG_NOSTDOUT": "",
|
||||||
"#cmakedefine CATCH_CONFIG_POSIX_SIGNALS": "",
|
"#cmakedefine CATCH_CONFIG_POSIX_SIGNALS": "",
|
||||||
"#cmakedefine CATCH_CONFIG_PREFIX_ALL": "",
|
"#cmakedefine CATCH_CONFIG_PREFIX_ALL": "",
|
||||||
|
"#cmakedefine CATCH_CONFIG_SHARED_LIBRARY": "",
|
||||||
"#cmakedefine CATCH_CONFIG_USE_ASYNC": "",
|
"#cmakedefine CATCH_CONFIG_USE_ASYNC": "",
|
||||||
"#cmakedefine CATCH_CONFIG_WCHAR": "",
|
"#cmakedefine CATCH_CONFIG_WCHAR": "",
|
||||||
"#cmakedefine CATCH_CONFIG_WINDOWS_CRTDBG": "",
|
"#cmakedefine CATCH_CONFIG_WINDOWS_CRTDBG": "",
|
||||||
"#cmakedefine CATCH_CONFIG_WINDOWS_SEH": "",
|
"#cmakedefine CATCH_CONFIG_WINDOWS_SEH": "",
|
||||||
"#cmakedefine CATCH_CONFIG_NO_ANDROID_LOGWRITE": "",
|
|
||||||
"@CATCH_CONFIG_DEFAULT_REPORTER@": "console",
|
|
||||||
"@CATCH_CONFIG_CONSOLE_WIDTH@": "80",
|
|
||||||
},
|
},
|
||||||
template = "src/catch2/catch_user_config.hpp.in",
|
template = "src/catch2/catch_user_config.hpp.in",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user