Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
075196ca06 | ||
![]() |
e397860881 |
@ -4,7 +4,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
project(googletest-distribution)
|
project(googletest-distribution)
|
||||||
set(GOOGLETEST_VERSION 1.14.0)
|
set(GOOGLETEST_VERSION 1.15.0)
|
||||||
|
|
||||||
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
|
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
18
MODULE.bazel
18
MODULE.bazel
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
module(
|
module(
|
||||||
name = "googletest",
|
name = "googletest",
|
||||||
version = "head",
|
version = "1.15.1",
|
||||||
compatibility_level = 1,
|
compatibility_level = 1,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,11 +51,19 @@ bazel_dep(name = "re2",
|
|||||||
version = "2024-07-02")
|
version = "2024-07-02")
|
||||||
|
|
||||||
bazel_dep(name = "rules_python",
|
bazel_dep(name = "rules_python",
|
||||||
version = "0.29.0")
|
version = "0.34.0",
|
||||||
|
dev_dependency = True)
|
||||||
|
|
||||||
|
# https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
|
||||||
|
python = use_extension(
|
||||||
|
"@rules_python//python/extensions:python.bzl",
|
||||||
|
"python",
|
||||||
|
dev_dependency = True
|
||||||
|
)
|
||||||
|
|
||||||
|
python.toolchain(python_version = "3.12",
|
||||||
|
is_default = True,
|
||||||
|
ignore_root_user_error = True)
|
||||||
|
|
||||||
fake_fuchsia_sdk = use_repo_rule("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
|
fake_fuchsia_sdk = use_repo_rule("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
|
||||||
fake_fuchsia_sdk(name = "fuchsia_sdk")
|
fake_fuchsia_sdk(name = "fuchsia_sdk")
|
||||||
|
|
||||||
# https://github.com/bazelbuild/rules_python/blob/main/BZLMOD_SUPPORT.md#default-toolchain-is-not-the-local-system-python
|
|
||||||
register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain")
|
|
||||||
|
@ -9,7 +9,7 @@ GoogleTest now follows the
|
|||||||
We recommend
|
We recommend
|
||||||
[updating to the latest commit in the `main` branch as often as possible](https://github.com/abseil/abseil-cpp/blob/master/FAQ.md#what-is-live-at-head-and-how-do-i-do-it).
|
[updating to the latest commit in the `main` branch as often as possible](https://github.com/abseil/abseil-cpp/blob/master/FAQ.md#what-is-live-at-head-and-how-do-i-do-it).
|
||||||
We do publish occasional semantic versions, tagged with
|
We do publish occasional semantic versions, tagged with
|
||||||
`v${major}.${minor}.${patch}` (e.g. `v1.14.0`).
|
`v${major}.${minor}.${patch}` (e.g. `v1.15.0`).
|
||||||
|
|
||||||
#### Documentation Updates
|
#### Documentation Updates
|
||||||
|
|
||||||
@ -17,12 +17,12 @@ Our documentation is now live on GitHub Pages at
|
|||||||
https://google.github.io/googletest/. We recommend browsing the documentation on
|
https://google.github.io/googletest/. We recommend browsing the documentation on
|
||||||
GitHub Pages rather than directly in the repository.
|
GitHub Pages rather than directly in the repository.
|
||||||
|
|
||||||
#### Release 1.14.0
|
#### Release 1.15.0
|
||||||
|
|
||||||
[Release 1.14.0](https://github.com/google/googletest/releases/tag/v1.14.0) is
|
[Release 1.15.0](https://github.com/google/googletest/releases/tag/v1.15.0) is
|
||||||
now available.
|
now available.
|
||||||
|
|
||||||
The 1.14.x branch requires at least C++14.
|
The 1.15.x branch requires at least C++14.
|
||||||
|
|
||||||
#### Continuous Integration
|
#### Continuous Integration
|
||||||
|
|
||||||
|
@ -46,8 +46,13 @@ RMDIR /S /Q cmake_msvc2022
|
|||||||
:: ----------------------------------------------------------------------------
|
:: ----------------------------------------------------------------------------
|
||||||
:: Bazel
|
:: Bazel
|
||||||
|
|
||||||
|
:: The default home directory on Kokoro is a long path which causes errors
|
||||||
|
:: because of Windows limitations on path length.
|
||||||
|
:: --output_user_root=C:\tmp causes Bazel to use a shorter path.
|
||||||
SET BAZEL_VS=C:\Program Files\Microsoft Visual Studio\2022\Community
|
SET BAZEL_VS=C:\Program Files\Microsoft Visual Studio\2022\Community
|
||||||
%BAZEL_EXE% test ... ^
|
%BAZEL_EXE% ^
|
||||||
|
--output_user_root=C:\tmp ^
|
||||||
|
test ... ^
|
||||||
--compilation_mode=dbg ^
|
--compilation_mode=dbg ^
|
||||||
--copt=/std:c++14 ^
|
--copt=/std:c++14 ^
|
||||||
--copt=/WX ^
|
--copt=/WX ^
|
||||||
|
@ -25,7 +25,7 @@ When building GoogleTest as a standalone project, the typical workflow starts
|
|||||||
with
|
with
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/google/googletest.git -b v1.14.0
|
git clone https://github.com/google/googletest.git -b v1.15.0
|
||||||
cd googletest # Main directory of the cloned repository.
|
cd googletest # Main directory of the cloned repository.
|
||||||
mkdir build # Create a directory to hold the build output.
|
mkdir build # Create a directory to hold the build output.
|
||||||
cd build
|
cd build
|
||||||
|
Loading…
Reference in New Issue
Block a user